[][src]Enum aliri_oauth2::AuthorityError

pub enum AuthorityError {
    UnknownKeyId,
    JwtVerifyError(JwtVerifyError),
    PolicyDenial(InsufficientScopes),
}

Indicates the requestor 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(InsufficientScopes)

Indicates that, while the JWT was acceptable, it does not grant the level of authorization requested.

Trait Implementations

impl Debug for AuthorityError[src]

impl Display for AuthorityError[src]

impl Error for AuthorityError[src]

impl From<InsufficientScopes> for AuthorityError[src]

impl From<JwtVerifyError> for AuthorityError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<E> InstrumentError for E where
    TracedError<E>: From<E>, 
[src]

type Instrumented = TracedError<E>

The type of the wrapped error after instrumentation

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SectionExt for T where
    T: Display + Send + Sync + 'static, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]