AgenticAuthenticationService class

Service de gestion de l’authentification utilisateur agentique.

Méthodes

GetAgenticUserToken(Authorization, string, TurnContext)

Obtient un jeton utilisateur agentique pour l’authentification de la plateforme. Utilise l’étendue d’authentification de la plateforme MCP par défaut.

GetAgenticUserToken(Authorization, string, TurnContext, string[])

Obtient un jeton utilisateur agentique pour l’authentification de la plateforme.

Détails de la méthode

GetAgenticUserToken(Authorization, string, TurnContext)

Avertissement

Cette API est à présent déconseillée.

Use the overload with explicit scopes parameter for better control over requested permissions.

Obtient un jeton utilisateur agentique pour l’authentification de la plateforme. Utilise l’étendue d’authentification de la plateforme MCP par défaut.

static function GetAgenticUserToken(authorization: Authorization, authHandlerName: string, turnContext: TurnContext): Promise<string>

Paramètres

authorization
Authorization

Gestionnaire d’autorisation.

authHandlerName

string

Nom du gestionnaire d’authentification à utiliser.

turnContext
TurnContext

Contexte de tour de la requête actuelle.

Retours

Promise<string>

Chaîne de jeton ou chaîne vide si aucun jeton n’a été retourné.

GetAgenticUserToken(Authorization, string, TurnContext, string[])

Obtient un jeton utilisateur agentique pour l’authentification de la plateforme.

static function GetAgenticUserToken(authorization: Authorization, authHandlerName: string, turnContext: TurnContext, scopes: string[]): Promise<string>

Paramètres

authorization
Authorization

Gestionnaire d’autorisation.

authHandlerName

string

Nom du gestionnaire d’authentification à utiliser.

turnContext
TurnContext

Contexte de tour de la requête actuelle.

scopes

string[]

Étendues OAuth à demander. Doit être obtenu à partir de la configuration appropriée (par exemple, ToolingConfiguration.mcpPlatformAuthenticationScope).

Retours

Promise<string>

Chaîne de jeton ou chaîne vide si aucun jeton n’a été retourné.