【发布时间】:2018-04-04 19:48:01
【问题描述】:
我有一个基于 IdentityServer4 core 1.0 的应用程序。它与 Azure AD 有效集成。但是,将项目迁移到 IdentityServer4 2.0.0-rc1 后,集成不再起作用。这与从 .NET Core 1.0 到 Core 2.0 的破坏性变化有关。我遵循https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/identity-2x的建议
我尝试将 app.UseOpenIdConnectAuthentication 调用更改为
services.AddAuthentication()
.AddMicrosoftAccount(...)
或到
services.AddAuthentication()
.AddOpenIdConnect(...)
但所有这些仅在此查询中产生空列表:
_httpContextAccessor.HttpContext.Authentication.GetAuthenticationSchemes(),用于构建外部认证服务。
有谁知道再次启用 Azure AD 集成的正确方法是什么?
【问题讨论】:
标签: azure integration azure-active-directory identityserver4