f3cfe2dc043023ee3b6de0bd4aa59a660ceef3ce
Login, so easy.
| Gitee | Github | CSDN | 钉钉 | 微信 |
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 | https://open-doc.dingtalk.com/microapp/serverapi2/kymkv6 | |
| AuthQqRequest | 待续 | |
| AuthWechatRequest | 待续 |
Description
🏆Gitee 最有价值开源项目 🚀💯 小而全而美的第三方登录开源组件。目前已支持Github、Gitee、微博、钉钉、百度、Coding、腾讯云开发者平台、OSChina、支付宝、QQ、微信、淘宝、Google、Facebook、抖音、领英、小米、微软、今日头条、Teambition、StackOverflow、Pinterest、人人、华为、企业微信、酷家乐、Gitlab、美团、饿了么、推特、飞书、京东、阿里云、喜马拉雅、Amazon、Slack和 Line 等第三方平台的授权登录。 Login, so easy!
https://justauth.wiki
Readme
MIT
10 MiB
Languages
Java
99.6%
Shell
0.4%
