init: CasSsoService CAS 5.3 overlay (cas.war via LFS)
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# ==================== 禁用 HTTPS(开发环境) ====================
|
||||
server.ssl.enabled=false
|
||||
server.port=8443
|
||||
|
||||
# ==================== CAS 核心配置 ====================
|
||||
# 允许通过 HTTP 传输 TGC Cookie
|
||||
cas.tgc.secure=false
|
||||
# 显式指定 TGC Cookie 的 Path 为 /cas;否则默认留空,浏览器按“请求目录”取值,
|
||||
# 自定义登录在 /cas/api/login 种 Cookie 会变成 Path=/cas/api/,跳到 /cas/login 时浏览器不带此 Cookie,导致还要再登录
|
||||
cas.tgc.path=/cas
|
||||
|
||||
# 从 JSON 文件加载服务注册信息
|
||||
cas.serviceRegistry.initFromJson=true
|
||||
|
||||
# ==================== 认证配置 ====================
|
||||
# 静态用户列表(格式:username::password)
|
||||
cas.authn.accept.users=casuser::Mellon
|
||||
|
||||
# ==================== 日志配置(可选) ====================
|
||||
# 设置日志级别,便于调试
|
||||
logging.level.org.apereo.cas=DEBUG
|
||||
|
||||
# ==================== Redis 配置(Spring Boot 标准配置) ====================
|
||||
|
||||
spring.redis.host=localhost
|
||||
spring.redis.port=6379
|
||||
spring.redis.password=123456
|
||||
spring.redis.database=0
|
||||
spring.redis.timeout=5000
|
||||
spring.redis.jedis.pool.max-active=8
|
||||
spring.redis.jedis.pool.max-idle=8
|
||||
spring.redis.jedis.pool.min-idle=0
|
||||
|
||||
|
||||
|
||||
# ==================== JDBC 认证配置 ====================
|
||||
# 查询 SQL,根据用户名获取用户信息
|
||||
cas.authn.jdbc.query[0].sql=select * from sys_user where username=?
|
||||
# 密码字段名
|
||||
cas.authn.jdbc.query[0].fieldPassword=password
|
||||
# 账号禁用字段(可选,1表示禁用)
|
||||
cas.authn.jdbc.query[0].fieldDisabled=disabled
|
||||
# 密码过期字段(可选,1表示过期)
|
||||
cas.authn.jdbc.query[0].fieldExpired=expired
|
||||
|
||||
# 数据库连接信息
|
||||
cas.authn.jdbc.query[0].url=jdbc:mysql://127.0.0.1:3306/yunhai_base?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
cas.authn.jdbc.query[0].user=root
|
||||
cas.authn.jdbc.query[0].password=123456
|
||||
cas.authn.jdbc.query[0].driverClass=com.mysql.jdbc.Driver
|
||||
# 数据库方言
|
||||
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MySQLDialect
|
||||
|
||||
# ==================== 密码加密策略(根据实际情况配置) ====================
|
||||
# 如果数据库密码是明文,则设为 NONE
|
||||
cas.authn.jdbc.query[0].passwordEncoder.type=NONE
|
||||
# 如果是 MD5 加密,则使用以下配置
|
||||
# cas.authn.jdbc.query[0].passwordEncoder.type=DEFAULT
|
||||
# cas.authn.jdbc.query[0].passwordEncoder.encodingAlgorithm=MD5
|
||||
#cas.authn.sso.excluded-paths=/api/**
|
||||
Reference in New Issue
Block a user