Skip to main content

RevocationRequestProcessor Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Revocation

RevocationRequestProcessor Class

Processes revocation requests for tokens. This class is responsible for handling the logic associated with revoking tokens, such as access tokens or refresh tokens.

public class RevocationRequestProcessor : Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.IRevocationRequestProcessor

Inheritance System.Object → RevocationRequestProcessor

Implements IRevocationRequestProcessor

Constructors

RevocationRequestProcessor(ITokenRegistry, TimeProvider) Constructor

Processes revocation requests for tokens. This class is responsible for handling the logic associated with revoking tokens, such as access tokens or refresh tokens.

public RevocationRequestProcessor(Abblix.Oidc.Server.Features.Storages.ITokenRegistry tokenRegistry, System.TimeProvider clock);

Parameters

tokenRegistry ITokenRegistry

The token registry to be used by this processor for managing token statuses.

clock System.TimeProvider

Provides the current time for timestamping the revocation operation.

Methods

RevocationRequestProcessor.ProcessAsync(ValidRevocationRequest) Method

Asynchronously processes a valid revocation request. This method handles the revocation of a specified token by changing its status to 'Revoked' in the token registry. The operation ensures that the token is no longer valid for any future requests.

public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError>> ProcessAsync(Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.ValidRevocationRequest request);

Parameters

request ValidRevocationRequest

The revocation request to be processed. Contains information about the token to be revoked.

Implements ProcessAsync(ValidRevocationRequest)

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<TokenRevoked,OidcError>>
A System.Threading.Tasks.Task representing the asynchronous operation, which upon completion will yield a Abblix.Utils.Result<> containing either TokenRevoked on success or OidcError on failure.