Sso demo cancels https (cas) and ssohttps

Source: Internet
Author: User

Sso demo cancels https (cas) and ssohttps

Basic configuration refer to the previous http://www.cnblogs.com/rocky-fang/p/5354947.html

1. Modify tomcat-cas Configuration

1.1 find deployerConfigContext. xml in the path D: \ test \ sso \ tomcat-cas \ webapps \ cas \ WEB-INF as follows: (add 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 find ticketGrantingTicketCookieGenerator. xml modify as follows: (modify 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 find warnCookieGenerator. xml modify as follows: (modify p: cookieSecure = "true ")

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

When the cas server is running, it can only use http requests, saving the trouble of configuring the HTTPS protocol.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.