如何使用React应用程序在SAML身份验证中捕获SAML响应
我们正在尝试使用React App实现SAML身份验证,其中我们将Azure目录用作IDP时,当用户获得身份验证的UI获得http Post request request有效载荷中的SAML响应。但是在客户端(React),我们无法阅读此请求有效载荷。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对SP的重定向URI的响应。为了处理它,您将需要服务器端逻辑。您可以启用SSR进行反应或创建处理验证回调并将结果转发到水疗中心的API。
看看简单的react and eack and Express app saml okta 用于react spa + spa + Node.js/Express API样本。
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.
您可以学习 saml单登录,用于具有应用程序代理的本地应用程序,for react 。
简单的react and ock saml登录使用react+node.js的视频参考?
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