天蓝色广告的 Asp.net 身份缓存

时间:2021-07-08 17:15:39

标签: asp.net azure-active-directory asp.net-identity

目前我们面临的问题是我们在中国的用户在登录 Azure Ad 时出现延迟。 我想创建一个 Asp.net 应用程序,作为其他应用程序的身份服务提供者。 我希望我的用户使用他们的 Microsoft 实时帐户登录我的应用程序,并且我的应用程序应该能够缓存身份以避免延迟。 有没有可能实现这样的解决方案?

1 个答案:

答案 0 :(得分:0)

我尝试在我的实验室中重现并成功测试我的用户可以毫无延迟地登录以下步骤:

部署了我的 ASP。 NET 应用程序到 Azure > 转到 APP 服务 > 身份验证 > 添加身份提供者 enter image description here

在身份提供者中>选择Microsoft帐户>默认会创建应用程序注册/或者我们可以创建一个新的。 >支持帐户类型选择您的帐户类型以登录用户选择Any azure AD directory & Microsoft accounts

enter image description here

添加成功后,您可以检查或编辑身份提供者。 enter image description here

然后测试了我的应用程序,该应用程序需要 Microsoft 实时帐户才能登录用户。 enter image description here

有关更多信息,请参阅以下链接:

.To Enable multi-factor authentication in Azure Active Directory B2C.

Considerations for using caching