cas 入门之三:cas 之http 部署(CAS取消https方法配置)
2017-04-05 11:44
357 查看
cas的https部署方式很复杂,所以可以参见如下文章
http://www.coin163.com/ href="http://lib.csdn.net/base/javase" target=_blank>Java/docs/201305/d_2795028902.html
进行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" />
2 、 WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml
修改 p:cookieSecure="true" 为 p:cookieSecure=" false " , 即不需要安全 cookie
如下部分:
< bean id = "ticketGrantingTicketCookieGenerator" class = "org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure = " false "
p:cookieMaxAge = "-1"
p:cookieName = "CASTGC"
p:cookiePath = "/cas" />
3 、 WEB-INF\spring-configuration\warnCookieGenerator.xml
修改 p:cookieSecure="true" 为 p:cookieSecure=" false " , 即不需要安全 cookie
结果如下:
< bean id = "warnCookieGenerator" class = "org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure = " false "
p:cookieMaxAge = "-1"
p:cookieName = "CASPRIVACY"
p:cookiePath = "/cas" />
http://www.coin163.com/ href="http://lib.csdn.net/base/javase" target=_blank>Java/docs/201305/d_2795028902.html
进行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" />
2 、 WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml
修改 p:cookieSecure="true" 为 p:cookieSecure=" false " , 即不需要安全 cookie
如下部分:
< bean id = "ticketGrantingTicketCookieGenerator" class = "org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure = " false "
p:cookieMaxAge = "-1"
p:cookieName = "CASTGC"
p:cookiePath = "/cas" />
3 、 WEB-INF\spring-configuration\warnCookieGenerator.xml
修改 p:cookieSecure="true" 为 p:cookieSecure=" false " , 即不需要安全 cookie
结果如下:
< bean id = "warnCookieGenerator" class = "org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure = " false "
p:cookieMaxAge = "-1"
p:cookieName = "CASPRIVACY"
p:cookiePath = "/cas" />
相关文章推荐
- cas 入门之三:cas 之http 部署(CAS取消https方法配置)
- cas 入门之三:cas 之http 部署(CAS取消https方法配置)
- CAS 服务器端取消 https的配置 方法
- 修改cas-server3.5.1(一) cas取消https方法配置。
- CAS取消https方法配置
- CAS取消https方法配置
- tomcat同时使用http和https访问的配置方法
- Tomcat 访问http强制 https 访问配置方法
- http自动跳转https的配置方法
- Nginx配置SSL证书部署HTTPS网站的方法(颁发证书)
- 服务器安全升级:ssl证书配置好,设置http跳转https的几种方法
- http自动跳转https的配置方法
- tomcat的安全配置(禁用http方法,部署多个应用,启用从安全cookie,指定错误页面和显示信息)
- tomcat同时使用http和https访问的配置方法
- CAS 取消HTTPS配置
- Nginx配置https和http可同时访问方法
- Nginx的https配置记录以及http强制跳转到https的方法梳理
- Apache2+Tomcat7配置http请求自动跳转到https的方法
- Nginx的https配置记录以及http强制跳转到https的方法梳理