ActiveDirectoryClientSettings.UseCacheCookiesOrPrompt(String, Uri) Method
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.
Returns active directory client settings that prompt the user for credentials only when no matching cookies or cached tokens are found. Authentication will succeed if valid cookies or cached tokens are found, or, if no valid tokens are found, the user enters valid active directory user credentials.
public static Microsoft.Rest.Azure.Authentication.ActiveDirectoryClientSettings UseCacheCookiesOrPrompt (string clientId, Uri clientRedirectUri);
static member UseCacheCookiesOrPrompt : string * Uri -> Microsoft.Rest.Azure.Authentication.ActiveDirectoryClientSettings
Public Shared Function UseCacheCookiesOrPrompt (clientId As String, clientRedirectUri As Uri) As ActiveDirectoryClientSettings
Parameters
- clientId
- String
The client Id associated with this active directory application.
- clientRedirectUri
- Uri
The client redirect Uri associated with this active directory application.
Returns
Settings that prefer cached tokens or cookies over user prompting.
Applies to
Azure SDK for .NET