pub enum TokenVerificationError {
Expired,
NotYetValid,
InvalidSignature,
AudienceMismatch,
IssuerMismatch,
MissingSubject,
Malformed(Error),
Jwks(String),
}Expand description
Errors that can occur while verifying an ID token or session cookie.
Variants§
Expired
The token’s exp claim is in the past.
NotYetValid
The token’s iat/auth_time claim is in the future.
InvalidSignature
The token’s signature did not verify against any known public key.
AudienceMismatch
The token’s aud claim did not match the configured project ID.
IssuerMismatch
The token’s iss claim did not match the expected issuer.
MissingSubject
The token is missing a sub claim, or it is empty.
Malformed(Error)
The token could not be decoded or its header/claims could not be parsed.
Jwks(String)
Google’s public keys (JWKS) could not be fetched or parsed.
Trait Implementations§
Source§impl Debug for TokenVerificationError
impl Debug for TokenVerificationError
Source§impl Display for TokenVerificationError
impl Display for TokenVerificationError
Source§impl Error for TokenVerificationError
impl Error for TokenVerificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for TokenVerificationError
impl From<Error> for TokenVerificationError
Source§impl From<TokenVerificationError> for AuthError
impl From<TokenVerificationError> for AuthError
Source§fn from(source: TokenVerificationError) -> Self
fn from(source: TokenVerificationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TokenVerificationError
impl !UnwindSafe for TokenVerificationError
impl Freeze for TokenVerificationError
impl Send for TokenVerificationError
impl Sync for TokenVerificationError
impl Unpin for TokenVerificationError
impl UnsafeUnpin for TokenVerificationError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more