ClientAssertionCredential Constructors
Definition
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.
Overloads
ClientAssertionCredential() |
Protected constructor for mocking. |
ClientAssertionCredential(String, String, Func<String>, ClientAssertionCredentialOptions) |
Creates an instance of the ClientCertificateCredential 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 ClientCertificateCredential 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 ClientCertificateCredential 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
ClientAssertionCredential(String, String, Func<CancellationToken,Task<String>>, ClientAssertionCredentialOptions)
- Source:
- ClientAssertionCredential.cs
- Source:
- ClientAssertionCredential.cs
Creates an instance of the ClientCertificateCredential 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應