Table of Contents

Class IntrospectionEndpoint

Namespace
Fdyay.IdentityServer.Endpoints
Assembly
Fdyay.IdentityServer.AspNetCore.dll

The OAuth 2.0 token introspection endpoint (RFC 7662).

public sealed class IntrospectionEndpoint : IEndpointHandler
Inheritance
IntrospectionEndpoint
Implements
Inherited Members

Constructors

IntrospectionEndpoint(IApiSecretValidator, IClientSecretValidator, ISecretsListParser, IIntrospectionRequestValidator, IIntrospectionResponseGenerator, ITokenCreationService, IIssuerNameService, IEventService, TimeProvider)

Creates the endpoint from its services, as the container resolves it.

public IntrospectionEndpoint(IApiSecretValidator apiSecretValidator, IClientSecretValidator clientSecretValidator, ISecretsListParser secretParser, IIntrospectionRequestValidator requestValidator, IIntrospectionResponseGenerator responseGenerator, ITokenCreationService tokenCreation, IIssuerNameService issuerNameService, IEventService events, TimeProvider time)

Parameters

apiSecretValidator IApiSecretValidator

Authenticates the caller as an API resource, which is tried first.

clientSecretValidator IClientSecretValidator

Authenticates the caller as a client, when it is not an API resource.

secretParser ISecretsListParser

Reads the caller's credential from the request.

requestValidator IIntrospectionRequestValidator

Validates the token presented for introspection.

responseGenerator IIntrospectionResponseGenerator

Builds the introspection response.

tokenCreation ITokenCreationService

Signs the response when the caller asks for it as a JWT (RFC 9701).

issuerNameService IIssuerNameService

Names this server as the issuer.

events IEventService

Receives the endpoint's success and failure events.

time TimeProvider

The clock that stamps a signed response's creation time.

Methods

ProcessAsync(HttpContext)

Processes the request, or returns null to pass the request through.

public Task<IEndpointResult?> ProcessAsync(HttpContext context)

Parameters

context HttpContext

Returns

Task<IEndpointResult>