简体   繁体   English

是否可以使用 SAML2 在 ReactJs 应用程序中实现 SSO? 如果可能的话如何?

[英]Is it possible to implement SSO in a ReactJs application with SAML2? if possible how?

I am new to this field and have a lot of confusions, in this case, I have to implement single sign-on in a ReactJs application where it's back-end is node express using OKTA as the IDP?我是这个领域的新手并且有很多困惑,在这种情况下,我必须在 ReactJs 应用程序中实现单点登录,它的后端是使用 OKTA 作为 IDP 的节点快递?

Please share your thoughts.请分享您的想法。

Thank you谢谢

If you are deploying your ReactJS application using express, you can use passport-saml for managing your saml workflow.如果您使用 express 部署 ReactJS 应用程序,您可以使用passport-saml 来管理您的saml 工作流。

The basic idea should be to serve up your app only if you recieve a valid saml response from the idp.基本思想应该是仅当您从 idp 收到有效的 saml 响应时才提供您的应用程序。

You can check more here : passport-saml您可以在此处查看更多信息: passport-saml

如果你在没有 express 的情况下使用你的 react 应用程序,你可以使用 open idc 将你的 okta 应用程序直接连接到你的 react sdk(okta 有一个选项)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM