zoukankan      html  css  js  c++  java
  • sso demo 取消https (cas)

    基本配置 参考之前得随笔  http://www.cnblogs.com/rocky-fang/p/5354947.html

    1. 修改tomcat-cas 配置

       1.1 在 D: estsso omcat-caswebappscasWEB-INF路径下找到 deployerConfigContext.xml修改如下:(增加p:requireSecure="false"

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

     1.2  D: estsso omcat-caswebappscasWEB-INFspring-configuration下找到 ticketGrantingTicketCookieGenerator.xml 修改如下:(修改 p:cookieSecure="true"

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

    1.3 D: estsso omcat-caswebappscasWEB-INFspring-configuration下找到 warnCookieGenerator.xml 修改如下: (修改 p:cookieSecure="true"

    <bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
            p:cookieSecure="false"

    在 cas 服务器运行的时候,就可以只使用 http 请求了,省去了 HTTPS 协议的麻烦配置。

  • 相关阅读:
    rosbag 那些事
    rosbag record and play
    xsens melodic ros driver
    ros the public key is not available
    pyhton2与pyhton3切换
    期待已久的2013年度最佳 jQuery 插件揭晓
    MVC学习资料
    依赖注入框架Autofac的简单使用
    bootstrap
    https://nodejstools.codeplex.com
  • 原文地址:https://www.cnblogs.com/rocky-fang/p/5957207.html
Copyright © 2011-2022 走看看