RevocationResponseFormatter Class
Formats token revocation results as Microsoft.AspNetCore.Http.IResult: an empty 200 on success, or the RFC-compliant OAuth error on failure.
public class RevocationResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRevocationResponseFormatterInheritance System.Object → RevocationResponseFormatter
Implements IRevocationResponseFormatter
Constructors
RevocationResponseFormatter(IIssuerProvider) Constructor
Formats token revocation results as Microsoft.AspNetCore.Http.IResult: an empty 200 on success, or the RFC-compliant OAuth error on failure.
public RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider);Parameters
issuerProvider IIssuerProvider
Supplies the issuer used as the realm on client-authentication challenges.
Methods
RevocationResponseFormatter.FormatResponseAsync(RevocationRequest, Result<TokenRevoked,OidcError>) Method
Formats the revocation result (empty 200 on success, OAuth error otherwise).
public 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>
Implements FormatResponseAsync(RevocationRequest, Result<TokenRevoked,OidcError>)
Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>