.net core & microsoft 身份框架和 Azure AD 多重身份验证方案

时间:2021-05-13 20:05:34

标签: c# azure openid-connect

我想使用 Microsoft.Identity.Web => MicrosoftIdentityWebAppAuthenticationBuilder 实现 azure 广告的 oauth 身份验证 我可以使用 microsoft 提供的教程成功使其工作,但是我想使用 Identity.web 启用多登录提供程序,我想要 Azure AD + 本地 SQL 服务器(已实现),以防 azure 广告对 X 用户不可用。

我尝试通过设置默认方案和默认挑战来重定向到视图来做到这一点,但出现以下错误: InvalidOperationException:Scheme 已经存在:Cookies

有什么建议吗? :) 谢谢

PS:我已经意识到我想用 Microsoft.AspNetCore.Authentication.OpenIdConnect 实现什么,但我想让它与 Microsoft.Identity.Web 一起使用

我尝试使用 Microsoft.Identity.Web 和多个方案 What I tried

无法选择所需方案的工作 What I know is working.

可以选择所需的方案 openidconnect

更新:

根据丹尼斯的建议,我尝试了什么: 我没有错误“方案已经存在”,但我没有被重定向到我的登录页面。 configure through authentication options

0 个答案:

没有答案