Share via


ClientAssertionCredential Constructors

Definition

Overloads

ClientAssertionCredential()

Protected constructor for mocking.

ClientAssertionCredential(String, String, Func<String>, ClientAssertionCredentialOptions)

Creates an instance of the ClientAssertionCredential with a synchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.

ClientAssertionCredential(String, String, Func<CancellationToken,Task<String>>, ClientAssertionCredentialOptions)

Creates an instance of the ClientAssertionCredential with an asynchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.

ClientAssertionCredential()

Source:
ClientAssertionCredential.cs
Source:
ClientAssertionCredential.cs

Protected constructor for mocking.

protected ClientAssertionCredential ();
Protected Sub New ()

Applies to

ClientAssertionCredential(String, String, Func<String>, ClientAssertionCredentialOptions)

Source:
ClientAssertionCredential.cs
Source:
ClientAssertionCredential.cs

Creates an instance of the ClientAssertionCredential with a synchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.

public ClientAssertionCredential (string tenantId, string clientId, Func<string> assertionCallback, Azure.Identity.ClientAssertionCredentialOptions options = default);
new Azure.Identity.ClientAssertionCredential : string * string * Func<string> * Azure.Identity.ClientAssertionCredentialOptions -> Azure.Identity.ClientAssertionCredential
Public Sub New (tenantId As String, clientId As String, assertionCallback As Func(Of String), Optional options As ClientAssertionCredentialOptions = Nothing)

Parameters

tenantId
String

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

clientId
String

The client (application) ID of the service principal.

assertionCallback
Func<String>

A synchronous callback returning a valid client assertion used to authenticate the service principal.

options
ClientAssertionCredentialOptions

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

Applies to

ClientAssertionCredential(String, String, Func<CancellationToken,Task<String>>, ClientAssertionCredentialOptions)

Source:
ClientAssertionCredential.cs
Source:
ClientAssertionCredential.cs

Creates an instance of the ClientAssertionCredential with an asynchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.

public ClientAssertionCredential (string tenantId, string clientId, Func<System.Threading.CancellationToken,System.Threading.Tasks.Task<string>> assertionCallback, Azure.Identity.ClientAssertionCredentialOptions options = default);
new Azure.Identity.ClientAssertionCredential : string * string * Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<string>> * Azure.Identity.ClientAssertionCredentialOptions -> Azure.Identity.ClientAssertionCredential
Public Sub New (tenantId As String, clientId As String, assertionCallback As Func(Of CancellationToken, Task(Of String)), Optional options As ClientAssertionCredentialOptions = Nothing)

Parameters

tenantId
String

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

clientId
String

The client (application) ID of the service principal.

assertionCallback
Func<CancellationToken,Task<String>>

An asynchronous callback returning a valid client assertion used to authenticate the service principal.

options
ClientAssertionCredentialOptions

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

Applies to