cas 使用 http协议

来源:互联网 发布:淘宝网乌梢蛇木瓜丸 编辑:程序博客网 时间:2024/06/05 07:07

1、修改WEB-INF\deployerConfigContext.xml,加入

p:requireSecure="false"    
2、修改WEB-INF\spring-configuration\ticketGrantingTicketCookieGenerator.xml,修改p:cookieSecure="false"

<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"  
  1.     p:cookieSecure="false"  
  2.     p:cookieMaxAge="-1"  
  3.     p:cookieName="CASTGC"  
  4.     p:cookiePath="/cas" />  

3、修改修改WEB-INF\spring-configuration\warnCookieGenerator.xml,修改p:cookieSecure="false"

<bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"  
  1.     p:cookieSecure="false"  
  2.     p:cookieMaxAge="-1"  
  3.     p:cookieName="CASPRIVACY"  
  4.     p:cookiePath="/cas" />  

4.修改/src/main/resources/services/HTTPSandIMAPS-10000001.json

  "serviceId" : "^(https|http|imaps)://.*",    此处加入 http



0 0