Class TokenRevocationRequestValidator
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
Duende's default revocation request validator.
public class TokenRevocationRequestValidator : ITokenRevocationRequestValidator
- Inheritance
-
TokenRevocationRequestValidator
- Implements
- Inherited Members
Methods
ValidateRequestAsync(IReadOnlyDictionary<string, string>, Client, CancellationToken)
Validates a revocation request from an authenticated client.
public virtual Task<TokenRevocationRequestValidationResult> ValidateRequestAsync(IReadOnlyDictionary<string, string> parameters, Client client, CancellationToken ct)
Parameters
parametersIReadOnlyDictionary<string, string>The request's form parameters:
tokenand, optionally,token_type_hint.clientClientThe authenticated client making the request.
ctCancellationTokenCancels the validation.
Returns
- Task<TokenRevocationRequestValidationResult>
The token to revoke and its hint, or the error to answer with.
Exceptions
- ArgumentNullException
parametersorclientisnull.