CAS采用http方式不采用https方式配置
cas3一下的版本网上介绍说比较复杂,本人未测试。本文是在cas-server3.4版本上测试成功的,记录在此以供以后查询
主要有以下步骤:
1. WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml中将p:cookieSecure="true"修改为 p:cookieSecure="false"
2. WEB-INF/spring-configuration/warnCookieGenerator.xml中将p:cookieSecure="true"改为p:cookieSecure="false"
3. 在tomcat的server.xml中关闭8443端口
4. 在cas客户端的web.xml中将https改为http方式且将端口更改为tomcat中使用的端口(我使用的是8080)