I’m having trouble with the SAML2 Webapp addon since last week.
To give you some context, i have two applications, one is embedding the other in an iframe and they both use the same connection.
The first application is mine i’m using an ADFS connection to get authenticated on this one. The other one is an external application we’re embedding that can only use SAML2, so i’ve configured the SAML2 Webapp addon accordingly.
Everything was fine until last week when i couldn’t be authenticated because the SAMLResponse was never sent to the external application and i was directly redirected to the first one.
Edit :
For some further context :
- Both applications use the same client
entry on my tenant - Embedded or accessed directly, I
experience the same issue. - The first application use the hosted
login page on Auth0 to redirect the
user to an external ADFS
IdentityProvider, the other one
should be accessed after you’ve been
authenticated to the first and the
SAML Flow should be seamless for the
user
The hosted login page is pretty simple and is something like that :
var auth0 = new Auth0({
domain: 'AUTH0_DOMAIN',
clientID: 'AUTH0_CLIENTID',
callbackURL: 'https://application1.com'
});
auth0.login({
connection: 'adfs-idp',
response_type: 'code',
scope: 'openid name email',
});
The SAML2 Webapp addon is pretty straightforward too :
callback : https://application2.com/saml/SAMLAssertionConsumer
{
"mappings": {
"1st_id": "XXX",
"2nd_id": "XXX"
},
"recipient": "https://application2.com/saml/SAMLAssertionConsumer",
}
Here’s what i experience when i try to access the second application directly :
- Access application2.com
- Redirect to
https://Auth0_domain.auth0.com/samlp/CLIENT_ID?SAMLRequest=XXX&RelayState=XXX&SigAlg=http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=XXX
with the SAML Request as a GET Parameter - Redirect to
https://Auth0_domain/login?client=CLIENT_ID&protocol=samlp&SAMLRequest=XXX&RelayState=XXX&SigAlg=http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=XXX&state=XXX
- Since i’m redirected to the login endpoint i’m accessing the hosted login page and automatically redirected to application1.com
Do you have any idea why i’m experiencing this behaviour ?