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 ?
????? /* ?
?
?