问题
We implemented Auth0 as Service Provider, like this url In React we are using this library.
After login success, in the react app we are receiving a POST with the SAML response, instead of POST redirect with code
and state
params, that the library uses to authenticate the user.
So my question is, The React app should handle the SAML response? if so, it's needed a node server to do this.
The Auth0 should handle the SAML response and redirect to the application with the above params? what configuration it's left to implement.
回答1:
SPA uses OpenID Connect and that should return the code etc.
However, the Auth0 example is for SAML.
You should configure an Auth0 OpenID Connect connector instead.
来源:https://stackoverflow.com/questions/60308110/auth0-as-sp-react-app-receives-a-saml-response-instead-the-redirect-with-code-a