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
apiSecretValidatorIApiSecretValidatorAuthenticates the caller as an API resource, which is tried first.
clientSecretValidatorIClientSecretValidatorAuthenticates the caller as a client, when it is not an API resource.
secretParserISecretsListParserReads the caller's credential from the request.
requestValidatorIIntrospectionRequestValidatorValidates the token presented for introspection.
responseGeneratorIIntrospectionResponseGeneratorBuilds the introspection response.
tokenCreationITokenCreationServiceSigns the response when the caller asks for it as a JWT (RFC 9701).
issuerNameServiceIIssuerNameServiceNames this server as the issuer.
eventsIEventServiceReceives the endpoint's success and failure events.
timeTimeProviderThe 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
contextHttpContext