Table of Contents

Class SignedCapabilityGrantReasonCodes

Namespace
AsiBackbone.AspNetCore.CapabilityGrants
Assembly
AsiBackbone.AspNetCore.dll

Defines the stable reason codes SignedCapabilityGrantEndpointValidator places on the denied decisions it returns.

public static class SignedCapabilityGrantReasonCodes
Inheritance
SignedCapabilityGrantReasonCodes
Inherited Members

Remarks

These values are public contract: they appear in decision receipts, audit ledger records, and problem responses, and they do not change within a major version. Every CapabilityGrantValidationCategory other than Valid maps to one code through ForCategory(CapabilityGrantValidationCategory), whatever VerificationPolicyAction the core validator attached to the result.

Fields

AcknowledgmentMismatch

The grant acknowledgment reference did not match.

public const string AcknowledgmentMismatch = "endpoint.capability_grant.acknowledgment_mismatch"

Field Value

string

AcknowledgmentMissing

The grant carries no acknowledgment reference where one is required.

public const string AcknowledgmentMissing = "endpoint.capability_grant.acknowledgment_missing"

Field Value

string

ActorUnresolved

The request has no known, authenticated actor to bind the grant to.

public const string ActorUnresolved = "endpoint.capability_grant.actor_unresolved"

Field Value

string

AudienceMismatch

The grant audience did not match the configured audience.

public const string AudienceMismatch = "endpoint.capability_grant.audience_mismatch"

Field Value

string

BindingUnavailable

No request-binding provider is registered, or the provider could not bind the request.

public const string BindingUnavailable = "endpoint.capability_grant.binding_unavailable"

Field Value

string

Cancelled

The grant was cancelled.

public const string Cancelled = "endpoint.capability_grant.cancelled"

Field Value

string

Expired

The grant has expired.

public const string Expired = "endpoint.capability_grant.expired"

Field Value

string

Failed

Validation failed without a more specific category, or failed unexpectedly.

public const string Failed = "endpoint.capability_grant.failed"

Field Value

string

GatewayMismatch

The grant gateway binding did not match.

public const string GatewayMismatch = "endpoint.capability_grant.gateway_mismatch"

Field Value

string

HandshakeMismatch

The grant handshake reference did not match.

public const string HandshakeMismatch = "endpoint.capability_grant.handshake_mismatch"

Field Value

string

IssuerMismatch

The grant issuer did not match the configured issuer.

public const string IssuerMismatch = "endpoint.capability_grant.issuer_mismatch"

Field Value

string

Malformed

The capability grant token could not be decoded.

public const string Malformed = "endpoint.capability_grant.malformed"

Field Value

string

Missing

No capability grant token was presented.

public const string Missing = "endpoint.capability_grant.missing"

Field Value

string

NotYetValid

The grant is not yet valid.

public const string NotYetValid = "endpoint.capability_grant.not_yet_valid"

Field Value

string

OperationMismatch

The grant operation did not match the endpoint operation.

public const string OperationMismatch = "endpoint.capability_grant.operation_mismatch"

Field Value

string

PolicyMismatch

The grant policy version or hash did not match the current decision.

public const string PolicyMismatch = "endpoint.capability_grant.policy_mismatch"

Field Value

string

ProofInvalid

The grant proof did not verify or is not bound to the grant content.

public const string ProofInvalid = "endpoint.capability_grant.proof_invalid"

Field Value

string

ProofMissing

Required proof was missing, or no signature verification service is registered.

public const string ProofMissing = "endpoint.capability_grant.proof_missing"

Field Value

string

ResourceMismatch

The grant resource binding did not match the request binding.

public const string ResourceMismatch = "endpoint.capability_grant.resource_mismatch"

Field Value

string

Revoked

The grant, or the key that signed it, was revoked or stopped.

public const string Revoked = "endpoint.capability_grant.revoked"

Field Value

string

ScopeMissing

The grant does not carry every scope the endpoint requires.

public const string ScopeMissing = "endpoint.capability_grant.scope_missing"

Field Value

string

SubjectMismatch

The grant subject did not match the authenticated actor.

public const string SubjectMismatch = "endpoint.capability_grant.subject_mismatch"

Field Value

string

UseLimitExceeded

The grant has been used as many times as it permits, including a replayed single-use grant.

public const string UseLimitExceeded = "endpoint.capability_grant.use_limit_exceeded"

Field Value

string

UseStoreUnavailable

No use store is registered, or the use store was unavailable.

public const string UseStoreUnavailable = "endpoint.capability_grant.use_store_unavailable"

Field Value

string

Methods

ForCategory(CapabilityGrantValidationCategory)

Returns the reason code for a core validation category.

public static string ForCategory(CapabilityGrantValidationCategory category)

Parameters

category CapabilityGrantValidationCategory

The validation category.

Returns

string

The reason code; Failed for Valid or an undefined value.