[][src]Enum openidconnect::core::CoreResponseMode

pub enum CoreResponseMode {
    Query,
    Fragment,
    FormPost,
}

OpenID Connect Core response mode.

Informs the Authorization Server of the mechanism to be used for returning Authorization Response parameters from the Authorization Endpoint.

The default Response Mode for the OAuth 2.0 code Response Type is the query encoding. The default Response Mode for the OAuth 2.0 token Response Type is the fragment encoding. These values are defined in OAuth 2.0 Multiple Response Type Encoding Practices and OAuth 2.0 Form Post Response Mode.

Variants

Query

In this mode, Authorization Response parameters are encoded in the query string added to the redirect_uri when redirecting back to the Client.

Fragment

In this mode, Authorization Response parameters are encoded in the fragment added to the redirect_uri when redirecting back to the Client.

FormPost

In this mode, Authorization Response parameters are encoded as HTML form values that are auto-submitted in the User Agent, and thus are transmitted via the HTTP POST method to the Client, with the result parameters being encoded in the body using the application/x-www-form-urlencoded format. The action attribute of the form MUST be the Client's Redirection URI. The method of the form attribute MUST be POST. Because the Authorization Response is intended to be used only once, the Authorization Server MUST instruct the User Agent (and any intermediaries) not to store or reuse the content of the response.

Any technique supported by the User Agent MAY be used to cause the submission of the form, and any form content necessary to support this MAY be included, such as submit controls and client-side scripting commands. However, the Client MUST be able to process the message without regard for the mechanism by which the form submission was initiated.

See OAuth 2.0 Form Post Response Mode for further information.

Trait Implementations

impl ResponseMode for CoreResponseMode[src]

impl Clone for CoreResponseMode[src]

impl PartialEq<CoreResponseMode> for CoreResponseMode[src]

impl Debug for CoreResponseMode[src]

impl Serialize for CoreResponseMode[src]

impl<'de> Deserialize<'de> for CoreResponseMode[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