ManagedIdentityApplication.GetManagedIdentityCapabilitiesAsync Method
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.
Detects the managed identity source available on the host and the strongest mTLS
binding the host can produce. Useful for credential chains (such as
DefaultAzureCredential) to decide whether managed identity is available and
what binding strength to expect.
public System.Threading.Tasks.Task<Microsoft.Identity.Client.ManagedIdentity.ManagedIdentityCapabilities> GetManagedIdentityCapabilitiesAsync(System.Threading.CancellationToken cancellationToken);
member this.GetManagedIdentityCapabilitiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.ManagedIdentity.ManagedIdentityCapabilities>
Public Function GetManagedIdentityCapabilitiesAsync (cancellationToken As CancellationToken) As Task(Of ManagedIdentityCapabilities)
Parameters
- cancellationToken
- CancellationToken
A cancellation token to observe while waiting for the detection to complete.
Returns
A ManagedIdentityCapabilities describing the detected source and host capabilities.
Remarks
On hosts capable of key binding, detecting the strongest available strength may provision (and persist) a binding key as a side effect, pre-warming the cache reused by a subsequent token request. The key provider is created once per process and its key is cached.