Skip to main content

AuthorizationResponseEncoder Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization

AuthorizationResponseEncoder Class

Default IAuthorizationResponseEncoder. Applies the iss (RFC 9207) and implicit/hybrid scope gating, and — for a JARM (*.jwt) response mode — packs the response parameters into a signed/encrypted response JWT and resolves the delivery mode. Mutates the response in place; the transport layer only maps the encoded response onto the wire.

public class AuthorizationResponseEncoder : Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.IAuthorizationResponseEncoder

Inheritance System.Object → AuthorizationResponseEncoder

Implements IAuthorizationResponseEncoder

Constructors

AuthorizationResponseEncoder(IIssuerProvider, IAuthorizationMetadataProvider, IResponseJwtBuilder) Constructor

Default IAuthorizationResponseEncoder. Applies the iss (RFC 9207) and implicit/hybrid scope gating, and — for a JARM (*.jwt) response mode — packs the response parameters into a signed/encrypted response JWT and resolves the delivery mode. Mutates the response in place; the transport layer only maps the encoded response onto the wire.

public AuthorizationResponseEncoder(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider, Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.IAuthorizationMetadataProvider authorizationMetadata, Abblix.Oidc.Server.Features.ResponseObject.IResponseJwtBuilder responseJwtBuilder);

Parameters

issuerProvider IIssuerProvider

Supplies the iss value (RFC 9207).

authorizationMetadata IAuthorizationMetadataProvider

Tells whether iss is advertised/emitted.

responseJwtBuilder IResponseJwtBuilder

Builds the JARM response JWT.

Methods

AuthorizationResponseEncoder.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.

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

Parameters

response AuthorizationResponse

The processed authorization response to encode.

Implements EncodeAsync(AuthorizationResponse)

Returns

System.Threading.Tasks.Task