liuzs518 发表于 2020-1-9 11:44:04

单点登录如何集成?

如何集成单点登录访问多个系统,有谁搞过?怎样的一个步骤流程?还望明示

admin_jh9 发表于 2020-1-9 14:18:40

http://doc.jeecg.com/1273851

lycplayer 发表于 2020-1-9 18:07:52

本帖最后由 lycplayer 于 2020-1-10 09:47 编辑

我也在整这个,对cas不熟, 目前发现个问题 :一旦配置“cas.authn.jdbc.encode.saltFieldName=salt” 就会启动cas服务就会报错,抱怨无法找到 class org.hsqldb.jdbcDriver ,但注释掉这行就运行正常。看起来要用到盐就得要这个包

lycplayer 发表于 2020-1-10 11:26:27

admin_jh9 发表于 2020-1-9 14:18 static/image/common/back.gif
http://doc.jeecg.com/1273851

请问cas服务端这么配 并未解密成功,问题在哪?
#查询账号密码sql,必须包含密码字段
cas.authn.jdbc.query.sql=select * from sys_user where username=?
#指定上面的sql查询字段名(必须)
cas.authn.jdbc.query.fieldPassword=password
#指定过期字段,1为过期,若过期需要修改密码
#cas.authn.jdbc.query.fieldExpired=expired_flag
#不可用字段段,1为不可用,
#cas.authn.jdbc.query.fieldDisabled=disabled_flag
#数据库方言hibernate的知识
cas.authn.jdbc.query.dialect=org.hibernate.dialect.MySQLDialect
#数据库驱动
cas.authn.jdbc.query.driverClass=com.mysql.jdbc.Driver
#数据库连接
cas.authn.jdbc.query.url=jdbc:mysql://ip:port/jeecg-boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
#数据库用户名
cas.authn.jdbc.query.user=root
#数据库密码
cas.authn.jdbc.query.password=root
#默认加密策略,通过encodingAlgorithm来指定算法,默认NONE不加密
#若算法为自定义,实现org.springframework.security.crypto.password.PasswordEncoder接口,并且把类名配置在passwordEncoder.type
cas.authn.jdbc.query.passwordEncoder.type=DEFAULT
# 盐值固定列once open this, then throw exception"fail to load org.hsqld.driver..." during deploying,blocking issue!... unsolved yet.
cas.authn.jdbc.encode.saltFieldName=salt
##静态盐值
##cas.authn.jdbc.encode.staticSalt=.
cas.authn.jdbc.query.passwordEncoder.characterEncoding=UTF-8
cas.authn.jdbc.query.passwordEncoder.encodingAlgorithm=MD5
页: [1]
查看完整版本: 单点登录如何集成?