Files
CasSsoService/docker/cas-prod.properties.example
T

30 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 等)同你现有内容 ...