[][src]Enum openidconnect::AuthenticationFlow

pub enum AuthenticationFlow<RT: ResponseType> {
    AuthorizationCode,
    Implicit(bool),
    Hybrid(Vec<RT>),
}

Authentication flow, which determines how the Authorization Server returns the OpenID Connect ID token and OAuth2 access token to the Relying Party.

Variants

AuthorizationCode

Authorization Code Flow.

The authorization server will return an OAuth2 authorization code. Clients must subsequently call Client::exchange_code() with the authorization code in order to retrieve an OpenID Connect ID token and OAuth2 access token.

Implicit(bool)

Implicit Flow.

Boolean value indicates whether an OAuth2 access token should also be returned. If true, the Authorization Server will return both an OAuth2 access token and OpenID Connect ID token. If false, it will return only an OpenID Connect ID token.

Hybrid(Vec<RT>)

Hybrid Flow.

A hybrid flow according to OAuth 2.0 Multiple Response Type Encoding Practices. The enum value contains the desired response_types. See Section 3 for details.

Trait Implementations

impl<RT: Clone + ResponseType> Clone for AuthenticationFlow<RT>[src]

impl<RT: PartialEq + ResponseType> PartialEq<AuthenticationFlow<RT>> for AuthenticationFlow<RT>[src]

impl<RT: Debug + ResponseType> Debug for AuthenticationFlow<RT>[src]

Auto Trait Implementations

impl<RT> Unpin for AuthenticationFlow<RT> where
    RT: Unpin

impl<RT> Sync for AuthenticationFlow<RT> where
    RT: Sync

impl<RT> Send for AuthenticationFlow<RT> where
    RT: Send

impl<RT> UnwindSafe for AuthenticationFlow<RT> where
    RT: UnwindSafe

impl<RT> RefUnwindSafe for AuthenticationFlow<RT> where
    RT: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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