Cas single point java, php client skip SSL authentication, login in http form

Source: Internet
Author: User
Cas single point java, php client skip SSL authentication, login in http mode here you can briefly talk about the modified content, also previously queried from the internet! Below are the jar package modification content and java, php client corresponding to the need to modify the configuration instructions !? 1. WEB-INFdeployerConfigContext.xml & lt; bean? Classorg. jasig. cas. cas single point java, php client skip SSL authentication, login in http mode


Here we can briefly talk about the modified content, which was previously queried from the internet!

The following is the jar package's modification content and the java, php client's corresponding configuration instructions to be modified!

?

1. WEB-INF \DeployerConfigContext. xml

?????????????????? P: httpClient-ref = "httpClient "? />

????????? Add the parameter p: requireSecure = "false", whether security verification is required, that is, HTTPS. if false is not used, add the parameter as follows:

???????????????????????????????????????? ??????? P: httpClient-ref = "httpClient "?? P: requireSecure = "false"/>

?

?

2 .?????? \ WEB-INF \ cas-servlet.xml

??????? P: cookieSecure = "false"

??????? P: cookieMaxAge = "-1"

??????? P: cookieName = "CASPRIVACY"

??????? P: cookiePath = "/cas "? />

Parameter p: cookieSecure = "true". Similarly, it is related to HTTPS verification. TRUE is used for HTTPS verification, which is consistent with the deployerConfigContext. xml parameter.

Parameter p: cookieMaxAge = "-1", which is simply the maximum life cycle of a COOKIE.-1 indicates no life cycle, which is valid only in the currently opened IE window, IE closes or re-opens other windows, verification is still required.

?

??????? P: cookieSecure = "false"

??????? P: cookieMaxAge = "-1"

??????? P: cookieName = "CASTGC"

??????? P: cookiePath = "/cas "? />

The two parameters are the same as above.

Note: If p: cookieSecure = "true "? Indicates that only https requests can read values in cookies, but http requests cannot read values from cookies.

?

?

?

?

Modify the java client:

The green section below is the modified section. change the original https address to http

??

????? CASFilter

????? Edu. yale. its. tp. cas. client. filter. CASFilter ?

????? ?

????????? Edu. yale. its. tp. cas. client. filter. loginUrl ?

????????? Http: /localhost: 8080/cas/login ?

??????

????? ?

????????? Edu. yale. its. tp. cas. client. filter. validateUrl ?

????????? Http: // localhost: 8080/cas/proxyValidate ?

??????

????? ?

????????????? Edu. yale. its. tp. cas. client. filter. serverName ?

????????????? Localhost: 8088 ?

??????

?

????? CASFilter ?

????? /* ?

?

?


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.