Table of Contents

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

parameters IReadOnlyDictionary<string, string>

The request's form parameters: token and, optionally, token_type_hint.

client Client

The authenticated client making the request.

ct CancellationToken

Cancels the validation.

Returns

Task<TokenRevocationRequestValidationResult>

The token to revoke and its hint, or the error to answer with.