Skip to main content

IAuthorizationResponseEncoder Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization.Interfaces

IAuthorizationResponseEncoder Interface

Applies the protocol-level encoding of an authorization response in the framework-agnostic core: the iss (RFC 9207) and implicit/hybrid scope gating, and — when the client requested a JARM (*.jwt) response mode — packing all response parameters into the response JWT and resolving the plaintext delivery mode.

public interface IAuthorizationResponseEncoder

Derived
AuthorizationResponseEncoder

Remarks

Invoked from IAuthorizationHandler after the full request-processing chain (including the session-management decorator that sets session_state) has completed, so the JWT captures the final parameter set. It mutates the response in place: SuccessfullyAuthenticated and AuthorizationError gain their Issuer/Scope/ResponseJwt and a resolved ResponseMode. Interaction responses (login/consent/etc.) and non-redirectable errors are left untouched. The transport layer then only maps the encoded response onto its wire DTO.

Methods

IAuthorizationResponseEncoder.EncodeAsync(AuthorizationResponse) Method

Encodes the supplied authorization response in place. No-op for response types that are not delivered to the client's redirect URI.

System.Threading.Tasks.Task EncodeAsync(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse response);

Parameters

response AuthorizationResponse

The processed authorization response to encode.

Returns

System.Threading.Tasks.Task