yadong.zhang 70d49cd661 👽 更新文档
2019-02-18 13:42:37 +08:00
2019-01-31 17:38:32 +08:00
2019-02-18 13:42:37 +08:00
2019-01-31 18:33:23 +08:00
2019-01-31 17:53:37 +08:00
2019-02-18 10:36:17 +08:00
2019-02-18 13:42:37 +08:00

Login, so easy.

Gitee Github Weibo CSDN 钉钉 QQ 微信
-------------------------------------------------------------------------------

JustAuth如你所见它仅仅是一个第三方授权登录工具类库它可以让我们脱离繁琐的第三方登录SDK让登录变得So easy!

快速使用

  • 引入依赖
<dependency>
    <groupId>me.zhyd.oauth</groupId>
    <artifactId>JustAuth</artifactId>
    <version>1.0.0</version>
</dependency>
  • 调用api
AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
        .clientId("clientId")
        .clientSecret("clientSecret")
        .redirectUri("redirectUri")
        .build());
// 自动跳转到授权页面
authRequest.authorize(response);
// 返回授权页面,可自行调整
authRequest.authorize();
// 授权登陆后会返回一个code用这个code进行登录
authRequest.login("code");

API列表

💻 平台 API类 📄 SDK
AuthGiteeRequest https://github.com/settings/developers
AuthGithubRequest https://gitee.com/api/v5/oauth_doc#list_1
AuthWeiboRequest https://open.weibo.com/apps
AuthCsdnRequest https://connect.qq.com/
AuthDingTalkRequest 待续
AuthQqRequest 待续
AuthWechatRequest 待续
Description
小而全而美的第三方登录开源组件。目前已支持Github、Gitee、微博、钉钉、百度、Coding、腾讯云开发者平台、OSChina、支付宝、QQ、微信、淘宝、Google、Facebook、抖音、领英、小米、微软、今日头条、Teambition、StackOverflow、Pinterest、人人、华为、企业微信、酷家乐、Gitlab、美团、饿了么、推特、飞书、京东、阿里云、喜马拉雅、Amazon、Slack和 Line 等第三方平台的授权登录。 Login, so easy!
Readme MIT 9.6 MiB
Languages
Java 99.6%
Shell 0.4%