我有两个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流。
哪个软件包同时满足我的要求?