1 Star 0 Fork 2.9K

wangxinxx / JustAuth

forked from yadong.zhang / JustAuth 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Login, so easy.

Gitee Github Weibo 钉钉 百度 CSDN Coding 腾讯云 OSChina 支付宝 QQ 微信

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

项目开源地址:gitee | github

快速开始

  • 引入依赖
<dependency>
    <groupId>me.zhyd.oauth</groupId>
    <artifactId>JustAuth</artifactId>
    <version>1.0.1</version>
</dependency>
  • 调用api
// 创建授权request
AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
        .clientId("clientId")
        .clientSecret("clientSecret")
        .redirectUri("redirectUri")
        .build());
// 生成授权页面
authRequest.authorize();
// 授权登录后会返回一个code,用这个code进行登录
authRequest.login("code");

具体的例子可以参考:

API列表

:computer: 平台 :coffee: API类 :page_facing_up: SDK
AuthGiteeRequest 参考文档
AuthGithubRequest 参考文档
AuthWeiboRequest 参考文档
AuthDingTalkRequest 参考文档
AuthBaiduRequest 参考文档
AuthCodingRequest 参考文档
AuthTencentCloudRequest 参考文档
AuthOschinaRequest 参考文档
AuthAlipayRequest 参考文档
AuthCsdnRequest 待续
AuthQqRequest 参考文档
AuthWechatRequest 待续

后续开发计划

参考:[开发计划] 待扩展的第三方平台

另外,期待您和我一起完善这个项目!

致谢

在项目立项初期,也对当前开源圈的一些相同类型的项目作过调研,同时本项目也参考过这些项目,再次感谢开源圈内的朋友。

YurunOAuthLogin: PHP 第三方登录授权 SDK

参考图例

授权gitee

Gitee授权登录

授权github

Github授权登录

授权weibo

微博授权登录

授权钉钉

钉钉授权登录

授权百度

百度授权登录

授权coding

Coding授权登录

授权腾讯云开发者平台

腾讯云开发者平台授权登录

授权oschina

授权oschina登录

授权支付宝

授权支付宝登录

授权csdn

待续

授权qq

待续

授权微信

待续

请喝咖啡

支付宝 微信
MIT License Copyright (c) 2019 https://gitee.com/yadong.zhang/JustAuth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

史上最全的整合第三方登录的工具,目前已支持Github、Gitee、微博、钉钉和百度、Coding、腾讯云开发者平台、OSChina和支付宝授权登录。 Login, so easy! 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/wangxinxx/JustAuth.git
git@gitee.com:wangxinxx/JustAuth.git
wangxinxx
JustAuth
JustAuth
master

搜索帮助

14c37bed 8189591 565d56ea 8189591