UsernamePasswordCredential Constructors

Definition

Overloads

UsernamePasswordCredential()

Protected constructor for mocking

UsernamePasswordCredential(String, String, String, String)

Creates an instance of the UsernamePasswordCredential with the details needed to authenticate against Azure Active Directory with a simple username and password.

UsernamePasswordCredential(String, String, String, String, TokenCredentialOptions)

Creates an instance of the UsernamePasswordCredential with the details needed to authenticate against Azure Active Directory with a simple username and password.

UsernamePasswordCredential(String, String, String, String, UsernamePasswordCredentialOptions)

Creates an instance of the UsernamePasswordCredential with the details needed to authenticate against Azure Active Directory with a simple username and password.

UsernamePasswordCredential()

Protected constructor for mocking

protected UsernamePasswordCredential ();
Protected Sub New ()

Applies to

UsernamePasswordCredential(String, String, String, String)

Creates an instance of the UsernamePasswordCredential with the details needed to authenticate against Azure Active Directory with a simple username and password.

public UsernamePasswordCredential (string username, string password, string tenantId, string clientId);
new Azure.Identity.UsernamePasswordCredential : string * string * string * string -> Azure.Identity.UsernamePasswordCredential
Public Sub New (username As String, password As String, tenantId As String, clientId As String)

Parameters

username
String

The user account's username, also known as UPN.

password
String

The user account's password.

tenantId
String

The Azure Active Directory tenant (directory) ID or name.

clientId
String

The client (application) ID of an App Registration in the tenant.

Applies to

UsernamePasswordCredential(String, String, String, String, TokenCredentialOptions)

Creates an instance of the UsernamePasswordCredential with the details needed to authenticate against Azure Active Directory with a simple username and password.

public UsernamePasswordCredential (string username, string password, string tenantId, string clientId, Azure.Identity.TokenCredentialOptions options);
new Azure.Identity.UsernamePasswordCredential : string * string * string * string * Azure.Identity.TokenCredentialOptions -> Azure.Identity.UsernamePasswordCredential
Public Sub New (username As String, password As String, tenantId As String, clientId As String, options As TokenCredentialOptions)

Parameters

username
String

The user account's user name, UPN.

password
String

The user account's password.

tenantId
String

The Azure Active Directory tenant (directory) ID or name.

clientId
String

The client (application) ID of an App Registration in the tenant.

options
TokenCredentialOptions

The client options for the newly created UsernamePasswordCredential

Applies to

UsernamePasswordCredential(String, String, String, String, UsernamePasswordCredentialOptions)

Creates an instance of the UsernamePasswordCredential with the details needed to authenticate against Azure Active Directory with a simple username and password.

public UsernamePasswordCredential (string username, string password, string tenantId, string clientId, Azure.Identity.UsernamePasswordCredentialOptions options);
new Azure.Identity.UsernamePasswordCredential : string * string * string * string * Azure.Identity.UsernamePasswordCredentialOptions -> Azure.Identity.UsernamePasswordCredential
Public Sub New (username As String, password As String, tenantId As String, clientId As String, options As UsernamePasswordCredentialOptions)

Parameters

username
String

The user account's user name, UPN.

password
String

The user account's password.

tenantId
String

The Azure Active Directory tenant (directory) ID or name.

clientId
String

The client (application) ID of an App Registration in the tenant.

options
UsernamePasswordCredentialOptions

The client options for the newly created UsernamePasswordCredential

Applies to