码迷,mamicode.com
首页 > Web开发 > 详细

cas4.2以下取消https

时间:2017-03-25 19:09:09      阅读:399      评论:0      收藏:0      [点我收藏+]

标签:lsa   top   sage   asi   require   ext   logs   ref   back   

deployerConfigContext.xml增加参数p:requireSecure="false"

  <bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
 p:httpClient-ref="httpClient"  p:requireSecure="false"/>

ticketGrantingTicketCookieGenerator.xml修改p:cookieSecure="false"

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

warnCookieGenerator.xml修改p:cookieSecure="false"

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

casLoginView.jsp

<jsp:directive.include file="includes/top.jsp" />

<%--<c:if test="${not pageContext.request.secure}">
    <div id="msg" class="errors">
        <h2><spring:message code="screen.nonsecure.title" /></h2>
        <p><spring:message code="screen.nonsecure.message" /></p>
    </div>
</c:if>--%>

 

cas4.2以下取消https

标签:lsa   top   sage   asi   require   ext   logs   ref   back   

原文地址:http://www.cnblogs.com/xiaojf/p/6617955.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!