IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.02k forks source link

IS4 Possibilities #999

Closed juancash closed 7 years ago

juancash commented 7 years ago

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.

brockallen commented 7 years ago

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

juancash commented 7 years ago

@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.

brockallen commented 7 years ago

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

lock[bot] commented 4 years ago

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.