pub enum IdTokenVerifyError {
InvalidToken(InvalidIdToken),
KeysUnavailable(Arc<Error>),
}Expand description
Why IdTokenVerifier::verify refused a token.
Variants§
InvalidToken(InvalidIdToken)
The token is not a valid Google ID token for the audience; the caller is not authenticated.
The signing keys could not be fetched, so the token could not be checked; it may be valid. A failed fetch is reported to every verification for a short interval before the next fetch, hence the shared error.
Trait Implementations§
Source§impl Debug for IdTokenVerifyError
impl Debug for IdTokenVerifyError
Source§impl Display for IdTokenVerifyError
impl Display for IdTokenVerifyError
Source§impl Error for IdTokenVerifyError
impl Error for IdTokenVerifyError
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<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 IdTokenVerifyError
impl !UnwindSafe for IdTokenVerifyError
impl Freeze for IdTokenVerifyError
impl Send for IdTokenVerifyError
impl Sync for IdTokenVerifyError
impl Unpin for IdTokenVerifyError
impl UnsafeUnpin for IdTokenVerifyError
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