From ffd3376bae1897406e2c9c0701a07baba1064d42 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Fri, 16 Aug 2019 14:06:38 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BD=BF=E7=94=A8justauth-spring-boot-?= =?UTF-8?q?starter=E4=B9=8B=E5=90=8E=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-demo-social/README.md | 62 ++++++++++--------- .../src/main/resources/application.yml | 62 ++++++++++--------- 2 files changed, 64 insertions(+), 60 deletions(-) diff --git a/spring-boot-demo-social/README.md b/spring-boot-demo-social/README.md index e19e86b..8cc696b 100644 --- a/spring-boot-demo-social/README.md +++ b/spring-boot-demo-social/README.md @@ -354,36 +354,38 @@ spring: # 一般来说是不用配置的,Spring Cache 会根据依赖的包自行装配 type: redis -oauth: - qq: - client-id: 1015***** - client-secret: 1f7d08df55766************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback - github: - client-id: 2d25a70************** - client-secret: 5a2919b5fe911567343************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback - wechat: - client-id: wxdcb31************** - client-secret: b4e9dc6841ef7d************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback - google: - client-id: 716518501517-6dbdkapivhia806vqcjjh9nttj3************** - client-secret: 9IBornd7w1A************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback - microsoft: - client-id: 7bdce818-2c8e-4b************** - client-secret: Iu0zZ43RQydo_FkD************** - redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback - mi: - client-id: 2882303************** - client-secret: nFeTt89Yn************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback - wechat_enterprise: - client-id: ww58**********6fbc - client-secret: 8G6PCr0****************************yzaPc78 - redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback - agent-id: 10*******02 +justauth: + enabled: true + type: + qq: + client-id: 10******85 + client-secret: 1f7d************************d629e + redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback + github: + client-id: 2d25******d5f01086 + client-secret: 5a2919b************************d7871306d1 + redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback + wechat: + client-id: wxdcb******4ff4 + client-secret: b4e9dc************************a08ed6d + redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback + google: + client-id: 716******17-6db******vh******ttj320i******userco******t.com + client-secret: 9IBorn************7-E + redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback + microsoft: + client-id: 7bdce8******************e194ad76c1b + client-secret: Iu0zZ4************************tl9PWan_. + redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback + mi: + client-id: 288************2994 + client-secret: nFeTt89************************== + redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback + wechat_enterprise: + client-id: ww58******f3************fbc + client-secret: 8G6PCr00j************************rgk************AyzaPc78 + redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback + agent-id: 1000002 ``` ### 2.3. OauthController.java diff --git a/spring-boot-demo-social/src/main/resources/application.yml b/spring-boot-demo-social/src/main/resources/application.yml index 0cd5592..4924f85 100644 --- a/spring-boot-demo-social/src/main/resources/application.yml +++ b/spring-boot-demo-social/src/main/resources/application.yml @@ -24,33 +24,35 @@ spring: # 一般来说是不用配置的,Spring Cache 会根据依赖的包自行装配 type: redis -oauth: - qq: - client-id: 1015***** - client-secret: 1f7d08df55766************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback - github: - client-id: 2d25a70************** - client-secret: 5a2919b5fe911567343************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback - wechat: - client-id: wxdcb31************** - client-secret: b4e9dc6841ef7d************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback - google: - client-id: 716518501517-6dbdkapivhia806vqcjjh9nttj3************** - client-secret: 9IBornd7w1A************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback - microsoft: - client-id: 7bdce818-2c8e-4b************** - client-secret: Iu0zZ43RQydo_FkD************** - redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback - mi: - client-id: 2882303************** - client-secret: nFeTt89Yn************** - redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback - wechat_enterprise: - client-id: ww58**********6fbc - client-secret: 8G6PCr0****************************yzaPc78 - redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback - agent-id: 10*******02 \ No newline at end of file +justauth: + enabled: true + type: + qq: + client-id: 10******85 + client-secret: 1f7d************************d629e + redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback + github: + client-id: 2d25******d5f01086 + client-secret: 5a2919b************************d7871306d1 + redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback + wechat: + client-id: wxdcb******4ff4 + client-secret: b4e9dc************************a08ed6d + redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback + google: + client-id: 716******17-6db******vh******ttj320i******userco******t.com + client-secret: 9IBorn************7-E + redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback + microsoft: + client-id: 7bdce8******************e194ad76c1b + client-secret: Iu0zZ4************************tl9PWan_. + redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback + mi: + client-id: 288************2994 + client-secret: nFeTt89************************== + redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback + wechat_enterprise: + client-id: ww58******f3************fbc + client-secret: 8G6PCr00j************************rgk************AyzaPc78 + redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback + agent-id: 1000002