cas 使用 http协议

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



你可能感兴趣的:(cas)