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