Interface ITokenRevocationRequestValidator
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
Validates a token revocation request (RFC 7009).
public interface ITokenRevocationRequestValidator
Remarks
Duende 8.0.1's ITokenRevocationRequestValidator, measured: no token is invalid_request; a
token_type_hint other than access_token or refresh_token is unsupported_token_type
(RFC 7009 ยง2.2.1).
Methods
ValidateRequestAsync(IReadOnlyDictionary<string, string>, Client, CancellationToken)
Validates a revocation request from an authenticated client.
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.