Skip to content

ConfigurationResponseFormatter Class

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

C#
public class ConfigurationResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IConfigurationResponseFormatter

Inheritance System.Object → ConfigurationResponseFormatter

Implements IConfigurationResponseFormatter

Constructors

ConfigurationResponseFormatter(IOptionsSnapshot<OidcOptions>, IEndpointResolver, ISignedMetadataProvider) Constructor

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

C#
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<OidcOptions>
endpointResolver IEndpointResolver
signedMetadataProvider ISignedMetadataProvider

Methods

ConfigurationResponseFormatter.FormatResponseAsync(ConfigurationResponse) Method

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

C#
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

Framework-agnostic configuration response with metadata.

Implements FormatResponseAsync(ConfigurationResponse)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult<ConfigurationResponse>>
An action result with the MVC-enriched configuration response including URLs.