• CAS 服务器端取消 https的配置 方法


    需要修改的配置文件有:

    WEB-INF/deployerConfigContext.xml 、 WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml、

    WEB-INFspring-configurationwarnCookieGenerator.xml

     

    详细配置修改如下:

    1 、 WEB-INF/deployerConfigContext.xml

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

    增加参数 p:requireSecure="false" ,是否需要安全验证,即 HTTPS , false 为不采用 如下:

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

          

    2 、 WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml 
             修改 p:cookieSecure="true" 为 p:cookieSecure=" false " , 即不需要安全 cookie

    如下部分:

       

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

    3 、 WEB-INFspring-configurationwarnCookieGenerator.xml

    修改 p:cookieSecure="true" 为 p:cookieSecure=" false " , 即不需要安全 cookie

    结果如下:

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

        

  • 相关阅读:
    设置圆形头型并且可以点击
    不可忽略的知识点
    【Java基础】03_Java常用API
    常用键盘功能键和快捷键以及DOS命令
    【Excel 2013 数据透视表 学习】一、创建数据透视表
    【Java基础】05_异常&File
    【Java基础】04_集合框架
    【设计模式之禅】第2章 里氏替换原则
    【设计模式之禅】第1章 单一职责原则
    Eclipse中快捷键的使用
  • 原文地址:https://www.cnblogs.com/lucky2u/p/3986033.html
Copyright © 2020-2023  润新知