Lingua

MsalAuth.GetAgenticApplicationTokenAsync Method

Definition

Acquires the agentic application (blueprint) token for the specified agent application instance. This is a token-exchange-scoped token bound to the agent instance via federated managed identity, and forms the root of the agentic identity chain.

public System.Threading.Tasks.Task<string> GetAgenticApplicationTokenAsync(string tenantId, string agentAppInstanceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAgenticApplicationTokenAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetAgenticApplicationTokenAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetAgenticApplicationTokenAsync (tenantId As String, agentAppInstanceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

tenantId
String

The Entra tenant id the agent identity belongs to.

agentAppInstanceId
String

The agent application instance id (the client id of the agent identity / FMI path).

cancellationToken
CancellationToken

A token to cancel the asynchronous operation.

Returns

A task that resolves to the application-level access token.

Implements

Applies to