ITokenResponseFormatter Interface
Formats the result of a token request into an Microsoft.AspNetCore.Http.IResult (the success token response or the OAuth error).
public interface ITokenResponseFormatterDerived
↳ TokenResponseFormatter
Methods
ITokenResponseFormatter.FormatResponseAsync(TokenRequest, Result<TokenIssued,OidcError>) Method
Formats the token endpoint result.
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.TokenRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Token.Interfaces.TokenIssued,Abblix.Oidc.Server.Common.OidcError> response);Parameters
request TokenRequest
The core token request being answered.
response Abblix.Utils.Result<TokenIssued,OidcError>
The success-or-error result produced by the token handler.
Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>
An Microsoft.AspNetCore.Http.IResult carrying the token response or the formatted error.