您的位置:首页 > 其它

cas sso 整合记录

2016-12-12 15:20 330 查看
首先说明下,我使用的cas-server版本是4.2.1

整合过程中遇到的问题及解决方式如下

1、因为使用https的话证书是个麻烦事,所以启用http

修改cas-server-webapp下的cas.properties文件

取消下面的注释,并将值设为false

tgc.secure=false
warn.cookie.secure=false


如果客户端验证的时候报如下错误

Application Not Authorized to Use CAS
The application you attempted to authenticate to is not authorized to use CAS.


通过搜索找到了csdn网友u010750385的回答

因为我的CAS客户端的服务器地址用的是http的,CAS默认走的是https的,配好https就行了,如果不想走https而是走http的话,只要更改serviceId,将HTTPSandIMAPS-10000001.json文件中的serviceId 由

"serviceId" : "^(https|imaps)://.*",


修改为

"serviceId" : "^(http|imaps)://.*",


客户端调用服务端就好了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: