Auth0 as SP: React app receives a SAML response instead the redirect with code and state params

谁说我不能喝 提交于 2021-01-29 19:41:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!