pub enum Prompt {
None,
Login,
Consent,
SelectAccount,
AttemptNone,
}
Expand description
Indicates the type of user interaction that is required. Valid values are login, none, consent, and select_account.
- prompt=login forces the user to enter their credentials on that request, negating single-sign on.
- prompt=none is the opposite. It ensures that the user isn’t presented with any interactive prompt. If the request can’t be completed silently by using single-sign on, the Microsoft identity platform returns an interaction_required error.
- prompt=consent triggers the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app.
- prompt=select_account interrupts single sign-on providing account selection experience listing all the accounts either in session or any remembered account or an option to choose to use a different account altogether.
Variants§
None
Login
The user will be prompted for credentials by the service.
Consent
The user will be prompted to consent even if consent was granted before.
SelectAccount
The user will be prompted with a list of accounts from which one can be selected for authentication.
AttemptNone
Use only for federated users. Provides same functionality as prompt=none for managed users.
Trait Implementations§
Source§impl IntoIterator for Prompt
impl IntoIterator for Prompt
Source§impl Ord for Prompt
impl Ord for Prompt
Source§impl PartialOrd for Prompt
impl PartialOrd 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
Mutably borrows from an owned value. Read more