pub enum AuthError {
Show 15 variants
CryptoProviderNotInitialized,
CryptoProviderAlreadyInstalled,
InvalidPolicy,
TokenTooLarge,
InvalidToken,
Expired,
NotYetValid,
MissingClaim,
WrongTokenType,
AlgorithmMismatch,
IssuerMismatch,
AudienceMismatch,
Encoding,
ResourceLimit,
Cancelled,
}Expand description
Errors produced by the product-neutral authentication mechanism.
Variants§
CryptoProviderNotInitialized
The product entrypoint has not successfully initialized the process-wide JWT provider.
CryptoProviderAlreadyInstalled
The upstream JWT provider was already installed; Forge never overwrites or adopts it.
InvalidPolicy
The caller supplied an invalid policy, key, identifier, or claim value.
TokenTooLarge
The token exceeded the configured parser budget.
InvalidToken
The token could not be decoded or its signature was not accepted.
Expired
The token signature was valid, but it is no longer valid at the current clock value.
NotYetValid
The token’s issuance or optional not-before time is beyond the accepted clock skew.
MissingClaim
A required claim is absent or malformed.
WrongTokenType
The token type does not match the operation.
AlgorithmMismatch
The token was signed with a disallowed algorithm.
IssuerMismatch
The issuer does not match the configured policy.
AudienceMismatch
The audience does not match the configured policy.
Encoding
Token creation failed without exposing secret material.
ResourceLimit
The instance’s bounded refresh request budget is exhausted.
Cancelled
Request cancellation or instance shutdown occurred before persistence started.