Three. Cancel HTTPS, direct HTTP access

Source: Internet
Author: User
Tags cas

1.web-inf/deployerconfigcontext.xml

in <bean class = " Org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler "P:httpclient-ref = "HttpClient"/>

increase the parameter p:requiresecure= "False ", whether security authentication is required, that is , HTTPS , false is not used as follows:

<bean class = "Org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p : Httpclient-ref = "HttpClient" p:requiresecure= "false"/>

2.web-inf/spring-configuration/ticketgrantingticketcookiegenerator.xml

Modify p:cookiesecure= "true" to p:cookiesecure= "false" , that is, no security cookie is required

The following sections:

<bean id = "Ticketgrantingticketcookiegenerator" class = " Org.jasig.cas.web.support.CookieRetrievingCookieGenerator "

P:cookiesecure = "false"

P:cookiemaxage = "-1"

P:cookiename = "CASTGC"

P:cookiepath = "/cas"/>

3.web-inf\spring-configuration\warncookiegenerator.xml

Modify p:cookiesecure= "true" to p:cookiesecure= "false" , that is, no security cookie is required

The results are as follows:

<bean id = "Warncookiegenerator" class = "Org.jasig.cas.web.support.CookieRetrievingCookieGenerator"

P:cookiesecure = "false"

P:cookiemaxage = "-1"

P:cookiename = "Casprivacy"

P:cookiepath = "/cas"/>

4. Modify The https of the serviceId under Services/apereo-10000002.json Change to http

5. Modify The serviceId of the services/services\httpsandimaps-10000001.json below HTTPS changed to http

client Tomcat modifies login-tomcat-8.0.12\webapps\examples\web-inf\web.xml and Blog-tomcat-8.0.12\webapps\examples\web-inf\web.xml

Modify The port number to HTTP and relative

The access addresses were:

Http://login.hacker.org:18080/examples/servlets/servlet/HelloWorldExample

Http://blog.hacker.org:28080/examples/servlets/servlet/HelloWorldExample

Http://server.hacker.org:8080/cas/logout

Three. Cancel HTTPS, direct HTTP access

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.