pub enum LogoutFailure {
Typ,
Issuer,
Key,
Signature,
Expired,
Claims,
Audience,
Events,
Nonce,
Subject,
Iat,
Replay,
}Expand description
Which rule a rejected logout token broke.
Variants§
Typ
The JOSE typ is not logout+jwt.
Issuer
iss is not on the issuer allow-list.
Key
Signed with a key the issuer does not publish.
Signature
The signature does not verify (or the token is not a JWS).
Expired
Claims
A required claim is missing or the wrong type.
Audience
aud does not include this client.
Events
No back-channel logout event member.
Nonce
A logout token must not carry a nonce.
Subject
Neither sub nor sid.
Iat
iat is in the future or older than the age bound.
Replay
The consume_jti hook said this jti was already used.
Implementations§
Source§impl LogoutFailure
impl LogoutFailure
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The reason as a short word: typ, issuer, key, signature, expired, claims, audience, events,
nonce, subject, iat or replay. The words the shared fixture uses (reject:<reason>).
Sourcepub const fn code(self) -> &'static str
pub const fn code(self) -> &'static str
The code an AuthError::Jwt of the same failure would carry.
Trait Implementations§
Source§impl Clone for LogoutFailure
impl Clone for LogoutFailure
Source§fn clone(&self) -> LogoutFailure
fn clone(&self) -> LogoutFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogoutFailure
impl Debug for LogoutFailure
Source§impl From<LogoutFailure> for AuthError
impl From<LogoutFailure> for AuthError
Source§fn from(reason: LogoutFailure) -> Self
fn from(reason: LogoutFailure) -> Self
Converts to this type from the input type.
Source§impl Hash for LogoutFailure
impl Hash for LogoutFailure
Source§impl PartialEq for LogoutFailure
impl PartialEq for LogoutFailure
Source§fn eq(&self, other: &LogoutFailure) -> bool
fn eq(&self, other: &LogoutFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LogoutFailure
impl Eq for LogoutFailure
impl StructuralPartialEq for LogoutFailure
Auto Trait Implementations§
impl Freeze for LogoutFailure
impl RefUnwindSafe for LogoutFailure
impl Send for LogoutFailure
impl Sync for LogoutFailure
impl Unpin for LogoutFailure
impl UnsafeUnpin for LogoutFailure
impl UnwindSafe for LogoutFailure
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