Skip to content

IConfigurationResponseFormatter Interface

Formats the framework-neutral OpenID Connect configuration metadata into an Microsoft.AspNetCore.Http.IResult, enriching it with the absolute endpoint URLs resolved for the current request.

C#
public interface IConfigurationResponseFormatter

Derived
ConfigurationResponseFormatter

Remarks

This is the Minimal API counterpart of the MVC integration's IConfigurationResponseFormatter: same mapping logic, but it returns an Microsoft.AspNetCore.Http.IResult instead of an ActionResult, and it resolves endpoint URLs from the configured route templates plus the request's base URL rather than from controller/action descriptors.

Methods

IConfigurationResponseFormatter.FormatResponseAsync(ConfigurationResponse) Method

Formats the configuration response, adding endpoint URLs and (when enabled) the RFC 8414 signed metadata.

C#
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse response);

Parameters

response ConfigurationResponse

The framework-neutral configuration metadata produced by the core handler.

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>
An Microsoft.AspNetCore.Http.IResult that writes the discovery document as JSON.