• Stars
    star
    137
  • Rank 256,779 (Top 6 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ASP.NET Core authentication handler for OAuth 2.0 token introspection

IdentityModel.AspNetCore.OAuth2Introspection

ASP.NET Core authentication handler for OAuth 2.0 token introspection

https://tools.ietf.org/html/rfc7662

Configuration

services.AddAuthentication(OAuth2IntrospectionDefaults.AuthenticationScheme)
    .AddOAuth2Introspection(options =>
    {
        options.Authority = "https://base_address_of_token_service";

        options.ClientId = "client_id_for_introspection_endpoint";
        options.ClientSecret = "client_secret_for_introspection_endpoint";
    });

Configuring Backchannel HTTP Client

If configuration, such as using a proxy, is required for the HTTP client calling the Authority then it can be done by registering a named HTTP Client as follows

services.AddHttpClient(OAuth2IntrospectionDefaults.BackChannelHttpClientName) 
    .AddHttpMessageHandler(() => 
    {
        //Configure client/handler for the back channel HTTP Client here
        return new HttpClientHandler
            {
                UseProxy = true,
                Proxy = new WebProxy(WebProxyUri, true)
            };
    }

More Repositories

1

oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
JavaScript
2,416
star
2

IdentityModel

.NET standard helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
C#
995
star
3

IdentityModel.OidcClient

Certified C#/NetStandard OpenID Connect Client Library for native mobile/desktop Applications (RFC 8252)
C#
554
star
4

IdentityModel.AspNetCore

ASP.NET Core helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
C#
306
star
5

AuthorizationServer

Sample implementation of an OAuth2 Authorization Server
C#
280
star
6

IdentityModel.OidcClient.Samples

C#
274
star
7

IdentityModel.PCL

A PCL helper library for claims-based identity, OAuth 2.0 and OpenID Connect.
C#
94
star
8

oidc-token-manager

JavaScript
51
star
9

IdentityModel.OidcClient.Old

OpenID Connect Client Library for Native Applications
C#
38
star
10

OidcCli

.NET Tool for running IdentityModel.OidcClient from the Command Line
C#
17
star
11

IdentityModel.AspNetCore.AccessTokenValidation

C#
12
star
12

IdentityModel.Owin.BasicAuthentication

Basic Authentication Middleware
C#
11
star
13

IdentityModel.AspNetCore.ScopeValidation

[deprecated] Scope validation middleware for ASP.NET Core 1
C#
10
star
14

Documentation

Documentation for the IdentityModel family of libraries
6
star
15

UwpOidcClient

Sample Universal Windows Platform (Windows 10) OpenID Connect Client
C#
3
star
16

IdentityModel.Owin.ClaimsTransformation

Claims Transformation Middleware for OWIN/Katana
C#
2
star
17

IdentityModel.HttpSigning

A Method for Signing HTTP Requests for OAuth (https://tools.ietf.org/html/draft-ietf-oauth-signed-http-request-02)
C#
1
star
18

.github

1
star
19

IdentityModel.Owin.PopAuthentication

Authentication Middleware for Proof of Possession Tokens
C#
1
star