Enum RustyJwtError
pub enum RustyJwtError {
Show 37 variants
JwtSimpleError(Error),
Sec1Error(Error),
UrlParseError(ParseError),
UuidError(Error),
Utf8Error(Utf8Error),
Base64DecodeError(DecodeError),
JsonError(Error),
InvalidHtu(Url, &'static str),
InvalidHtm(String),
InvalidDpopJwk,
InvalidJwkThumbprint,
InvalidDpopIat,
DpopNotYetValid,
InvalidToken(String),
MissingDpopHeader(&'static str),
InvalidDpopTyp,
TokenSubMismatch,
MissingIssuer,
TokenExpired,
TokenLivesTooLong,
MissingTokenClaim(&'static str),
InvalidAudience,
DpopNonceMismatch,
DpopHandleMismatch,
DpopDisplayNameMismatch,
DpopTeamMismatch,
DpopChallengeMismatch,
DpopHtuMismatch,
DpopHtmMismatch,
UnsupportedAlgorithm,
InvalidBackendKeys(&'static str),
InvalidClientId,
UnsupportedApiVersion,
UnsupportedScope,
InvalidHandle,
InvalidIdentifierScheme(String),
ImplementationError,
}Expand description
All errors which [crate::RustyJwtTools] might throw
Variants§
JwtSimpleError(Error)
JWT error from jwt-simple crate
Sec1Error(Error)
Elliptic curve error
UrlParseError(ParseError)
Invalid URL
UuidError(Error)
Invalid UUID
Utf8Error(Utf8Error)
UTF-8 parsing error
Base64DecodeError(DecodeError)
Base64 decoding error
JsonError(Error)
Json error
InvalidHtu(Url, &'static str)
Invalid URL
InvalidHtm(String)
Invalid HTTP method
InvalidDpopJwk
Invalid DPoP proof jwk
InvalidJwkThumbprint
JWK thumbprint mismatches JWK in header
InvalidDpopIat
DPoP ‘iat’ claim is issued in the future
DpopNotYetValid
DPoP ‘nbf’ claim is issued in the future
InvalidToken(String)
JWT token verification failed
MissingDpopHeader(&'static str)
DPoP token lacks header field
InvalidDpopTyp
DPoP token should have a ‘typ’ header field equal to ‘dpop+jwt’
TokenSubMismatch
DPoP token ‘sub’ claim mismatches with the expected one
MissingIssuer
Claim ‘iss’ is missing while required
TokenExpired
JWT token is expired
TokenLivesTooLong
JWT token expiry is later than supplied threshold
MissingTokenClaim(&'static str)
JWT token token lacks a claim
InvalidAudience
JWT token has an invalid “aud” claim
DpopNonceMismatch
DPoP token ‘nonce’ claim mismatches with the expected [crate::prelude::BackendNonce]
DpopHandleMismatch
DPoP token ‘handle’ claim mismatches with the expected handle
DpopDisplayNameMismatch
DPoP token display name claim mismatches with the expected handle
DpopTeamMismatch
DPoP token ‘team’ claim mismatches with the expected team
DpopChallengeMismatch
DPoP token ‘chal’ claim mismatches with the expected [crate::prelude::AcmeNonce]
DpopHtuMismatch
DPoP token ‘htu’ claim mismatches with the expected uri
DpopHtmMismatch
DPoP token ‘htm’ claim mismatches with the expected method
UnsupportedAlgorithm
Unsupported algorithm
InvalidBackendKeys(&'static str)
Supplied backend keys have an invalid format
InvalidClientId
UnsupportedApiVersion
Verified a token with an unsupported wire-server API version
UnsupportedScope
Verified a token with an unsupported scope
InvalidHandle
Handle claim is in the wrong format
InvalidIdentifierScheme(String)
Invalid identifier (client id or handle) scheme
ImplementationError
We have done something terribly wrong