PromptBehavior Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AcquireToken should automatically prompt only if necessary or whether it should prompt regardless of whether there is a cached token.
public enum PromptBehavior
type PromptBehavior =
Public Enum PromptBehavior
- Inheritance
-
PromptBehavior
Fields
Name | Value | Description |
---|---|---|
Auto | 0 | Acquire token will prompt the user for credentials only when necessary. If a token that meets the requirements is already cached then the user will not be prompted. |
Always | 1 | The user will be prompted for credentials even if there is a token that meets the requirements already in the cache. |
RefreshSession | 2 | Re-authorizes (through displaying webview) the resource usage, making sure that the resulting access token contains updated claims. If user logon cookies are available, the user will not be asked for credentials again and the logon dialog will dismiss automatically. |
SelectAccount | 3 | Prompt the user to select a user account even if there is a token that meets the requirements already in the cache. This enables an user who has multiple accounts at the Authorization Server to select amongst the multiple accounts that they might have current sessions for. |
Never | 4 | Never Prompt |