#[non_exhaustive]pub enum AuthenticationFlow<RT: ResponseType> {
AuthorizationCode,
Implicit(bool),
Hybrid(Vec<RT>),
}
Expand description
Authentication flow, which determines how the Authorization Server returns the OpenID Connect ID token and OAuth2 access token to the Relying Party.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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_type
s. See
Section 3 for
details.
Trait Implementations§
source§impl<RT: Clone + ResponseType> Clone for AuthenticationFlow<RT>
impl<RT: Clone + ResponseType> Clone for AuthenticationFlow<RT>
source§fn clone(&self) -> AuthenticationFlow<RT>
fn clone(&self) -> AuthenticationFlow<RT>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<RT: Debug + ResponseType> Debug for AuthenticationFlow<RT>
impl<RT: Debug + ResponseType> Debug for AuthenticationFlow<RT>
source§impl<RT: PartialEq + ResponseType> PartialEq for AuthenticationFlow<RT>
impl<RT: PartialEq + ResponseType> PartialEq for AuthenticationFlow<RT>
source§fn eq(&self, other: &AuthenticationFlow<RT>) -> bool
fn eq(&self, other: &AuthenticationFlow<RT>) -> bool
self
and other
values to be equal, and is used
by ==
.impl<RT: Eq + ResponseType> Eq for AuthenticationFlow<RT>
impl<RT: ResponseType> StructuralPartialEq for AuthenticationFlow<RT>
Auto Trait Implementations§
impl<RT> RefUnwindSafe for AuthenticationFlow<RT>where
RT: RefUnwindSafe,
impl<RT> Send for AuthenticationFlow<RT>where
RT: Send,
impl<RT> Sync for AuthenticationFlow<RT>where
RT: Sync,
impl<RT> Unpin for AuthenticationFlow<RT>where
RT: Unpin,
impl<RT> UnwindSafe for AuthenticationFlow<RT>where
RT: UnwindSafe,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.