是否可以将现有的 ASP.NET Core AuthenticationHandler 与 ServiceStack 一起使用?

Is it possible to use an existing ASP.NET Core AuthenticationHandler with ServiceStack?

我有一个自定义 AuthenticationHandler 内置以绑定到 ASP.NET Core 中基于声明的授权。 ServiceStack 是否可以重新使用此组件,或者我必须将其作为自定义实现 AuthProvider?

查看新的 mvcidentity .NET Core template,其中显示了使用 ASP.NET 身份验证来保护 MVC 和 ServiceStack 服务的示例。

integration is enabled with the new NetCoreIdentityAuthProvider 提供双向适配器,可在 ASP.NET Core ClaimsPrincipal 和 ServiceStack 用户会话之间进行转换。