Skip to main content

AuthorizationContext Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.Storages.Proto

AuthorizationContext Class

Represents the context of an authorization process

public sealed class AuthorizationContext : Google.Protobuf.IMessage<Abblix.Oidc.Server.Features.Storages.Proto.AuthorizationContext>, Google.Protobuf.IMessage, System.IEquatable<Abblix.Oidc.Server.Features.Storages.Proto.AuthorizationContext>, Google.Protobuf.IDeepCloneable<Abblix.Oidc.Server.Features.Storages.Proto.AuthorizationContext>, Google.Protobuf.IBufferMessage

Inheritance System.Object → AuthorizationContext

Implements Google.Protobuf.IMessage<AuthorizationContext>, Google.Protobuf.IMessage, System.IEquatable<AuthorizationContext>, Google.Protobuf.IDeepCloneable<AuthorizationContext>, Google.Protobuf.IBufferMessage

Fields

AuthorizationContext.ActorJsonFieldNumber Field

Field number for the "actor_json" field.

public const int ActorJsonFieldNumber = 12;

Field Value

System.Int32

AuthorizationContext.AuthorizationDetailsJsonFieldNumber Field

Field number for the "authorization_details_json" field.

public const int AuthorizationDetailsJsonFieldNumber = 11;

Field Value

System.Int32

AuthorizationContext.CertificateSha256ThumbprintFieldNumber Field

Field number for the "certificate_sha256_thumbprint" field.

public const int CertificateSha256ThumbprintFieldNumber = 4;

Field Value

System.Int32

AuthorizationContext.ClientIdFieldNumber Field

Field number for the "client_id" field.

public const int ClientIdFieldNumber = 1;

Field Value

System.Int32

AuthorizationContext.CodeChallengeFieldNumber Field

Field number for the "code_challenge" field.

public const int CodeChallengeFieldNumber = 7;

Field Value

System.Int32

AuthorizationContext.CodeChallengeMethodFieldNumber Field

Field number for the "code_challenge_method" field.

public const int CodeChallengeMethodFieldNumber = 8;

Field Value

System.Int32

AuthorizationContext.NonceFieldNumber Field

Field number for the "nonce" field.

public const int NonceFieldNumber = 6;

Field Value

System.Int32

AuthorizationContext.ProofKeyThumbprintFieldNumber Field

Field number for the "proof_key_thumbprint" field.

public const int ProofKeyThumbprintFieldNumber = 10;

Field Value

System.Int32

AuthorizationContext.RedirectUriFieldNumber Field

Field number for the "redirect_uri" field.

public const int RedirectUriFieldNumber = 5;

Field Value

System.Int32

AuthorizationContext.RequestedClaimsFieldNumber Field

Field number for the "requested_claims" field.

public const int RequestedClaimsFieldNumber = 3;

Field Value

System.Int32

AuthorizationContext.ResourcesFieldNumber Field

Field number for the "resources" field.

public const int ResourcesFieldNumber = 9;

Field Value

System.Int32

AuthorizationContext.ScopeFieldNumber Field

Field number for the "scope" field.

public const int ScopeFieldNumber = 2;

Field Value

System.Int32

Properties

AuthorizationContext.ActorJson Property

RFC 8693 Section 4.1 act claim chain, serialised as a JSON string. Stored as opaque JSON because the act object may carry arbitrary actor metadata and nested act.act delegation chains; round-trip preserves byte-exact shape.

public string ActorJson { get; set; }

Property Value

System.String

AuthorizationContext.AuthorizationDetailsJson Property

RFC 9396 Rich Authorization Requests array, serialised as a JSON string. Stored as opaque JSON because each entry's type-specific payload (RFC 9396 §2.2 extension data) is structurally unbounded; round-trip preserves exact wire shape including unknown members the per-type validator did not strip.

public string AuthorizationDetailsJson { get; set; }

Property Value

System.String

AuthorizationContext.CertificateSha256Thumbprint Property

Base64url-encoded SHA-256 thumbprint of the client X.509 certificate (RFC 8705 §3.1). Tag 4 retained for wire-compat; field renamed from x509_certificate_sha256_thumbprint to align with the canonical C# domain property and the cnf-member naming.

public string CertificateSha256Thumbprint { get; set; }

Property Value

System.String

