refactor: 适配 ContiNew Starter 认证模块-JustAuth

This commit is contained in:
2023-11-25 18:16:29 +08:00
parent 86ca8f094f
commit 7ad8d1773a
8 changed files with 36 additions and 197 deletions

View File

@@ -1 +0,0 @@
com.xkcoding.justauth.autoconfigure.JustAuthAutoConfiguration

View File

@@ -83,21 +83,6 @@ spring.cache:
# 是否允许缓存空值(默认 true表示允许可以解决缓存穿透问题
cache-null-values: true
--- ### Just Auth 配置
justauth:
enabled: true
type:
GITEE:
client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=gitee
GITHUB:
client-id: 38080dad08cfbdfacca9
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=github
cache:
type: custom
--- ### 短信配置
sms:
# 从 YAML 读取配置
@@ -177,6 +162,21 @@ springdoc:
swagger-ui:
enabled: true
--- ### Just Auth 配置
justauth:
enabled: true
type:
GITEE:
client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=gitee
GITHUB:
client-id: 38080dad08cfbdfacca9
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=github
cache:
type: custom
--- ### Sa-Token 扩展配置
sa-token.extension:
# 安全配置:排除(放行)路径配置

View File

@@ -85,21 +85,6 @@ spring.cache:
# 是否允许缓存空值(默认 true表示允许可以解决缓存穿透问题
cache-null-values: true
--- ### Just Auth 配置
justauth:
enabled: true
type:
GITEE:
client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=gitee
GITHUB:
client-id: 38080dad08cfbdfacca9
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=github
cache:
type: custom
--- ### 短信配置
sms:
# 从 YAML 读取配置
@@ -183,6 +168,21 @@ knife4j:
# 开启生产环境屏蔽
production: true
--- ### Just Auth 配置
justauth:
enabled: true
type:
GITEE:
client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=gitee
GITHUB:
client-id: 38080dad08cfbdfacca9
client-secret: 1f7d08**********5b7**********29e
redirect-uri: ${project.url}/social/callback?source=github
cache:
type: custom
--- ### Sa-Token 扩展配置
sa-token.extension:
# 安全配置:排除(放行)路径配置