Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Duende.​IdentityServer.​ResponseHandling.​ITokenRevocationResponseGenerator
Assembly: Duende.IdentityServer
Generates the response for the token revocation endpoint (RFC 7009) and performs the actual revocation of the presented token. When a valid access token or refresh token is submitted, this generator revokes it (and, for refresh tokens, any associated access tokens) and produces the appropriate HTTP response. This interface is invoked after the revocation request has been validated.
Remarks
The default implementation revokes the token from the token store and returns the
appropriate success or no-op response as required by RFC 7009. Override this interface or
extend the default implementation to add custom revocation logic, for example to propagate
revocation to external systems or to audit revocation events.
Methods
System.​Threading.​Tasks.​Task<​TokenRevocationResponse>
ProcessAsync​(Validation.​TokenRevocationRequestValidationResult validationResult,
System.​Threading.​CancellationToken ct)
Processes a validated token revocation request, revokes the token, and produces the
revocation endpoint response.
Returns A <see cref="T:Duende.IdentityServer.ResponseHandling.TokenRevocationResponse" /> describing the outcome of the revocation
operation.
validationResult
The result of validating the revocation request, including the token to revoke and the
client that submitted the request.
ct
The cancellation token.