skip to Main Content

We are trying to implement SAML authentication with React App where we are using Azure Directory as IDP, when the user gets authenticated UI gets SAML response in HTTP post request payload. But on the client-side (React) we are not able to read this request payload.

2

Answers


  1. Azure AD will post the SAML response to the Redirect URI of the SP. In order to process it you will need server-side logic. You can enable SSR for React or create and API that handles the auth callback and forwards the results to the SPA.

    Take a look to Simple React and Express app SAML login by Okta for a React SPA + Node.js/Express API sample.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search