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
clientValidatorIClientSecretValidatorAuthenticates the client from the credential it presented.
secretParserISecretsListParserReads the client's credential from the request.
requestValidatorITokenRevocationRequestValidatorValidates the revocation request's parameters.
responseGeneratorITokenRevocationResponseGeneratorRevokes the token and builds the response.
eventsIEventServiceReceives 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
contextHttpContext