[英]How do I use .NET Core's IdentityServer4 on .NET 4.6?
I've been trying to follow the startup guide for IdentityServer4 . 我一直在尝试遵循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. 我很高兴我的身份验证服务成为.net核心应用程序,但我想要验证的服务是无聊的常规ASP.NET WebApi 2项目。
So the setup shown in the documentation won't work. 因此, 文档中显示的设置将不起作用。 There is no IApplicationBuilder, app.UseIdentityServerAuthentication
is not a thing here. 没有IApplicationBuilder, app.UseIdentityServerAuthentication
在这里不是一件事。 I'm not using the latest and greatest MVC stuff. 我没有使用最新最好的MVC。
Is there any documentation for mixing Identity Server 4 with older applications? 是否有任何将Identity Server 4与旧应用程序混合的文档? Is it it even supported? 它甚至支持吗?
For Web API 2 you can use the Microsoft Katana JWT middleware, or our middleware for Katana: 对于Web API 2,您可以使用Microsoft Katana JWT中间件或我们的Katana中间件:
https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.