Skip to content

UpdateClientResponseFormatter Class

Formats a client-update result (RFC 7592 §2.2) as Microsoft.AspNetCore.Http.IResult: a 200 with the updated client configuration on success, or the JSON OAuth error on failure.

C#
public class UpdateClientResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IUpdateClientResponseFormatter

Inheritance System.Object → UpdateClientResponseFormatter

Implements IUpdateClientResponseFormatter

Constructors

UpdateClientResponseFormatter(RegistrationClientUriBuilder) Constructor

Formats a client-update result (RFC 7592 §2.2) as Microsoft.AspNetCore.Http.IResult: a 200 with the updated client configuration on success, or the JSON OAuth error on failure.

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

Parameters

uriBuilder RegistrationClientUriBuilder

Builds the registration_client_uri for the client.

Methods

UpdateClientResponseFormatter.FormatResponseAsync(UpdateClientRequest, Result<ReadClientSuccessfulResponse,OidcError>) Method

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

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

Parameters

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

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

Returns

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