IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

IS4 Possibilities

Open juancash opened this issue 9 years ago • 4 comments

Hi, I have the following scenario:

ApiIdentity -> it´s my IdentityServer (developed with .Net Core and IS4 packages) Api1 -> it´s an simple api developed with .Net Core and IdentityServer4 token validation packages. I have this code in the class Startup.cs:

app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions
{
    Authority = "http://localhost:5000",
    RequireHttpsMetadata = false,
    ApiName = "api1",               
});

All works fine.

Now, I need develop a new api without net core (with .net framework). It´s possible use IS4 token validation with this api? How I can configure the API to UseIdentityServerAuthentication? because in a web api (without net core) the Startup.cs class is not available.

Thanks.

juancash avatar Mar 29 '17 20:03 juancash

Yes, we have OWIN middleware for this. Check here: https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation/

brockallen avatar Mar 30 '17 01:03 brockallen

@brockallen

I tried and works. Other question is if IdentityServer3.TokenValidation it's totally compatible with tokens issued by an IdentityServer4 or maybe can exists problems in the future.

Thanks.

juancash avatar Mar 31 '17 11:03 juancash

Yes, they're compatible; see https://github.com/IdentityServer/CrossVersionIntegrationTests

brockallen avatar Apr 09 '17 19:04 brockallen

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 14 '20 20:01 lock[bot]