pub enum Prompt {
None,
Login,
Consent,
SelectAccount,
}
Expand description
Authorization Server prompts.
The four possible values for the prompt parameter set in Options.
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
.
Trait Implementations§
impl Copy for Prompt
impl Eq for Prompt
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnwindSafe for Prompt
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.