#### [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')

## ReadClientResponseFormatter Class

Formats a client\-read result \(RFC 7592 §2\.1\) as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult '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\.

```csharp
public class ReadClientResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IReadClientResponseFormatter
```

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

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

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

Formats a client\-read result \(RFC 7592 §2\.1\) as [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult '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\.

```csharp
public ReadClientResponseFormatter(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.ReadClientResponseFormatter.ReadClientResponseFormatter(Abblix.Oidc.Server.MinimalApi.Formatters.RegistrationClientUriBuilder).uriBuilder}

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

## ReadClientResponseFormatter\.FormatResponseAsync\(ClientRequest, Result\<ReadClientSuccessfulResponse,OidcError\>\) Method {#Abblix.Oidc.Server.MinimalApi.Formatters.ReadClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse,Abblix.Oidc.Server.Common.OidcError_)}

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

```csharp
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](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.ClientRequest 'Abblix\.Oidc\.Server\.Model\.ClientRequest') {#Abblix.Oidc.Server.MinimalApi.Formatters.ReadClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse,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')[ReadClientSuccessfulResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse 'Abblix\.Oidc\.Server\.Model\.ReadClientSuccessfulResponse')[,](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.ReadClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse,Abblix.Oidc.Server.Common.OidcError_).response}

Implements [FormatResponseAsync\(ClientRequest, Result&lt;ReadClientSuccessfulResponse,OidcError&gt;\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IReadClientResponseFormatter#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IReadClientResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.ClientRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Model.ReadClientSuccessfulResponse,Abblix.Oidc.Server.Common.OidcError_) 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IReadClientResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.ClientRequest, Abblix\.Utils\.Result\<Abblix\.Oidc\.Server\.Model\.ReadClientSuccessfulResponse,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')
