justauth-spring-boot-starter
V1.3.5 發布成功
關於 justauth-spring-boot-starter
justauth-spring-boot-starter
是 Spring Boot 集成 JustAuth 的最佳實踐。如果你的項目是基於 Spring Boot 構建,則推薦你用 justauth-spring-boot-starter
,源碼地址:justauth-spring-boot-starter
justauth-spring-boot-starter
是由在 github 已獲 20k 關注度的深度學習並實戰 springboot 項目的作者(xkcoding)提供, 項目地址,spring-boot-demo
論小白上手 Spring Boot、老手深度學習 Spring Boot,spring-boot-demo 最適合!
使用幫助
基礎配置
- 引用依賴
<dependency>
<groupId>com.xkcoding.justauth</groupId>
<artifactId>justauth-spring-boot-starter</artifactId>
<version>1.3.5</version>
</dependency>
- 添加配置,在
application.yml
中添加配置配置信息
注意:
justauth.type
節點的配置,請根據項目實際情況選擇,多余的可以刪除- 如果使用 QQ 登錄,並且需要獲取
unionId
,則必須傳union-id
配置,並置為true
- 如果使用支付寶登錄,必傳
alipay-public-key
- 如果使用
Stack Overflow
登錄,必傳stack-overflow-key
- 如果使用企業微信登錄,必傳
agent-id
- 如果使用
CODING
登錄,必傳coding-group-name
更多使用幫助,請參考 README
justauth-spring-security-starter
justauth-spring-security-starter: 1.1.12 也已由社區小伙伴發布完成。 justauth-spring-security-starter 是 Spring security 集成 JustAuth 實現第三方授權登錄腳手架。項目地址:justauth-spring-boot-security-starter。
該項目
- 支持所有 justAuth 支持的第三方登錄,登錄后自動注冊 或 綁定.
- 支持定時刷新 accessToken, 支持分布式定時任務,
- 支持第三方授權登錄的用戶信息表與 token 信息表的緩存功能.
- 支持第三方綁定與解綁及查詢接口。
關於 Just Auth
JustAuth,如你所見,它僅僅是一個第三方授權登錄的工具類庫,它可以讓我們脫離繁瑣的第三方登錄SDK,讓登錄變得So easy!
目前已支持Github、Gitee、微博、釘釘、百度、Coding、騰訊雲開發者平台、OSChina、支付寶、QQ、微信、淘寶、Google、Facebook、抖音、領英、小米、微軟、今日頭條、Teambition、StackOverflow、Pinterest、人人、華為、企業微信、酷家樂、Gitlab、美團、餓了么和推特等第三方平台的授權登錄。 Login, so easy!
部分用戶
特點
廢話不多說,就倆字:
- 全:已集成十多家第三方平台(國內外常用的基本都已包含),仍然還在持續擴展中([開發計划]([開發計划] 待擴展的第三方平台 · Issue #IUGRK · yadong.zhang/JustAuth - Gitee.com))!
- 簡:API就是奔着最簡單去設計的,盡量讓您用起來沒有障礙感!
項目源碼庫
本文由博客群發一文多發等運營工具平台 OpenWrite 發布