Skip to content

RegisterClientResponseFormatter Class

Formats dynamic client registration results (RFC 7591) as Microsoft.AspNetCore.Http.IResult: a 201 with the registered client configuration on success, or the JSON OAuth error on failure.

C#
public class RegisterClientResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRegisterClientResponseFormatter

Inheritance System.Object → RegisterClientResponseFormatter

Implements IRegisterClientResponseFormatter

Constructors

RegisterClientResponseFormatter(RegistrationClientUriBuilder) Constructor

Formats dynamic client registration results (RFC 7591) as Microsoft.AspNetCore.Http.IResult: a 201 with the registered client configuration on success, or the JSON OAuth error on failure.

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

Parameters

uriBuilder RegistrationClientUriBuilder

Builds the registration_client_uri for the registered client.

Methods

RegisterClientResponseFormatter.FormatResponseAsync(ClientRegistrationRequest, Result<ClientRegistrationSuccessResponse,OidcError>) Method

Formats the registration result (201 with the client configuration on success, OAuth error otherwise).

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

Parameters

request ClientRegistrationRequest
response Abblix.Utils.Result<ClientRegistrationSuccessResponse,OidcError>

Implements FormatResponseAsync(ClientRegistrationRequest, Result<ClientRegistrationSuccessResponse,OidcError>)

Returns

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