docs(nacos): 添加社交登录配置 (rui-auth.yaml)
- 微信登录配置 (app-id, app-secret) - 支付宝登录配置 (app-id, private-key, public-key) - 用 env var 占位符支持容器化部署
This commit is contained in:
@@ -5,3 +5,20 @@
|
|||||||
# 服务端口:9301(认证中心,所有服务依赖)
|
# 服务端口:9301(认证中心,所有服务依赖)
|
||||||
server:
|
server:
|
||||||
port: 9301
|
port: 9301
|
||||||
|
|
||||||
|
# 社交登录配置(微信、支付宝)
|
||||||
|
# 应用启动时由 OAuth2ServerConfig 通过 @Value 注入到 WechatApiClient / AlipayApiClient
|
||||||
|
# 留空表示对应登录方式未启用(Provider 仍会注册,但调用时会失败)
|
||||||
|
social:
|
||||||
|
wechat:
|
||||||
|
# 微信开放平台 AppID
|
||||||
|
app-id: ${WECHAT_APP_ID:}
|
||||||
|
# 微信开放平台 AppSecret
|
||||||
|
app-secret: ${WECHAT_APP_SECRET:}
|
||||||
|
alipay:
|
||||||
|
# 支付宝开放平台 AppID
|
||||||
|
app-id: ${ALIPAY_APP_ID:}
|
||||||
|
# 应用私钥(用于请求签名,RSA2)
|
||||||
|
private-key: ${ALIPAY_PRIVATE_KEY:}
|
||||||
|
# 支付宝公钥(用于响应验签)
|
||||||
|
public-key: ${ALIPAY_PUBLIC_KEY:}
|
||||||
|
|||||||
Reference in New Issue
Block a user