Duende.AspNetCore.Authentication.OAuth2Introspection 7.0.1 (original) (raw)

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)
            };
    }
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Duende.AspNetCore.Authentication.OAuth2Introspection:

Package Downloads
Monq.Core.BasicDotNetMicroservice NetCore Microservice extensions library that brings simplicity to configure asp.net and console programs as microservices. 82.3K
Be.Vlaanderen.Basisregisters.Auth.AcmIdm BasisRegisters Auth ACM/IDM utilities for C#. 40.5K
Indice.AspNetCore.Builder Package Description 33.5K
Aguacongas.TheIdServer OpenID/Connect , OAuth and WS-Federation server base on Duende IdentityServer. 30.0K
Euonia.Hosting Euonia development framework and toolkit library for .NET application/service. Powered by Nerosoft. 26.7K

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Duende.AspNetCore.Authentication.OAuth2Introspection:

Repository Stars
Aguafrommars/TheIdServer OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI 757