- What are you trying to achieve? What is the use case or idea behind it?
Trying to connect SAML accounts to our SPA application with Auth0 as SP
I am using the setup described here for SPA, https://auth0.com/docs/quickstart/spa/vuejs/01-login
And I have configured the SAML connection using the guide here
I do get a successful connection when I click the “Try” button on the SAML connection, and the received user data looks ok. And the user show up in the Auth0 user list.
But I am unable to login to my application. I am testing this using the “Sign in as user” functionality for the SAML user.
I am getting
{error: "invalid_token", errorDescription: "`state` does not match."}error: "invalid_token"errorDescription: "`state` does not match."__proto__: Object
I see similar issue here Strange access token returned by SAML
but I have not been able to solve it from that discussion.
I tried following the troubleshooting guide here https://auth0.com/docs/protocols/saml/saml-configuration/troubleshoot/auth0-as-sp#issue-the-user-cannot-access-the-application
I am unable to do assertion analysis with HAR, because the login fails before the POST back to the application, so the HAR does not seem to contain any relevant information.
Could this be the missing audience parameter? I do not have any entry for “Query string” under “IdP-Initiated SSO” for the SAML connection config. I am not sure what I should put there, if anything.