pub enum AuthError {
Show 29 variants
Jose(SharedAuthError),
ExpMissing,
Expired,
ExpUpperBound,
AudMissing,
AudMismatch,
IssMismatch,
IatMissing,
IatFuture,
NotYetValid,
JtiMissing,
SubMissing,
ClientIdMissing,
TokenTypeMismatch,
InvalidNumericType,
SubFormatInvalid,
AccountTypeInvalid,
CapsShapeInvalid,
ScopesShapeInvalid,
ScopesTooLong,
DlgDepthInvalid,
AdminBandRejected,
UnknownClaim(String),
JtiReplayed,
ReplayCacheUnavailable,
SessionRevoked,
SessionLookupUnavailable,
SessionVersionStale,
SessionVersionLookupUnavailable,
}Variants§
Jose(SharedAuthError)
JOSE-shared wire-format errors (algorithm / header / serialization
/ parse). The engine submodules check_algorithm / check_header
/ raw and the structural rejections in engine::verify all
surface through this carrier.
ExpMissing
Expired
ExpUpperBound
AudMissing
AudMismatch
M21 + M22 collapsed (string vs array form) — the audit signal is identical: the audience binding does not match this verifier.
IssMismatch
M23: iss is missing OR does not match the pinned issuer.
Single variant — the audit signal is “this token did not come
from the trusted issuer”.
IatMissing
IatFuture
M24 (future-iat) + M25 collapsed — both enforce iat > now + 60s.
NotYetValid
JtiMissing
SubMissing
ClientIdMissing
M28a: RFC 9068 §2.2 — access JWTs MUST carry client_id.
TokenTypeMismatch
M29: cat (token category) discriminator. RFC 9068 §2.2 + ppoppo
extension.
InvalidNumericType
M30: numeric claim is not a JSON integer.
SubFormatInvalid
AccountTypeInvalid
CapsShapeInvalid
ScopesShapeInvalid
ScopesTooLong
DlgDepthInvalid
AdminBandRejected
UnknownClaim(String)
M45: payload contains a claim outside the engine’s strict allowlist. The variant carries the offending claim name for audit.
JtiReplayed
SessionRevoked
SessionVersionStale
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()