如何去掉HTTPS认证? spring
说明:默认状况下HTTP也是能够访问CAS SERVER的,但认证,登录,退出等操做均没有任何的效果。因此必须做出下面的修改 cookie
一、进入WEB-INF\spring-configuration目录 ui
打开warnCookieGenerator.xml文件 修改p:cookieSecure的值为false spa
二、打开ticketGrantingTicketCookieGenerator.xml文件
一样修改p:cookieSecure的值为false code
三、打开WEB-INF\deployerConfigContext.xml文件
查找org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler
把这代码块修改成以下: xml
<bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p:httpClient-ref="httpClient" p:requireSecure="false" />
p:requireSecure="false"为新添加的blog