Skip to content

IRevocationResponseFormatter Interface

Formats the result of a token revocation request into an Microsoft.AspNetCore.Http.IResult.

C#
public interface IRevocationResponseFormatter

Derived
RevocationResponseFormatter

Methods

IRevocationResponseFormatter.FormatResponseAsync(RevocationRequest, Result<TokenRevoked,OidcError>) Method

Formats the revocation result (empty 200 on success, OAuth error otherwise).

C#
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request RevocationRequest
response Abblix.Utils.Result<TokenRevoked,OidcError>

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>