MsalAppCredentials 类

定义

实现 的 IAuthenticator身份验证类,用于获取传出消息到通道的令牌。

public class MsalAppCredentials : Microsoft.Bot.Connector.Authentication.AppCredentials, Microsoft.Bot.Connector.Authentication.IAuthenticator
type MsalAppCredentials = class
    inherit AppCredentials
    interface IAuthenticator
Public Class MsalAppCredentials
Inherits AppCredentials
Implements IAuthenticator
继承
Microsoft.Rest.ServiceClientCredentials
MsalAppCredentials
实现

构造函数

MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger)

初始化 MsalAppCredentials 类的新实例。

MsalAppCredentials(String, String, String, String, Boolean, ILogger)

初始化 MsalAppCredentials 类的新实例。

MsalAppCredentials(String, X509Certificate2, String, String, Boolean, ILogger)

初始化 MsalAppCredentials 类的新实例。

字段

Empty

一组空的凭据。

属性

AuthTenant

获取或设置此凭据的通道身份验证令牌租户。

(继承自 AppCredentials)
ChannelAuthTenant

获取或设置用于通道身份验证的租户。

(继承自 AppCredentials)
CustomHttpClient

获取或设置此凭据的通道身份验证令牌租户。

(继承自 AppCredentials)
Logger

获取或设置此凭据的通道身份验证令牌租户。

(继承自 AppCredentials)
MicrosoftAppId

获取或设置此凭据的 Microsoft 应用 ID。

(继承自 AppCredentials)
OAuthEndpoint

获取要使用的 OAuth 终结点。

(继承自 AppCredentials)
OAuthScope

获取要使用的 OAuth 范围。

(继承自 AppCredentials)
ValidateAuthority

获取一个值,该值指示是否验证颁发机构。

(继承自 AppCredentials)

方法

BuildAuthenticator()

生成用于获取令牌的延迟 AdalAuthenticator

BuildIAuthenticator()

生成用于获取令牌的延迟 IAuthenticator

GetTokenAsync(Boolean)

获取 OAuth 访问令牌。

(继承自 AppCredentials)
ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

将凭据应用于 HTTP 请求。

(继承自 AppCredentials)

显式接口实现

IAuthenticator.GetTokenAsync(Boolean)

实现 的 IAuthenticator身份验证类,用于获取传出消息到通道的令牌。

适用于