Skip to content

RevocationRequest Class

The token revocation request (RFC 7009). The bound properties, BindAsync and the projection onto the core model are generated from RevocationRequest by the Minimal API model source generator.

C#
public record RevocationRequest : System.IEquatable<Abblix.Oidc.Server.MinimalApi.Model.RevocationRequest>

Inheritance System.Object → RevocationRequest

Implements System.IEquatable<RevocationRequest>

Properties

RevocationRequest.Token Property

The token parameter (RFC 7009 §2.1): the access token or refresh token string the client is asking the authorization server to revoke. Required.

C#
public string Token { get; init; }

Property Value

System.String

RevocationRequest.TokenTypeHint Property

The optional token_type_hint (RFC 7009 §2.1) advising whether Token is an access_token or refresh_token, allowing the server to look it up faster.

C#
public string? TokenTypeHint { get; init; }

Property Value

System.String

Methods

RevocationRequest.BindAsync(HttpContext) Method

Binds the model from the request's form, query, headers and TLS connection.

C#
public static System.Threading.Tasks.ValueTask<Abblix.Oidc.Server.MinimalApi.Model.RevocationRequest?> BindAsync(Microsoft.AspNetCore.Http.HttpContext context);

Parameters

context Microsoft.AspNetCore.Http.HttpContext

Returns

System.Threading.Tasks.ValueTask<RevocationRequest>

Operators

RevocationRequest.implicit operator RevocationRequest(RevocationRequest) Operator

Projects the transport-bound model onto its core counterpart.

C#
public static Abblix.Oidc.Server.Model.RevocationRequest implicit operator Abblix.Oidc.Server.Model.RevocationRequest(Abblix.Oidc.Server.MinimalApi.Model.RevocationRequest request);

Parameters

request RevocationRequest

Returns

RevocationRequest