Skip to main content

ResponseModeExtensions Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.ResponseObject

ResponseModeExtensions Class

Helpers over the response_mode value for JARM (JWT Secured Authorization Response Mode).

public static class ResponseModeExtensions

Inheritance System.Object → ResponseModeExtensions

Methods

ResponseModeExtensions.IsJwtMode(this string) Method

Determines whether the given response mode is a JARM (JWT-secured) mode — one of QueryJwt, FragmentJwt, FormPostJwt or Jwt.

public static bool IsJwtMode(this string responseMode);

Parameters

responseMode System.String

Returns

System.Boolean

ResponseModeExtensions.ToDeliveryMode(this string, bool) Method

Resolves a JARM (JWT-secured) response mode to the plaintext delivery mode that carries the response JWT: QueryJwtQuery, FragmentJwtFragment, FormPostJwtFormPost. The Jwt shortcut resolves to Fragment for token-bearing flows and Query otherwise (JARM §2.3.4). A non-JWT mode is returned unchanged.

public static string ToDeliveryMode(this string responseMode, bool carriesTokens);

Parameters

responseMode System.String

The requested response mode.

carriesTokens System.Boolean

Whether the response carries front-channel tokens (used for the Jwt shortcut).

Returns

System.String