目錄
4.Apache Shiro 集成Cas作為cas client端實現
5.設置cas server使用http非安全協議
設置cas server使用http非安全協議
主要有以下步驟:
1.WEB-INF/deployerConfigContext.xml中在< bean class = "org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p:httpClient-ref = "httpClient" />增加參數 p:requireSecure="false" ,是否需要安全驗證,即 HTTPS,false 為不采用 如下:< bean class = "org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p:httpClient-ref = "httpClient" p:requireSecure= "false" />
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)