pub enum AuthError {
TokenHeaderDecoding(Error),
KidMismatch(Option<String>, Option<String>),
PubKeyMissing,
PubKeyParsing(String),
TokenDecoding(Error),
}
Expand description
The error type for possible authentication failures when validating a JWT.
Variants§
TokenHeaderDecoding(Error)
Failed to decode the header of the Passage JWT
(e.g. the psg_auth_token
cookie value).
See associated jwt::errors::Error
for details.
KidMismatch(Option<String>, Option<String>)
Key IDs of public JWK and Passage JWT do not match
PubKeyMissing
Public JWK was not provided
PubKeyParsing(String)
Failed to parse the provided public JWK
TokenDecoding(Error)
Failed to decode and validate the Passage JWT
(e.g. the psg_auth_token
cookie value).
See associated jwt::errors::Error
for details.
Trait Implementations§
Source§impl From<AuthError> for PassageError
impl From<AuthError> for PassageError
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Freeze for AuthError
impl !RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl !UnwindSafe for AuthError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.