Git Product home page Git Product logo

justauth's Introduction

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.2.0</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列表

💻 平台 ☕ API类 📄 SDK
AuthGiteeRequest 参考文档
AuthGithubRequest 参考文档
AuthWeiboRequest 参考文档
AuthDingTalkRequest 参考文档
AuthBaiduRequest 参考文档
AuthCodingRequest 参考文档
AuthTencentCloudRequest 参考文档
AuthOschinaRequest 参考文档
AuthAlipayRequest 参考文档
AuthQqRequest 参考文档
AuthCsdnRequest 待续
AuthWeChatRequest 参考文档
AuthTaobaoRequest 参考文档

后续开发计划

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

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

致谢

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

YurunOAuthLogin: PHP 第三方登录授权 SDK

参考图例

授权gitee

Gitee授权登录

授权github

Github授权登录

授权weibo

微博授权登录

授权钉钉

钉钉授权登录

授权百度

百度授权登录

授权coding

Coding授权登录

授权腾讯云开发者平台

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

授权oschina

授权oschina登录

授权支付宝

授权支付宝登录

授权qq

待续

授权csdn

待续

授权微信

待续

授权淘宝

授权淘宝登录

交流

微信(备注:加群) 公众号

QQ群

请喝咖啡

支付宝 微信

justauth's People

Contributors

zhangyd-c avatar xkcoding avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.