gpt4 book ai didi

azure - 检查 Azure Active Directory B2C 中是否存在用户

转载 作者:行者123 更新时间:2023-12-03 03:12:30 25 4
gpt4 key购买 nike

我正在创建一个新的 Azure AD B2C 身份验证站点来替换旧的表单例份验证站点。在新站点中,我要求用户首先输入他们的电子邮件地址,以便我可以检查它们是否存在于 Azure B2C 中,并将它们发送到适当的登录页面,如果不存在,则将它们发送到旧的 Forms Authenticated 站点。

问题是我在遵循 Microsoft 教程时遇到的问题是,它们显示了用户管理,但它们都要求您首先使用 Azure 帐户登录,显然考虑到我正在尝试构建的系统,这是不可能的。我正在做的事情可能吗?

提前致谢!

MS教程:https://azure.microsoft.com/en-gb/documentation/articles/active-directory-code-samples/

最佳答案

遗憾的是,这在 Azure B2C 预览版中似乎是不可能的。

从限制部分( https://azure.microsoft.com/en-gb/documentation/articles/active-directory-b2c-limitations/ )有这一段描述了我想要做的事情:

Daemons / Server Side Applications

Applications that contain long running processes or that operate without the presence of a user also need a way to access secured resources, such as Web APIs. These applications can authenticate and get tokens using the application's identity (rather than a consumer's delegated identity) using the OAuth 2.0 client credentials flow. This flow is not yet available in Azure AD B2C preview - which is to say that applications can only get tokens after an interactive consumer sign-in flow has occurred.

所以目前看来这是不可能的。希望预览版出来后它就能发挥作用。

关于azure - 检查 Azure Active Directory B2C 中是否存在用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35230011/

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