ConfigurationResponseFormatter Class
Builds the OpenID Connect discovery document by enriching the core metadata with endpoint URLs resolved from the configured route templates and the current request's base URL, then returns it as a JSON Microsoft.AspNetCore.Http.IResult.
public class ConfigurationResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IConfigurationResponseFormatterInheritance System.Object → ConfigurationResponseFormatter
Implements IConfigurationResponseFormatter
Constructors
ConfigurationResponseFormatter(IOptionsSnapshot<OidcOptions>, IHttpContextAccessor, LinkGenerator, ISignedMetadataProvider) Constructor
Builds the OpenID Connect discovery document by enriching the core metadata with endpoint URLs resolved from the configured route templates and the current request's base URL, then returns it as a JSON Microsoft.AspNetCore.Http.IResult.
public ConfigurationResponseFormatter(Microsoft.Extensions.Options.IOptionsSnapshot<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor, Microsoft.AspNetCore.Routing.LinkGenerator linkGenerator, Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ISignedMetadataProvider signedMetadataProvider);Parameters
options Microsoft.Extensions.Options.IOptionsSnapshot<OidcOptions>
httpContextAccessor Microsoft.AspNetCore.Http.IHttpContextAccessor
linkGenerator Microsoft.AspNetCore.Routing.LinkGenerator
signedMetadataProvider ISignedMetadataProvider
Methods
ConfigurationResponseFormatter.FormatResponseAsync(ConfigurationResponse) Method
Formats the configuration response, adding endpoint URLs and (when enabled) the RFC 8414 signed metadata.
public 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.
Implements FormatResponseAsync(ConfigurationResponse)
Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>
An Microsoft.AspNetCore.Http.IResult that writes the discovery document as JSON.