ManagedIdentityAppCredentials(String, String, HttpClient, ILogger) 构造函数

定义

初始化 ManagedIdentityAppCredentials 类的新实例。 AAD 凭据身份验证和缓存的托管标识。

public ManagedIdentityAppCredentials (string appId, string oAuthScope, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.ManagedIdentityAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.ManagedIdentityAppCredentials
Public Sub New (appId As String, oAuthScope As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

参数

appId
String

分配给机器人的托管标识的客户端 ID。

oAuthScope
String

令牌的范围。

customHttpClient
HttpClient

获取令牌时要使用的可选 HttpClient

logger
ILogger

可选 ILogger,用于在获取和管理凭据时收集遥测数据。

适用于