#### [Abblix\.Oidc\.Server\.MinimalApi](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi 'index')
### [Abblix\.Oidc\.Server\.MinimalApi\.Formatters](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters')

## RegisterClientResponseFormatter Class

Formats dynamic client registration results \(RFC 7591\) as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'): a 201 with the registered client
configuration on success, or the JSON OAuth error on failure\.

```csharp
public class RegisterClientResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRegisterClientResponseFormatter
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → RegisterClientResponseFormatter

Implements [IRegisterClientResponseFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRegisterClientResponseFormatter 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IRegisterClientResponseFormatter')
### Constructors

## RegisterClientResponseFormatter\(RegistrationClientUriBuilder\) Constructor {#Abblix.Oidc.Server.MinimalApi.Formatters.RegisterClientResponseFormatter.RegisterClientResponseFormatter(Abblix.Oidc.Server.MinimalApi.Formatters.RegistrationClientUriBuilder)}

Formats dynamic client registration results \(RFC 7591\) as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'): a 201 with the registered client
configuration on success, or the JSON OAuth error on failure\.

```csharp
public RegisterClientResponseFormatter(Abblix.Oidc.Server.MinimalApi.Formatters.RegistrationClientUriBuilder uriBuilder);
```
#### Parameters

###### `uriBuilder` [RegistrationClientUriBuilder](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.RegistrationClientUriBuilder 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.RegistrationClientUriBuilder') {#Abblix.Oidc.Server.MinimalApi.Formatters.RegisterClientResponseFormatter.RegisterClientResponseFormatter(Abblix.Oidc.Server.MinimalApi.Formatters.RegistrationClientUriBuilder).uriBuilder}

Builds the `registration_client_uri` for the registered client\.
### Methods

## RegisterClientResponseFormatter\.FormatResponseAsync\(ClientRegistrationRequest, Result\<ClientRegistrationSuccessResponse,OidcError\>\) Method {#Abblix.Oidc.Server.MinimalApi.Formatters.RegisterClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRegistrationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ClientRegistrationSuccessResponse,Abblix.Oidc.Server.Common.OidcError_)}

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

```csharp
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](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.ClientRegistrationRequest 'Abblix\.Oidc\.Server\.Model\.ClientRegistrationRequest') {#Abblix.Oidc.Server.MinimalApi.Formatters.RegisterClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRegistrationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ClientRegistrationSuccessResponse,Abblix.Oidc.Server.Common.OidcError_).request}

###### `response` [Abblix\.Utils\.Result&lt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[ClientRegistrationSuccessResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ClientRegistrationSuccessResponse 'Abblix\.Oidc\.Server\.Endpoints\.DynamicClientManagement\.Interfaces\.ClientRegistrationSuccessResponse')[,](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[OidcError](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.OidcError 'Abblix\.Oidc\.Server\.Common\.OidcError')[&gt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2') {#Abblix.Oidc.Server.MinimalApi.Formatters.RegisterClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRegistrationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ClientRegistrationSuccessResponse,Abblix.Oidc.Server.Common.OidcError_).response}

Implements [FormatResponseAsync\(ClientRegistrationRequest, Result&lt;ClientRegistrationSuccessResponse,OidcError&gt;\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRegisterClientResponseFormatter#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IRegisterClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRegistrationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ClientRegistrationSuccessResponse,Abblix.Oidc.Server.Common.OidcError_) 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IRegisterClientResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.ClientRegistrationRequest, Abblix\.Utils\.Result\<Abblix\.Oidc\.Server\.Endpoints\.DynamicClientManagement\.Interfaces\.ClientRegistrationSuccessResponse,Abblix\.Oidc\.Server\.Common\.OidcError\>\)')

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')
