Enum aliri_oauth2::AuthorityError
source · pub enum AuthorityError {
UnknownKeyId,
JwtVerifyError(JwtVerifyError),
PolicyDenial(InsufficientScope),
}
Expand description
Indicates the requester held insufficient scopes to be granted access to a controlled resource
Variants§
UnknownKeyId
Indicates that the authority cannot verify the JWT because it cannot find a key which matches the specifications in the token header
JwtVerifyError(JwtVerifyError)
Indicates that the JWT was malformed or otherwise defective
PolicyDenial(InsufficientScope)
Indicates that, while the JWT was acceptable, it does not grant the level of authorization requested.
Trait Implementations§
source§impl Debug for AuthorityError
impl Debug for AuthorityError
source§impl Display for AuthorityError
impl Display for AuthorityError
source§impl Error for AuthorityError
impl Error for AuthorityError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<InsufficientScope> for AuthorityError
impl From<InsufficientScope> for AuthorityError
source§fn from(source: InsufficientScope) -> Self
fn from(source: InsufficientScope) -> Self
Converts to this type from the input type.
source§impl From<JwtVerifyError> for AuthorityError
impl From<JwtVerifyError> for AuthorityError
source§fn from(source: JwtVerifyError) -> Self
fn from(source: JwtVerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthorityError
impl !RefUnwindSafe for AuthorityError
impl Send for AuthorityError
impl Sync for AuthorityError
impl Unpin for AuthorityError
impl !UnwindSafe for AuthorityError
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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more