Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.13 KB

File metadata and controls

26 lines (20 loc) · 1.13 KB

IdentityServer3 - AccessTokenValidation

Dev build: Build status ![Gitter](https://badges.gitter.im/Join Chat.svg)

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" }
    });