【发布时间】:2020-03-01 10:08:01
【问题描述】:
我有两个需要身份验证和授权功能的 Web 应用程序。服务器端运行 Asp.NET Core 3.0,客户端运行 Angular,我打算用代码交换证明密钥 (PKCE) 流来实现 IdentityServer。官方 IdentityServer 文档 (https://identityserver4.readthedocs.io) 指的是包 IdentityServer4,而 dotnet 模板 (https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-api-authorization?view=aspnetcore-3.0) 使用 Microsoft.AspNetCore.ApiAuthorization.IdentityServer。我找不到后一个包的正确描述,它被列为 IdentityServer 的实现。但是两个包之间可用的配置方法是不同的。
我想在我的 Web 应用程序中将 IdentityServer 作为中间件运行,并发出 PKCE 密钥来完整地进行身份验证和授权。我不确定IdentityServer4 是否可以在我的主应用程序中作为中间件运行,或者是否需要在它自己的应用程序中作为中间件,并且不确定Microsoft.AspNetCore.ApiAuthorization.IdentityServer 是否支持 PKCE 流。
哪个包满足我的两个要求?
【问题讨论】:
标签: asp.net-core asp.net-identity identityserver4