init: CasSsoService CAS 5.3 overlay (cas.war via LFS)

This commit is contained in:
chenxing
2026-08-05 09:53:49 +08:00
commit 3bd14554ec
93 changed files with 19827 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# CAS 自身配置(部署到 Nacos:namespace=cas, group=CAS, dataId=cas-prod.properties)
# 说明:
# - JDBC 的连接信息(URL / 账号 / 密码)由公共 base-common 注入,这里【不要】写 url/user/password
# - 这里只写「库名」(database) 与查询/密码编码相关项
# - 其余 CAS 专属配置(tgc / webflow / server / custom.rsa 等)保持你现有的不变
cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas
cas.serviceRegistry.initFromJson: true
cas.logout.followServiceRedirects: true
# ===== JDBC 认证(库名写这里,连接来自 base-common)=====
cas.authn.jdbc.query[0].database=bsch_userbase
cas.authn.jdbc.query[0].sql=select * from sys_user where username=?
cas.authn.jdbc.query[0].fieldPassword=password
cas.authn.jdbc.query[0].fieldDisabled=disabled
cas.authn.jdbc.query[0].fieldExpired=expired
cas.authn.jdbc.query[0].passwordEncoder.type=BCRYPT
cas.authn.jdbc.query[0].passwordEncoder.strength=10
# 自定义 /api/login 登录成功后的默认跳转地址(URL 不带 service 参数时生效)。
# - 支持绝对地址,如 http://sso.yunhaixingtong.com(绝对地址会直接作为跳转目标,不再拼 CAS 自身 host)
# - 也支持相对路径,如 / 或 /cas/login
# - 不配此键时,代码内置默认值 = http://sso.yunhaixingtong.com
# 带 service 参数时,仍按原逻辑跳转该 service(控制器返回带 ticket 的 service 地址)。
custom.login.default-redirect-url=http://sso.yunhaixingtong.com
# ... 其余 CAS 配置(tgc / webflow / custom.rsa / custom.login 等)同你现有内容 ...