CAS去掉HTTPS认证

如何去掉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

四、客户端filter  
  全部https://localhost:8443/cas   更改成 http://localhost:8080/cas
相关文章
相关标签/搜索