Rzpeg / IdentityServer3.AccessTokenValidation

OWIN 4 Middleware to validate access tokens from IdentityServer3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IdentityServer3 - AccessTokenValidation

This fork is a migration of the original project to:
  • .NET Framework 4.6.1
  • IdentityModel 4
  • OWIN 4
  • JWT 5

The nuget package is published as IdentityServer3.Contrib.AccessTokenValidation

OWIN Middleware to validate access tokens from IdentityServer v3.

You can either validate the tokens locally (JWTs only) or use the IdentityServer's access token validation endpoint (JWTs and reference tokens).

app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
    {
        Authority = "https://identity.identityserver.io"
    });

The middleware can also do the scope validation in one go.

app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
    {
        Authority = "https://identity.identityserver.io",
        RequiredScopes = new[] { "api1", "api2" }
    });

About

OWIN 4 Middleware to validate access tokens from IdentityServer3

License:Apache License 2.0


Languages

Language:C# 96.4%Language:PowerShell 3.3%Language:Smalltalk 0.2%Language:Batchfile 0.1%