Skip to content

Commit ffd3376

Browse files
committed
🐛 使用justauth-spring-boot-starter之后配置文件更新
1 parent 1695d31 commit ffd3376

File tree

2 files changed

+64
-60
lines changed

2 files changed

+64
-60
lines changed

spring-boot-demo-social/README.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -354,36 +354,38 @@ spring:
354354
# 一般来说是不用配置的,Spring Cache 会根据依赖的包自行装配
355355
type: redis
356356

357-
oauth:
358-
qq:
359-
client-id: 1015*****
360-
client-secret: 1f7d08df55766**************
361-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback
362-
github:
363-
client-id: 2d25a70**************
364-
client-secret: 5a2919b5fe911567343**************
365-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback
366-
wechat:
367-
client-id: wxdcb31**************
368-
client-secret: b4e9dc6841ef7d**************
369-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback
370-
google:
371-
client-id: 716518501517-6dbdkapivhia806vqcjjh9nttj3**************
372-
client-secret: 9IBornd7w1A**************
373-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback
374-
microsoft:
375-
client-id: 7bdce818-2c8e-4b**************
376-
client-secret: Iu0zZ43RQydo_FkD**************
377-
redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback
378-
mi:
379-
client-id: 2882303**************
380-
client-secret: nFeTt89Yn**************
381-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback
382-
wechat_enterprise:
383-
client-id: ww58**********6fbc
384-
client-secret: 8G6PCr0****************************yzaPc78
385-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback
386-
agent-id: 10*******02
357+
justauth:
358+
enabled: true
359+
type:
360+
qq:
361+
client-id: 10******85
362+
client-secret: 1f7d************************d629e
363+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback
364+
github:
365+
client-id: 2d25******d5f01086
366+
client-secret: 5a2919b************************d7871306d1
367+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback
368+
wechat:
369+
client-id: wxdcb******4ff4
370+
client-secret: b4e9dc************************a08ed6d
371+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback
372+
google:
373+
client-id: 716******17-6db******vh******ttj320i******userco******t.com
374+
client-secret: 9IBorn************7-E
375+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback
376+
microsoft:
377+
client-id: 7bdce8******************e194ad76c1b
378+
client-secret: Iu0zZ4************************tl9PWan_.
379+
redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback
380+
mi:
381+
client-id: 288************2994
382+
client-secret: nFeTt89************************==
383+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback
384+
wechat_enterprise:
385+
client-id: ww58******f3************fbc
386+
client-secret: 8G6PCr00j************************rgk************AyzaPc78
387+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback
388+
agent-id: 1000002
387389
```
388390
389391
### 2.3. OauthController.java

spring-boot-demo-social/src/main/resources/application.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,35 @@ spring:
2424
# 一般来说是不用配置的,Spring Cache 会根据依赖的包自行装配
2525
type: redis
2626

27-
oauth:
28-
qq:
29-
client-id: 1015*****
30-
client-secret: 1f7d08df55766**************
31-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback
32-
github:
33-
client-id: 2d25a70**************
34-
client-secret: 5a2919b5fe911567343**************
35-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback
36-
wechat:
37-
client-id: wxdcb31**************
38-
client-secret: b4e9dc6841ef7d**************
39-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback
40-
google:
41-
client-id: 716518501517-6dbdkapivhia806vqcjjh9nttj3**************
42-
client-secret: 9IBornd7w1A**************
43-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback
44-
microsoft:
45-
client-id: 7bdce818-2c8e-4b**************
46-
client-secret: Iu0zZ43RQydo_FkD**************
47-
redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback
48-
mi:
49-
client-id: 2882303**************
50-
client-secret: nFeTt89Yn**************
51-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback
52-
wechat_enterprise:
53-
client-id: ww58**********6fbc
54-
client-secret: 8G6PCr0****************************yzaPc78
55-
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback
56-
agent-id: 10*******02
27+
justauth:
28+
enabled: true
29+
type:
30+
qq:
31+
client-id: 10******85
32+
client-secret: 1f7d************************d629e
33+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/qq/callback
34+
github:
35+
client-id: 2d25******d5f01086
36+
client-secret: 5a2919b************************d7871306d1
37+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/github/callback
38+
wechat:
39+
client-id: wxdcb******4ff4
40+
client-secret: b4e9dc************************a08ed6d
41+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat/callback
42+
google:
43+
client-id: 716******17-6db******vh******ttj320i******userco******t.com
44+
client-secret: 9IBorn************7-E
45+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/google/callback
46+
microsoft:
47+
client-id: 7bdce8******************e194ad76c1b
48+
client-secret: Iu0zZ4************************tl9PWan_.
49+
redirect-uri: https://oauth.xkcoding.com/demo/oauth/microsoft/callback
50+
mi:
51+
client-id: 288************2994
52+
client-secret: nFeTt89************************==
53+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/mi/callback
54+
wechat_enterprise:
55+
client-id: ww58******f3************fbc
56+
client-secret: 8G6PCr00j************************rgk************AyzaPc78
57+
redirect-uri: http://oauth.xkcoding.com/demo/oauth/wechat_enterprise/callback
58+
agent-id: 1000002

0 commit comments

Comments
 (0)