Table of Contents

Class RevocationEndpoint

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

The OAuth 2.0 token revocation endpoint (RFC 7009).

public sealed class RevocationEndpoint : IEndpointHandler
Inheritance
RevocationEndpoint
Implements
Inherited Members

Constructors

RevocationEndpoint(IClientSecretValidator, ISecretsListParser, ITokenRevocationRequestValidator, ITokenRevocationResponseGenerator, IEventService)

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

public RevocationEndpoint(IClientSecretValidator clientValidator, ISecretsListParser secretParser, ITokenRevocationRequestValidator requestValidator, ITokenRevocationResponseGenerator responseGenerator, IEventService events)

Parameters

clientValidator IClientSecretValidator

Authenticates the client from the credential it presented.

secretParser ISecretsListParser

Reads the client's credential from the request.

requestValidator ITokenRevocationRequestValidator

Validates the revocation request's parameters.

responseGenerator ITokenRevocationResponseGenerator

Revokes the token and builds the response.

events IEventService

Receives the endpoint's success and failure events.

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>