pub enum CoreResponseMode {
Query,
Fragment,
FormPost,
Extension(String),
}
Expand description
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.
Extension(String)
An extension not defined by any of the supported specifications.
Trait Implementations§
Source§impl AsRef<str> for CoreResponseMode
impl AsRef<str> for CoreResponseMode
Source§impl Clone for CoreResponseMode
impl Clone for CoreResponseMode
Source§fn clone(&self) -> CoreResponseMode
fn clone(&self) -> CoreResponseMode
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CoreResponseMode
impl Debug for CoreResponseMode
Source§impl<'de> Deserialize<'de> for CoreResponseMode
impl<'de> Deserialize<'de> for CoreResponseMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Hash for CoreResponseMode
impl Hash for CoreResponseMode
Source§impl PartialEq for CoreResponseMode
impl PartialEq for CoreResponseMode
Source§impl Serialize for CoreResponseMode
impl Serialize for CoreResponseMode
impl Eq for CoreResponseMode
impl ResponseMode for CoreResponseMode
impl StructuralPartialEq for CoreResponseMode
Auto Trait Implementations§
impl Freeze for CoreResponseMode
impl RefUnwindSafe for CoreResponseMode
impl Send for CoreResponseMode
impl Sync for CoreResponseMode
impl Unpin for CoreResponseMode
impl UnwindSafe for CoreResponseMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more