Skip to content

AuthorizationResponseFormatter Class

Maps an encoded authorization response onto the wire DTO and delivers it as an Microsoft.AspNetCore.Http.IResult: a redirect (query/fragment), a form_post page, an interaction-page redirect, or a no-redirect error. Protocol-level decisions (parameter assembly, iss/scope gating, JARM packing) are made upstream by the core encoder.

C#
public class AuthorizationResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IAuthorizationResponseFormatter

Inheritance System.Object → AuthorizationResponseFormatter

Implements IAuthorizationResponseFormatter

Constructors

AuthorizationResponseFormatter(IOptions<OidcOptions>, IAuthorizationRequestStorage, ISessionManagementService, IParametersProvider, IHttpContextAccessor) Constructor

Maps an encoded authorization response onto the wire DTO and delivers it as an Microsoft.AspNetCore.Http.IResult: a redirect (query/fragment), a form_post page, an interaction-page redirect, or a no-redirect error. Protocol-level decisions (parameter assembly, iss/scope gating, JARM packing) are made upstream by the core encoder.

C#
public AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options, Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage authorizationRequestStorage, Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService sessionManagementService, Abblix.Oidc.Server.Common.Interfaces.IParametersProvider parametersProvider, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);

Parameters

options Microsoft.Extensions.Options.IOptions<OidcOptions>
authorizationRequestStorage IAuthorizationRequestStorage
sessionManagementService ISessionManagementService
parametersProvider IParametersProvider
httpContextAccessor Microsoft.AspNetCore.Http.IHttpContextAccessor

Methods

AuthorizationResponseFormatter.FormatResponseAsync(AuthorizationRequest, AuthorizationResponse) Method

Formats the authorization endpoint result.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest request, Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse response);

Parameters

request AuthorizationRequest

The original authorization request.

response AuthorizationResponse

The encoded authorization response from the core handler.

Implements FormatResponseAsync(AuthorizationRequest, AuthorizationResponse)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>
An Microsoft.AspNetCore.Http.IResult delivering the response.