Is it possible to use Identity Server 4 running on the .net core with a WebApi application running on .net 4.5.1?

Consider the following scenario. You have an application that implements api with asp.net webapi .

You are configuring the new Identity Server 4 for use with your infrastructure. You need your api to work with the Identity server.

If it was IdentityServer 3, you would use IdentityServer3.AccessTokenValidation .

If your api had .net core enabled, you would use IdentityServer4.AccessTokenValidation

But considering that your api uses the old asp.net webapi style, not even owin, and your Identity Server is .net-core, do you have the ability to make them work together?

+4
source share
1 answer

Yes, it works great. IdentityServer3 and IdentityServer4 are simply implementations that conform to the same protocol. The same applies to these average TokenValidation markers.

API AspNetCore, IdentityServer4.AccessTokenValidation , IdentityServer3 WebApi. , Asp.Net 4.x WebApi, IdentityServer3.AccessTokenValidation , IdentityServer4 AspNetCore. OpenIDConnect API, /, OpenIDConnect .

+6

Source: https://habr.com/ru/post/1668568/


All Articles