CAS取消https方法配置
2016-09-28 17:01
267 查看
cas的https部署方式很复杂,所以如果安全性要求不高,就进行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" />
另:CAS4.0以后默认用户名密码已经变为:casuser Mellon
原文转自:http://blog.csdn.net/zhurhyme/article/details/24052951
详细配置修改如下:
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" />
另:CAS4.0以后默认用户名密码已经变为:casuser Mellon
原文转自:http://blog.csdn.net/zhurhyme/article/details/24052951
相关文章推荐
- CAS 服务器端取消 https的配置 方法
- 修改cas-server3.5.1(一) cas取消https方法配置。
- cas 入门之三:cas 之http 部署(CAS取消https方法配置)
- CAS取消https方法配置
- cas 入门之三:cas 之http 部署(CAS取消https方法配置)
- cas 入门之三:cas 之http 部署(CAS取消https方法配置)
- CAS 取消HTTPS配置
- TOMCAT、JBOSS HTTPS应用配置方法
- Centos 5下配置https服务器的方法
- linux centos 下 配置https服务器的方法
- CAS 使用 HTTPS 单向认证方式 服务端和客户端配置
- 关闭(取消)Windows 2003中IE增强的安全配置的方法
- 如何制作一个 https 网站?IIS配置HTTPS服务的方法
- CAS 配置使用方法
- 详解 Nginx + Tomcat HTTPS/SSL 配置方法
- 关于VS2010出现“此方法显式使用的 CAS 策略已被 .NET Framework 弃用... ...请使用 NetFx40_LegacySecurityPolicy 配置开关”解决办法
- WCF在https类型的网站中,web.config文件的配置方法。
- 如何制作一个 https 网站?IIS配置HTTPS服务的方法
- CAS 配置使用方法
- TOMCAT、 JBOSS HTTPS应用配置方法