Enum openid::error::OAuth2ErrorCode[][src]

pub enum OAuth2ErrorCode {
    InvalidRequest,
    InvalidClient,
    InvalidGrant,
    UnauthorizedClient,
    UnsupportedGrantType,
    InvalidScope,
    Unrecognized(String),
}

OAuth 2.0 error codes.

See RFC 6749, section 5.2.

Variants

InvalidRequest

The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.

InvalidClient

Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).

InvalidGrant

The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

UnauthorizedClient

The authenticated client is not authorized to use this authorization grant type.

UnsupportedGrantType

The authorization grant type is not supported by the authorization server.

InvalidScope

The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.

Unrecognized(String)

An unrecognized error code, not defined in RFC 6749.

Trait Implementations

impl Clone for OAuth2ErrorCode[src]

impl Debug for OAuth2ErrorCode[src]

impl<'de> Deserialize<'de> for OAuth2ErrorCode[src]

impl Eq for OAuth2ErrorCode[src]

impl<'a> From<&'a str> for OAuth2ErrorCode[src]

impl PartialEq<OAuth2ErrorCode> for OAuth2ErrorCode[src]

impl StructuralEq for OAuth2ErrorCode[src]

impl StructuralPartialEq for OAuth2ErrorCode[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.