首页 > 其他 > 详细

CAS 服务器端取消 https的配置 方法

时间:2014-09-22 16:44:53      阅读:267      评论:0      收藏:0      [点我收藏+]

 

需要修改的配置文件有:

WEB-INF/deployerConfigContext.xml 、 WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml、

WEB-INF\spring-configuration\warnCookieGenerator.xml

 

详细配置修改如下:

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 服务器端取消 https的配置 方法

原文:http://www.cnblogs.com/lucky2u/p/3986033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!