ClientAssertionCredential Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- Source:
- ClientAssertionCredential.cs
- Source:
- ClientAssertionCredential.cs
Protected constructor for mocking.
protected ClientAssertionCredential ();
Protected Sub New ()
Applies to
Azure SDK for .NET Preview e Azure SDK for .NET Latest
Prodotto | Versioni |
---|---|
Azure SDK for .NET | Latest, Preview |
- 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.
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);
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
Azure SDK for .NET Preview e Azure SDK for .NET Latest
Prodotto | Versioni |
---|---|
Azure SDK for .NET | Latest, Preview |
Feedback su Azure SDK for .NET
Azure SDK for .NET è un progetto di open source. Selezionare un collegamento per fornire feedback: