对接统一登录认证

This commit is contained in:
wangjianhong
2025-07-23 22:17:47 +08:00
parent 5e4e272b3a
commit e7442ae419
48 changed files with 2940 additions and 3067 deletions

View File

@@ -17,7 +17,7 @@ logging:
# 日志级别
level: debug
# 日志文件路径
path: /home/code/git/ca-mini/ca-server/logs
path: ./logs
datasource:
# 数据源配置
@@ -28,4 +28,21 @@ datasource:
# 数据库用户名
username: root
# 数据库密码
password: yyds@8848
password: yyds@8848
# OAuth2 配置部分
oauth:
# 授权服务器的地址
authorization_server_host: "http://127.0.0.1:8080"
# 客户端 ID用于标识客户端应用
client_id: "certificate-authority-client"
# 客户端密钥,用于认证客户端身份
client_secret: "certificate-authority-secret"
# 回调地址,授权完成后重定向的目标地址
redirect_uri: "http://127.0.0.1:9529/callback"
# 获取令牌的 URL 路径(通常位于授权服务器下)
token_url: "/oauth2/token"