Skip to content

ReadClientResponseFormatter Class

Formats a client-read result (RFC 7592 §2.1) as Microsoft.AspNetCore.Http.IResult: a 200 with the client configuration (its registration_client_uri filled in) on success, or the JSON OAuth error on failure.

C#
public class ReadClientResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IReadClientResponseFormatter

Inheritance System.Object → ReadClientResponseFormatter

Implements IReadClientResponseFormatter

Constructors

ReadClientResponseFormatter(RegistrationClientUriBuilder) Constructor

Formats a client-read result (RFC 7592 §2.1) as Microsoft.AspNetCore.Http.IResult: a 200 with the client configuration (its registration_client_uri filled in) on success, or the JSON OAuth error on failure.

C#
public ReadClientResponseFormatter(Abblix.Oidc.Server.MinimalApi.Formatters.RegistrationClientUriBuilder uriBuilder);

Parameters

uriBuilder RegistrationClientUriBuilder

Builds the registration_client_uri for the client.

Methods

ReadClientResponseFormatter.FormatResponseAsync(ClientRequest, Result<ReadClientSuccessfulResponse,OidcError>) Method

Formats the read result (200 with the client configuration, or the OAuth error).

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request ClientRequest
response Abblix.Utils.Result<ReadClientSuccessfulResponse,OidcError>

Implements FormatResponseAsync(ClientRequest, Result<ReadClientSuccessfulResponse,OidcError>)

Returns

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