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

## ConfigurationResponseFormatter Class

Formats OpenID Connect configuration responses by enriching them with resolved MVC endpoint URLs\.

```csharp
public class ConfigurationResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IConfigurationResponseFormatter
```

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

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

## ConfigurationResponseFormatter\(IOptionsSnapshot\<OidcOptions\>, IEndpointResolver, ISignedMetadataProvider\) Constructor {#Abblix.Oidc.Server.Mvc.Formatters.ConfigurationResponseFormatter.ConfigurationResponseFormatter(Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Mvc.Features.EndpointResolving.IEndpointResolver,Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider)}

Formats OpenID Connect configuration responses by enriching them with resolved MVC endpoint URLs\.

```csharp
public ConfigurationResponseFormatter(Microsoft.Extensions.Options.IOptionsSnapshot<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options, Abblix.Oidc.Server.Mvc.Features.EndpointResolving.IEndpointResolver endpointResolver, Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider signedMetadataProvider);
```
#### Parameters

###### `options` [Microsoft\.Extensions\.Options\.IOptionsSnapshot&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptionssnapshot-1 'Microsoft\.Extensions\.Options\.IOptionsSnapshot\`1')[OidcOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptionssnapshot-1 'Microsoft\.Extensions\.Options\.IOptionsSnapshot\`1') {#Abblix.Oidc.Server.Mvc.Formatters.ConfigurationResponseFormatter.ConfigurationResponseFormatter(Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Mvc.Features.EndpointResolving.IEndpointResolver,Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider).options}

###### `endpointResolver` [IEndpointResolver](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Features.EndpointResolving.IEndpointResolver 'Abblix\.Oidc\.Server\.Mvc\.Features\.EndpointResolving\.IEndpointResolver') {#Abblix.Oidc.Server.Mvc.Formatters.ConfigurationResponseFormatter.ConfigurationResponseFormatter(Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Mvc.Features.EndpointResolving.IEndpointResolver,Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider).endpointResolver}

###### `signedMetadataProvider` [ISignedMetadataProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider 'Abblix\.Oidc\.Server\.Endpoints\.Configuration\.Interfaces\.ISignedMetadataProvider') {#Abblix.Oidc.Server.Mvc.Formatters.ConfigurationResponseFormatter.ConfigurationResponseFormatter(Microsoft.Extensions.Options.IOptionsSnapshot_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Mvc.Features.EndpointResolving.IEndpointResolver,Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider).signedMetadataProvider}
### Methods

## ConfigurationResponseFormatter\.FormatResponseAsync\(ConfigurationResponse\) Method {#Abblix.Oidc.Server.Mvc.Formatters.ConfigurationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse)}

Formats the configuration response by mapping metadata and adding endpoint URLs\.

```csharp
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult<Abblix.Oidc.Server.Model.ConfigurationResponse>> FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse response);
```
#### Parameters

###### `response` [ConfigurationResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse 'Abblix\.Oidc\.Server\.Endpoints\.Configuration\.Interfaces\.ConfigurationResponse') {#Abblix.Oidc.Server.Mvc.Formatters.ConfigurationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse).response}

Framework\-agnostic configuration response with metadata\.

Implements [FormatResponseAsync\(ConfigurationResponse\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IConfigurationResponseFormatter#Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IConfigurationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse) 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces\.IConfigurationResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Endpoints\.Configuration\.Interfaces\.ConfigurationResponse\)')

#### 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\.Mvc\.ActionResult&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.actionresult-1 'Microsoft\.AspNetCore\.Mvc\.ActionResult\`1')[ConfigurationResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.ConfigurationResponse 'Abblix\.Oidc\.Server\.Model\.ConfigurationResponse')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.actionresult-1 'Microsoft\.AspNetCore\.Mvc\.ActionResult\`1')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
An action result with the MVC\-enriched configuration response including URLs\.