AuthorizationContext.ClientId Property

The unique identifier of the client

public string ClientId { get; set; }

Property Value

System.String

AuthorizationContext.CodeChallenge Property

PKCE code challenge

public string CodeChallenge { get; set; }

Property Value

System.String

AuthorizationContext.CodeChallengeMethod Property

PKCE code challenge method

public string CodeChallengeMethod { get; set; }

Property Value

System.String

AuthorizationContext.HasActorJson Property

Gets whether the "actor_json" field is set

public bool HasActorJson { get; }

Property Value

System.Boolean

AuthorizationContext.HasAuthorizationDetailsJson Property

Gets whether the "authorization_details_json" field is set

public bool HasAuthorizationDetailsJson { get; }

Property Value

System.Boolean

AuthorizationContext.HasCertificateSha256Thumbprint Property

Gets whether the "certificate_sha256_thumbprint" field is set

public bool HasCertificateSha256Thumbprint { get; }

Property Value

System.Boolean

AuthorizationContext.HasCodeChallenge Property

Gets whether the "code_challenge" field is set

public bool HasCodeChallenge { get; }

Property Value

System.Boolean

AuthorizationContext.HasCodeChallengeMethod Property

Gets whether the "code_challenge_method" field is set

public bool HasCodeChallengeMethod { get; }

Property Value

System.Boolean

AuthorizationContext.HasNonce Property

Gets whether the "nonce" field is set

public bool HasNonce { get; }

Property Value

System.Boolean

AuthorizationContext.HasProofKeyThumbprint Property

Gets whether the "proof_key_thumbprint" field is set

public bool HasProofKeyThumbprint { get; }

Property Value

System.Boolean

AuthorizationContext.HasRedirectUri Property

Gets whether the "redirect_uri" field is set

public bool HasRedirectUri { get; }

Property Value

System.Boolean

AuthorizationContext.Nonce Property

Nonce value to associate client session with ID Token

public string Nonce { get; set; }

Property Value

System.String

AuthorizationContext.ProofKeyThumbprint Property

RFC 7638 base64url-encoded JWK thumbprint of the DPoP proof-of-possession key bound to this authorization (RFC 9449 §6.1). Carried into cnf.jkt on the issued access token so the binding survives auth-code / refresh-token persistence.

public string ProofKeyThumbprint { get; set; }

Property Value

System.String

AuthorizationContext.RedirectUri Property

The URI where the authorization response should be sent

public string RedirectUri { get; set; }

Property Value

System.String

AuthorizationContext.RequestedClaims Property

Optional claims requested by the client

public Abblix.Oidc.Server.Features.Storages.Proto.RequestedClaims RequestedClaims { get; set; }

Property Value

RequestedClaims

AuthorizationContext.Resources Property

Resources for which authorization is granted

public Google.Protobuf.Collections.RepeatedField<string> Resources { get; }

Property Value

Google.Protobuf.Collections.RepeatedField<System.String>

AuthorizationContext.Scope Property

The requested scopes

public Google.Protobuf.Collections.RepeatedField<string> Scope { get; }

Property Value

Google.Protobuf.Collections.RepeatedField<System.String>

Methods

AuthorizationContext.ClearActorJson() Method

Clears the value of the "actor_json" field

public void ClearActorJson();

AuthorizationContext.ClearAuthorizationDetailsJson() Method

Clears the value of the "authorization_details_json" field

public void ClearAuthorizationDetailsJson();

AuthorizationContext.ClearCertificateSha256Thumbprint() Method

Clears the value of the "certificate_sha256_thumbprint" field

public void ClearCertificateSha256Thumbprint();

AuthorizationContext.ClearCodeChallenge() Method

Clears the value of the "code_challenge" field

public void ClearCodeChallenge();

AuthorizationContext.ClearCodeChallengeMethod() Method

Clears the value of the "code_challenge_method" field

public void ClearCodeChallengeMethod();

AuthorizationContext.ClearNonce() Method

Clears the value of the "nonce" field

public void ClearNonce();

AuthorizationContext.ClearProofKeyThumbprint() Method

Clears the value of the "proof_key_thumbprint" field

public void ClearProofKeyThumbprint();

AuthorizationContext.ClearRedirectUri() Method

Clears the value of the "redirect_uri" field

public void ClearRedirectUri();