zoukankan      html  css  js  c++  java
  • cas4.2以下取消https

    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>--%>
  • 相关阅读:
    STL容器内数据删除
    grep 同时满足多个关键字和满足任意关键字
    程序运行栈空间不足程序崩溃问题
    VS2010中设置程序以管理员身份运行
    python 包详解
    select 详解
    Hdu 1166
    CF1204C
    CF1204B
    CF1204A
  • 原文地址:https://www.cnblogs.com/xiaojf/p/6617955.html
Copyright © 2011-2022 走看看