ClientSecretCredential Constructors

Definition

Overloads

ClientSecretCredential()

Protected constructor for mocking.

ClientSecretCredential(String, String, String)

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

ClientSecretCredential(String, String, String, ClientSecretCredentialOptions)

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

ClientSecretCredential(String, String, String, TokenCredentialOptions)

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

ClientSecretCredential()

Source:
ClientSecretCredential.cs
Source:
ClientSecretCredential.cs

Protected constructor for mocking.

protected ClientSecretCredential ();
Protected Sub New ()

Applies to

ClientSecretCredential(String, String, String)

Source:
ClientSecretCredential.cs
Source:
ClientSecretCredential.cs

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

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

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientSecret
String

A client secret that was generated for the App Registration used to authenticate the client.

Applies to

ClientSecretCredential(String, String, String, ClientSecretCredentialOptions)

Source:
ClientSecretCredential.cs
Source:
ClientSecretCredential.cs

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

public ClientSecretCredential (string tenantId, string clientId, string clientSecret, Azure.Identity.ClientSecretCredentialOptions options);
new Azure.Identity.ClientSecretCredential : string * string * string * Azure.Identity.ClientSecretCredentialOptions -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, options As ClientSecretCredentialOptions)

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientSecret
String

A client secret that was generated for the App Registration used to authenticate the client.

options
ClientSecretCredentialOptions

Options that allow to configure the management of the requests sent to the Microsoft Entra ID.

Applies to

ClientSecretCredential(String, String, String, TokenCredentialOptions)

Source:
ClientSecretCredential.cs
Source:
ClientSecretCredential.cs

Creates an instance of the ClientSecretCredential with the details needed to authenticate against Microsoft Entra ID with a client secret.

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

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientSecret
String

A client secret that was generated for the App Registration used to authenticate the client.

options
TokenCredentialOptions

Options that allow to configure the management of the requests sent to Microsoft Entra ID.

Applies to