Was anyone able to get CAS 6.4.0 to work with SAML2 and CAS as the idP? We are still unable to get this to work and are not sure where to look?
Our setup:
Service A (RegexRegisteredService: WildFly based web-application) protected by CAS using username, password and MFA (google auth).
Service B (SamlRegisteredService: Node.js based web application) that uses SAML2 and CAS (same server as Service A) as the idP.
We first successfully login into Service A using username, password and mfa (google auth).
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"name" : "App Server",
"id" : 10000001,
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
},
"evaluationOrder" : 10,
"multifactorPolicy" : {
"@class" : "org.apereo.cas.services.DefaultRegisteredServiceMultifactorPolicy",
"multifactorAuthenticationProviders" : [ "java.util.LinkedHashSet", [ "mfa-gauth" ] ],
"bypassEnabled" : "false"
}
}
We next navigate to Service B. We see the SAML request from Service 2 in CAS logs, but Service B redirects us back to the login screen.
{
"@class" : "org.apereo.cas.support.saml.services.SamlRegisteredService",
"serviceId" : "data-server",
"name" : "Data Server",
"id" : 10000002,
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
},
"metadataLocation" : "/etc/cas/saml/data-server-10000002",
"evaluationOrder" : 10,
"multifactorPolicy" : {
"@class" : "org.apereo.cas.services.DefaultRegisteredServiceMultifactorPolicy",
"multifactorAuthenticationProviders" : [ "java.util.LinkedHashSet", [ "mfa-gauth" ] ],
"bypassEnabled": false
}
}
We are expecting the SAML request to be authenticated by CAS and that we do not need to log back into Service B. If we log back in using the same username password, we gain access to Service B - we are assuming we now have 2 sessions active - one for Service A and one for Service B.
If the try this in the reverse order (Service B first and then Service A) we have the same issue with Service A redirecting us back to the login screen.
What could we be missing? Where should we look for more information? Any help will be greatly appreciated.
Regards,
Purush