#[non_exhaustive]pub enum InvalidIdToken {
Malformed(Error),
UnknownKey(Option<String>),
BadSignature,
Expired,
NotYetValid,
WrongAudience,
WrongIssuer,
}Expand description
What is wrong with an invalid ID token.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Malformed(Error)
Not an RS256 JWT, or its claims are missing or of the wrong type.
UnknownKey(Option<String>)
The key ID in the header, if any, is not among Google’s signing keys.
BadSignature
The signature does not match the key.
Expired
exp has passed.
NotYetValid
nbf or iat is in the future.
WrongAudience
aud is not the verifier’s audience.
WrongIssuer
iss is not Google.
Trait Implementations§
Source§impl Debug for InvalidIdToken
impl Debug for InvalidIdToken
Source§impl Display for InvalidIdToken
impl Display for InvalidIdToken
Source§impl Error for InvalidIdToken
impl Error for InvalidIdToken
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 InvalidIdToken
impl From<Error> for InvalidIdToken
Source§impl From<InvalidIdToken> for IdTokenVerifyError
impl From<InvalidIdToken> for IdTokenVerifyError
Source§fn from(reason: InvalidIdToken) -> Self
fn from(reason: InvalidIdToken) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InvalidIdToken
impl !UnwindSafe for InvalidIdToken
impl Freeze for InvalidIdToken
impl Send for InvalidIdToken
impl Sync for InvalidIdToken
impl Unpin for InvalidIdToken
impl UnsafeUnpin for InvalidIdToken
Blanket Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request