Skip to main content

AuthorizedGrant Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Token.Interfaces

AuthorizedGrant Class

The (authentication-session, authorization-context) pair from which the token endpoint mints access, refresh and ID tokens. Produced by an IAuthorizationGrantHandler and carried through token issuance.

public record AuthorizedGrant : System.IEquatable<Abblix.Oidc.Server.Endpoints.Token.Interfaces.AuthorizedGrant>

Inheritance System.Object → AuthorizedGrant

Derived
RefreshTokenAuthorizedGrant

Implements System.IEquatable<AuthorizedGrant>

Constructors

AuthorizedGrant(AuthSession, AuthorizationContext) Constructor

The (authentication-session, authorization-context) pair from which the token endpoint mints access, refresh and ID tokens. Produced by an IAuthorizationGrantHandler and carried through token issuance.

public AuthorizedGrant(Abblix.Oidc.Server.Features.UserAuthentication.AuthSession AuthSession, Abblix.Oidc.Server.Common.AuthorizationContext Context);

Parameters

AuthSession AuthSession

The user's authentication session (subject, sid, auth_time, idp).

Context AuthorizationContext

The authorization decision (client_id, scope, resources, requested claims, confirmation binding) inherited by the issued tokens.

Properties

AuthorizedGrant.AuthSession Property

The user's authentication session (subject, sid, auth_time, idp).

public Abblix.Oidc.Server.Features.UserAuthentication.AuthSession AuthSession { get; init; }

Property Value

AuthSession

AuthorizedGrant.Context Property

The authorization decision (client_id, scope, resources, requested claims, confirmation binding) inherited by the issued tokens.

public Abblix.Oidc.Server.Common.AuthorizationContext Context { get; init; }

Property Value

AuthorizationContext

AuthorizedGrant.IssuedTokens Property

Tokens already issued from this grant. Tracked for the authorization-code reuse defense: if the same code is presented twice, every previously issued token is revoked by JTI.

public Abblix.Oidc.Server.Endpoints.Token.Interfaces.TokenInfo[]? IssuedTokens { get; init; }

Property Value

TokenInfo[]