gpt4 book ai didi

azure - 使用 Azure AD B2C 和 Azure AD 进行 SPA + Web API 身份验证

转载 作者:行者123 更新时间:2023-12-02 23:31:46 25 4
gpt4 key购买 nike

我的客户希望使用 AZURE AD B2C 对外部用户进行身份验证,并使用 Azure AD 对其公司员工进行身份验证。我一直在 github 上查找并谷歌搜索它,但那里缺乏示例。

有没有人有同样的要求来提供一些提示?

除此之外,MSAL.js/hello.js 似乎存在一些错误(更新 token 时的 X-Frame-Options 问题)。

还有其他我不熟悉的 JS 库吗?

最佳答案

My customer wants to use AZURE AD B2C to authenticate external users, and Azure AD for employees of his company.

Azure B2C 通过自定义策略支持此操作。您可以引用 Azure Active Directory B2C: Get started with custom policies 轻松配置此功能和 Azure Active Directory B2C: Sign in by using Azure AD accounts

Besides that, it seems that MSAL.js / hello.js has some bugs (X-Frame-Options issue when renewing the token).

Microsoft 使用 hello.js 编写了一个示例应用程序图书馆。但正如您所说,它存在x-frame 选项问题,但这仅适用于社交 IDP。因此,您仍然可以使用 Microsoft 为您的用例编写的 SPA 应用程序。

Is there any other JS library that I'm not familiar?

是的,还有另一个类似于 hello.js 的 JS 库,即 oidc-client.js 。在SPA应用程序中配置和使用很容易。

关于azure - 使用 Azure AD B2C 和 Azure AD 进行 SPA + Web API 身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44904997/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com