我想使用 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 和多个方案
更新: