PromptBehavior Enumeration
Applies to: Version: 2.19.208020213, Platform: .NET Desktop.
Indicates whether AcquireToken should automatically prompt only if necessary or whether it should prompt regardless of whether there is a cached token.
Namespace: Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly: Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)
Syntax
public enum PromptBehavior
Members
Member name | Description | |
---|---|---|
Always | The user will be prompted for credentials even if there is a token that meets the requirements already in the cache. |
|
Auto | 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. |
|
Never | The user will not be prompted for credentials. If prompting is necessary then the AcquireToken request will fail. |
|
RefreshSession | 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. |
See Also
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace
Return to top