Share via


ActiveDirectoryClientSettings Class

Definition

Settings for authentication with an Azure or Azure Stack service using Active Directory.

public sealed class ActiveDirectoryClientSettings
type ActiveDirectoryClientSettings = class
Public NotInheritable Class ActiveDirectoryClientSettings
Inheritance
ActiveDirectoryClientSettings

Constructors

ActiveDirectoryClientSettings()

Initializes default active directory dialog parameters.

ActiveDirectoryClientSettings(String, Uri)

Initializes active directory client settings with the application specific properties for client id and client redirect uri. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

Fields

EnableEbdMagicCookie

Query string allowing use of cookies in user login dialog

Properties

AdditionalQueryParameters

Additional query parameters sent with the AD request

ClientId

The active directory client id for this application.

ClientRedirectUri

The client redirect uri associated with this application.

OwnerWindow

Gets or sets owner window.

Methods

UseCacheCookiesOrPrompt(String, Uri)

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.

UseCacheOrCookiesOnly(String, Uri)

Returns active directory cient settings that suppress user credential prompts. Authentication will succeed if and only if previous authentication results are cached in the TokenCache or client cookies.

UsePromptOnly(String, Uri)

Ignore authentication cookies or cached tokens and force the user to enter valid credentials. Authentication will succeed if and only if the user enters valid credentials.

Applies to