Asp.Net Core Web API中IdentityServer的哪个Nuget软件包?

我有两个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的实现。但是,两个软件包之间可用的配置方法不同。

我想将IdentityServer作为中间件运行在我的Web应用程序中,并发出PKCE密码来进行完整的身份验证和授权。我不确定IdentityServer4是否可以在我的主应用程序中作为中间件运行,或者是否需要在其自己的应用程序中作为中间件,也不确定microsoft.AspNetCore.Apiauthorization.IdentityServer是否支持PKCE流。

哪个软件包同时满足我的要求?

wwwxt 回答:Asp.Net Core Web API中IdentityServer的哪个Nuget软件包?

我发现了有关Microsoft维护的nuget功能的讨论,并且在4月份提到它 仅支持隐式流 。稍后它将支持PKCE秘密流程。

https://github.com/aspnet/AspNetCore/issues/5833

IdentityServer4(或专门用于发布PKCE机密的IdentityServer4.AccessTokenValidation)可以是我的主要应用程序的中间件。

所以我会坚持使用IdentityServer4,因为它同时满足我的两个要求。

本文链接:https://www.f2er.com/3162302.html

大家都在问