sso demo 取消https (cas)

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

1. 修改tomcat-cas 配置

   1.1 在 D:\test\sso\tomcat-cas\webapps\cas\WEB-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:\test\sso\tomcat-cas\webapps\cas\WEB-INF\spring-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:\test\sso\tomcat-cas\webapps\cas\WEB-INF\spring-configuration下找到 warnCookieGenerator.xml 修改如下: (修改 p:cookieSecure="true"

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

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

转载于:https://www.cnblogs.com/rocky-fang/p/5957207.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值