<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationFailure code="INVALID_SERVICE">
Ticket 'ST-2-NebQkEA0E-s5uqwpvia2zg1RbtUtlqauth-l-prod1' does not match supplied service.
The original service was 'http://127.0.0.1/login/login.aspx?ReturnUrl=/bottin/liste.aspx' and
the supplied service was 'http://127.0.0.1/login/login.aspx?ReturnUrl=/bottin/liste.aspx'.
</cas:authenticationFailure>
</cas:serviceResponse>
If I use the DEV and TEST, they are OK.The configuration is the same for all servers except minor settings like names and LDAP referenced.Does anyone knows what is happening?Thank's
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^https?://(((localhost(\\.uquebec\\.ca)?)|(127\\.0\\.0\\.1)|(.+-pc\\.teluq\\.uquebec\\.ca))(:[0-9]+)?)(/?.*)",
"id" : 10000004,
"name" : "Applications localhost",
"theme" : "teluq",
"description" : "Cette définition de service permet les connexions aux applications locales",
"evaluationOrder" : 11004,
"requiredHandlers" : [ "java.util.HashSet", [ "ldapHandler1", "ldapHandler2" ] ],
"excludeDefaultAttributes":"true",
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
},
"accessStrategy" : {
"@class" : "org.apereo.cas.services.SurrogateRegisteredServiceAccessStrategy",
"surrogateEnabled" : true,
"enabled": true,
"ssoEnabled": true
}
}cas.authn.policy.requiredHandlerAuthenticationPolicyEnabled=false
indicates to do not care about requiredHandlers defined in the service to allow authentication, but the service validation take it into account.
I tried to change the setting to true and the authentication did not work as well. This helped me understand the purpose of the required authentication managers.
I finally realized that all the required authentication managers all had to be successful in authenticating the user to authenticate the service. Since my 2 authentication managers contain 2 sets of different users, the authentication could never work.
I removed the requieredHandlers line from the service definition and each service is now authenticated correctly.
After I found the solution, I took time to read carefully the documentation, and the purpose of this setting is documented. But sometimes, it is not easy to understand the subtlety of a text where there is no example.