关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 8607|回复: 3

单点登录如何集成?

[复制链接]
发表于 2020-1-9 11:44:04 | 显示全部楼层 |阅读模式
如何集成单点登录访问多个系统,有谁搞过?怎样的一个步骤流程?还望明示
发表于 2020-1-9 14:18:40 | 显示全部楼层
发表于 2020-1-9 18:07:52 | 显示全部楼层
本帖最后由 lycplayer 于 2020-1-10 09:47 编辑

我也在整这个,对cas不熟, 目前发现个问题 :一旦配置“cas.authn.jdbc.encode[1].saltFieldName=salt” 就会启动cas服务就会报错,抱怨无法找到 class org.hsqldb.jdbcDriver ,但注释掉这行就运行正常。看起来要用到盐就得要这个包
发表于 2020-1-10 11:26:27 | 显示全部楼层
admin_jh9 发表于 2020-1-9 14:18
http://doc.jeecg.com/1273851

请问cas服务端这么配 并未解密成功,问题在哪?
#查询账号密码sql,必须包含密码字段
cas.authn.jdbc.query[1].sql=select * from sys_user where username=?
#指定上面的sql查询字段名(必须)
cas.authn.jdbc.query[1].fieldPassword=password
#指定过期字段,1为过期,若过期需要修改密码
#cas.authn.jdbc.query[1].fieldExpired=expired_flag
#不可用字段段,1为不可用,
#cas.authn.jdbc.query[1].fieldDisabled=disabled_flag
#数据库方言hibernate的知识
cas.authn.jdbc.query[1].dialect=org.hibernate.dialect.MySQLDialect
#数据库驱动
cas.authn.jdbc.query[1].driverClass=com.mysql.jdbc.Driver
#数据库连接
cas.authn.jdbc.query[1].url=jdbc:mysql://ip:port/jeecg-boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
#数据库用户名
cas.authn.jdbc.query[1].user=root
#数据库密码
cas.authn.jdbc.query[1].password=root
#默认加密策略,通过encodingAlgorithm来指定算法,默认NONE不加密
#若算法为自定义,实现org.springframework.security.crypto.password.PasswordEncoder接口,并且把类名配置在passwordEncoder.type
cas.authn.jdbc.query[1].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[1].saltFieldName=salt
##静态盐值
##cas.authn.jdbc.encode[1].staticSalt=.
cas.authn.jdbc.query[1].passwordEncoder.characterEncoding=UTF-8
cas.authn.jdbc.query[1].passwordEncoder.encodingAlgorithm=MD5
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表