Language

ManagedIdentityClientAssertion.GetSignedAssertionWithBindingAsync Method

Definition

Acquires a managed identity token bound to a binding certificate via mTLS PoP, returning both the assertion and the binding certificate so MSAL can pin the outer confidential client request to the same certificate (FIC + mTLS PoP, two-leg flow).

public override System.Threading.Tasks.Task<Microsoft.Identity.Client.ClientSignedAssertion?> GetSignedAssertionWithBindingAsync(Microsoft.Identity.Client.AssertionRequestOptions? assertionRequestOptions, System.Threading.CancellationToken cancellationToken = default);
override this.GetSignedAssertionWithBindingAsync : Microsoft.Identity.Client.AssertionRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.ClientSignedAssertion>
Public Overrides Function GetSignedAssertionWithBindingAsync (assertionRequestOptions As AssertionRequestOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientSignedAssertion)

Parameters

assertionRequestOptions
AssertionRequestOptions
cancellationToken
CancellationToken

Returns

Remarks

Used when the consuming confidential client has token binding enabled (e.g., AuthorizationHeaderProviderOptions.ProtocolScheme = "MTLS_POP"). Requires MSAL.NET key-attestation support and an Azure VM / Arc-hosted managed identity capable of returning a BindingCertificate.

Applies to