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 ();

Applies to

Azure SDK for .NET Preview e Azure SDK for .NET Latest
Prodotto Versioni
Azure SDK for .NET Latest, Preview

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);

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

Azure SDK for .NET Preview e Azure SDK for .NET Latest
Prodotto Versioni
Azure SDK for .NET Latest, Preview

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);

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

Azure SDK for .NET Preview e Azure SDK for .NET Latest
Prodotto Versioni
Azure SDK for .NET Latest, Preview