#[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>
impl<RT: Eq + ResponseType> Eq for AuthenticationFlow<RT>
impl<RT: ResponseType> StructuralPartialEq for AuthenticationFlow<RT>
Auto Trait Implementations§
impl<RT> Freeze for AuthenticationFlow<RT>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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