pub enum JwtAuthError {
Jwt(Error),
Http(Box<dyn Error + Send + Sync>),
Json(Error),
MissingKey,
InvalidAudience,
}Expand description
Errors returned by JwtAuthenticator.
Variants§
Jwt(Error)
Token validation failed.
Http(Box<dyn Error + Send + Sync>)
JWKS fetch failed.
Json(Error)
JWKS JSON could not be parsed.
MissingKey
No matching signing key was found.
InvalidAudience
Token audience did not match the configured audience.
Trait Implementations§
Source§impl Debug for JwtAuthError
impl Debug for JwtAuthError
Source§impl Display for JwtAuthError
impl Display for JwtAuthError
Source§impl Error for JwtAuthError
impl Error for JwtAuthError
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 JwtAuthError
impl From<Error> for JwtAuthError
Auto Trait Implementations§
impl !RefUnwindSafe for JwtAuthError
impl !UnwindSafe for JwtAuthError
impl Freeze for JwtAuthError
impl Send for JwtAuthError
impl Sync for JwtAuthError
impl Unpin for JwtAuthError
impl UnsafeUnpin for JwtAuthError
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