• cas4.2.7 取消https


    cas.properties 修改两个地方

    # Decides whether SSO cookie should be created only under secure connections.
     tgc.secure=false
    
    # The expiration value of the SSO cookie
    # tgc.maxAge=-1
    
    # The name of the SSO cookie
    # tgc.name=TGC
    
    # The path to which the SSO cookie will be scoped
    # tgc.path=/cas
    
    # The expiration value of the SSO cookie for long-term authentications
    # tgc.remember.me.maxAge=1209600
    
    # Decides whether SSO Warning cookie should be created only under secure connections.
     warn.cookie.secure=false

    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>--%>

    注销上面的代码

    HTTPSandIMAPS-10000001.json 中增加http的service

    {
      "@class" : "org.jasig.cas.services.RegexRegisteredService",
      "serviceId" : "^(https|imaps|http)://.*",
      "name" : "HTTPS and IMAPS",
      "id" : 10000001,
      "description" : "This service definition authorized all application urls that support HTTPS and IMAPS protocols.",
      "proxyPolicy" : {
        "@class" : "org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy"
      },
      "evaluationOrder" : 10000,
      "usernameAttributeProvider" : {
        "@class" : "org.jasig.cas.services.DefaultRegisteredServiceUsernameProvider"
      },
      "logoutType" : "BACK_CHANNEL",
      "attributeReleasePolicy" : {
        "@class" : "org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy",
        "principalAttributesRepository" : {
          "@class" : "org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository"
        },
        "authorizedToReleaseCredentialPassword" : false,
        "authorizedToReleaseProxyGrantingTicket" : false
      },
      "accessStrategy" : {
        "@class" : "org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy",
        "enabled" : true,
        "ssoEnabled" : true
      }
    }
  • 相关阅读:
    【转载】超级实用且不花哨的js代码大全 -----高级应用(一)
    【 Date 对象 参考手册】
    js随机数random()方法
    【转载】js数组的操作
    【转载】js数组和json的区别
    干货----004----MySQL忘记root密码怎么办?
    PHP框架——TP_0001----ThinkPHP常用配置
    干货----003----乱码解决方法
    Python之路【第二十六篇】:xml模块
    Python之路【番外篇1】:使用Python创建照片马赛克
  • 原文地址:https://www.cnblogs.com/xiaojf/p/6617693.html
Copyright © 2020-2023  润新知