[][src]Enum openidconnect::core::CoreResponseType

pub enum CoreResponseType {
    Code,
    IdToken,
    None,
    Token,
}

OpenID Connect Core response type.

Informs the Authorization Server of the desired authorization processing flow, including what parameters are returned from the endpoints used.

This type represents a single Response Type. Multiple Response Types are represented via the ResponseTypes type, which wraps a Vec<ResponseType>.

Variants

Code

Used by the OAuth 2.0 Authorization Code Flow.

IdToken

When supplied as the response_type parameter in an OAuth 2.0 Authorization Request, a successful response MUST include the parameter id_token.

None

When supplied as the response_type parameter in an OAuth 2.0 Authorization Request, the Authorization Server SHOULD NOT return an OAuth 2.0 Authorization Code, Access Token, Access Token Type, or ID Token in a successful response to the grant request. If a redirect_uri is supplied, the User Agent SHOULD be redirected there after granting or denying access. The request MAY include a state parameter, and if so, the Authorization Server MUST echo its value as a response parameter when issuing either a successful response or an error response. The default Response Mode for this Response Type is the query encoding. Both successful and error responses SHOULD be returned using the supplied Response Mode, or if none is supplied, using the default Response Mode.

This Response Type is not generally used with OpenID Connect but may be supported by the Authorization Server.

Token

Used by the OAuth 2.0 Implicit Flow.

Trait Implementations

impl ResponseType for CoreResponseType[src]

impl AsRef<str> for CoreResponseType[src]

impl Clone for CoreResponseType[src]

impl PartialEq<CoreResponseType> for CoreResponseType[src]

impl Debug for CoreResponseType[src]

impl Serialize for CoreResponseType[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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