IRevocationRequestProcessor Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.Revocation.Interfaces
IRevocationRequestProcessor Interface
Represents the capability to handle token revocation requests. The authorization server invalidates tokens immediately upon revocation, preventing their future use. Depending on the server's policy, revoking a token may also affect related tokens and the underlying authorization grant. If a refresh token is revoked and the server supports revocation of access tokens, associated access tokens should also be invalidated.
public interface IRevocationRequestProcessor
Derived
↳ RevocationRequestProcessor
Remarks
For more details, refer to RFC 7009 Section 2.1: https://www.rfc-editor.org/rfc/rfc7009\#section-2.1
Methods
IRevocationRequestProcessor.ProcessAsync(ValidRevocationRequest) Method
Processes a token revocation request. This method is responsible for handling the request to revoke a token, ensuring that the token and any associated tokens are invalidated.
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 valid revocation request to be processed. It contains the token that needs to be revoked along with any relevant information.
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<TokenRevoked,OidcError>>
A task representing the asynchronous operation, which upon completion will return a Abblix.Utils.Result<>
containing either TokenRevoked on success or OidcError on failure.