问题描述
我一直在尝试 IdentityServer4 .我很乐意将身份验证服务作为.net核心应用程序,但是我想进行身份验证的服务却使普通的ASP.NET WebApi 2项目变得无聊.
I've been trying to follow the startup guide for IdentityServer4. I'm happy to make my authentication service a .net core application, but the services I'd like to authenticate are boring normal ASP.NET WebApi 2 projects.
因此,文档中显示的设置无法正常工作 .没有IApplicationBuilder,这里不是app.UseIdentityServerAuthentication
.我没有使用最新,最出色的MVC工具.
So the setup shown in the documentation won't work. There is no IApplicationBuilder, app.UseIdentityServerAuthentication
is not a thing here. I'm not using the latest and greatest MVC stuff.
是否有用于将Identity Server 4与较旧的应用程序混合的文档?它甚至被支持吗?
Is there any documentation for mixing Identity Server 4 with older applications? Is it it even supported?
推荐答案
对于Web API 2,您可以使用Microsoft Katana JWT中间件,或我们用于Katana的中间件:
For Web API 2 you can use the Microsoft Katana JWT middleware, or our middleware for Katana:
https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation
这篇关于如何在.NET 4.6上使用.NET Core的IdentityServer4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!