From 3d7d37b651bb8a1e9a4460ddef22a311b689d956 Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Tue, 17 Sep 2019 19:28:46 +0800 Subject: [PATCH] =?UTF-8?q?:beers:=20=E6=96=87=E6=A1=A3=E3=80=81=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/update.md | 2 ++ src/main/java/me/zhyd/oauth/config/AuthSource.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/update.md b/docs/update.md index b5e5473..d0866c9 100644 --- a/docs/update.md +++ b/docs/update.md @@ -4,6 +4,8 @@ - 集成“美团”授权登录 - 集成“饿了么”授权登录 - 升级Fastjson依赖到1.2.60,预防[“Fastjson < 1.2.60 远程拒绝服务漏洞预警”](https://card.weibo.com/article/m/show/id/2309404413257925394542) +- 添加Nutzboot版的demo +- 提取公共的Source接口,支持自定义扩展第三方平台的授权登录,具体扩展例子可参考[AuthExtendRequest](https://gitee.com/yadong.zhang/JustAuth/blob/master/src/test/java/me/zhyd/oauth/request/AuthExtendRequest.java) ## v1.11.0 ### 2019/09/03 diff --git a/src/main/java/me/zhyd/oauth/config/AuthSource.java b/src/main/java/me/zhyd/oauth/config/AuthSource.java index 52a18cd..4bfe070 100644 --- a/src/main/java/me/zhyd/oauth/config/AuthSource.java +++ b/src/main/java/me/zhyd/oauth/config/AuthSource.java @@ -14,7 +14,7 @@ import me.zhyd.oauth.model.AuthCallback; *

* 注: * ①、如需通过JustAuth扩展实现第三方授权,请参考{@link AuthDefaultSource}自行创建对应的枚举类并实现{@link AuthSource}接口 - * ②、如果不是使用的枚举类,那么在授权成功后获取用户信息时,需要单独处理sourcec字段的赋值 + * ②、如果不是使用的枚举类,那么在授权成功后获取用户信息时,需要单独处理source字段的赋值 * ③、如果扩展了对应枚举类时,在{@link me.zhyd.oauth.request.AuthRequest#login(AuthCallback)}中可以通过{@code xx.toString()}获取对应的source * * @author yadong.zhang (yadong.zhang0415(a)gmail.com) -- GitLab