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
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.
You can study SAML single sign-on for on-premises applications with Application Proxy, For react Configure authentication in a sample React single-page application by using Azure Active Directory B2C.
Video reference for Simple React and Express app SAML login by Okta using React+node.js