設置cas server使用http非安全協議


 

目錄

 

1.tomcat添加https安全協議

 

2.下載cas server端部署到tomcat上

 

3.CAS服務器深入配置(連接MYSQL)

 

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)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM