简体   繁体   English

如何在.NET 4.6上使用.NET Core的IdentityServer4?

[英]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.

相关问题 如何使用托管在 .Net framework 4.6 应用程序中的登录页面对 .Net Core 3.1 上的 IdentityServer4 应用程序进行身份验证? - How to use login page hosted in .Net framework 4.6 application to authenticate for IdentityServer4 application on .Net Core 3.1? IdentityServer4 来自 .net 框架 4.6 - IdentityServer4 from .net framework 4.6 ASP.NET Core IdentityServer4 - 如何使用客户端登录页面而不是 IdentityServer 登录页面? - ASP.NET Core IdentityServer4 - How can I use Client Login Page instead of IdentityServer Login Page? IdentityServer4 .net core 2身份验证使用多个OpenIDConnect实例 - IdentityServer4 .net core 2 Authentication Use multiple instances of OpenIDConnect 如何在ASP.NET Core 2.0 Web API中添加IdentityServer4和Auth0的Jwt身份验证? - How do I add Jwt authentication from IdentityServer4 and Auth0 in an ASP.NET Core 2.0 web api? 我想更新 IdentityServer4 (.NET Core 3.1) 中的用户声明 - I want to Update User Claims in IdentityServer4 (.NET Core 3.1) 如何将IdentityServer4与带有ClientCredentials ASP.NET Core的Javascript客户端一起使用 - How to use IdentityServer4 with and Javascript client with ClientCredentials ASP.NET Core asp.net core 3 和 identityserver4 - asp.net core 3 and identityserver4 IdentityServer4 Asp.Net 核心身份 - IdentityServer4 Asp.Net Core Identity .net 核心 api 与 identityserver4 在一个项目中 - .net core api with identityserver4 in one project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM