pub enum CoreAuthPrompt {
None,
Login,
Consent,
SelectAccount,
Extension(String),
}
Expand description
Whether the Authorization Server should prompt the End-User for re-authentication and consent.
These values are defined in Section 3.1.2.1.
Variants§
None
The Authorization Server MUST NOT display any authentication or consent user interface
pages. An error is returned if an End-User is not already authenticated or the Client
does not have pre-configured consent for the requested Claims or does not fulfill other
conditions for processing the request. The error code will typically be
login_required,
interaction_required
, or another code defined in
Section 3.1.2.6.
This can be used as a method to check for existing authentication and/or consent.
Login
The Authorization Server SHOULD prompt the End-User for reauthentication. If it cannot
reauthenticate the End-User, it MUST return an error, typically login_required
.
Consent
The Authorization Server SHOULD prompt the End-User for consent before returning
information to the Client. If it cannot obtain consent, it MUST return an error,
typically consent_required
.
SelectAccount
The Authorization Server SHOULD prompt the End-User to select a user account. This
enables an End-User who has multiple accounts at the Authorization Server to select
amongst the multiple accounts that they might have current sessions for. If it cannot
obtain an account selection choice made by the End-User, it MUST return an error,
typically account_selection_required
.
Extension(String)
An extension not defined by the OpenID Connect Core spec.
Trait Implementations§
Source§impl AsRef<str> for CoreAuthPrompt
impl AsRef<str> for CoreAuthPrompt
Source§impl Clone for CoreAuthPrompt
impl Clone for CoreAuthPrompt
Source§fn clone(&self) -> CoreAuthPrompt
fn clone(&self) -> CoreAuthPrompt
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 CoreAuthPrompt
impl Debug for CoreAuthPrompt
Source§impl<'de> Deserialize<'de> for CoreAuthPrompt
impl<'de> Deserialize<'de> for CoreAuthPrompt
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 Display for CoreAuthPrompt
impl Display for CoreAuthPrompt
Source§impl Hash for CoreAuthPrompt
impl Hash for CoreAuthPrompt
Source§impl PartialEq for CoreAuthPrompt
impl PartialEq for CoreAuthPrompt
Source§impl Serialize for CoreAuthPrompt
impl Serialize for CoreAuthPrompt
impl AuthPrompt for CoreAuthPrompt
impl Eq for CoreAuthPrompt
impl StructuralPartialEq for CoreAuthPrompt
Auto Trait Implementations§
impl Freeze for CoreAuthPrompt
impl RefUnwindSafe for CoreAuthPrompt
impl Send for CoreAuthPrompt
impl Sync for CoreAuthPrompt
impl Unpin for CoreAuthPrompt
impl UnwindSafe for CoreAuthPrompt
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