cas sso 整合记录

首先说明下,我使用的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)://.*",

客户端调用服务端就好了。

posted on 2016-12-12 15:20  modprobe  阅读(433)  评论(0编辑  收藏  举报