MsalAppCredentials 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一个实现 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
- 继承
- 实现
构造函数
字段
| 名称 | 说明 |
|---|---|
| Empty |
一组空的凭据。 |
属性
| 名称 | 说明 |
|---|---|
| AuthTenant |
获取或设置此凭据的通道身份验证令牌租户。 (继承自 AppCredentials) |
| ChannelAuthTenant |
获取或设置要用于通道身份验证的租户。 (继承自 AppCredentials) |
| CustomHttpClient |
获取或设置此凭据的通道身份验证令牌租户。 (继承自 AppCredentials) |
| DefaultChannelAuthTenant |
获取 DefaultChannelAuthTenant。 (继承自 AppCredentials) |
| Logger |
获取或设置此凭据的通道身份验证令牌租户。 (继承自 AppCredentials) |
| MicrosoftAppId |
获取或设置此凭据Microsoft应用 ID。 (继承自 AppCredentials) |
| OAuthEndpoint |
获取要使用的 OAuth 终结点。 (继承自 AppCredentials) |
| OAuthScope |
获取要使用的 OAuth 范围。 (继承自 AppCredentials) |
| ToChannelFromBotLoginUrlTemplate |
获取 ToChannelFromBotLoginUrlTemplate。 (继承自 AppCredentials) |
| ToChannelFromBotOAuthScope |
获取 ToChannelFromBotoAuthScope。 (继承自 AppCredentials) |
| ValidateAuthority |
获取一个值,该值指示是否验证颁发机构。 (继承自 AppCredentials) |
方法
| 名称 | 说明 |
|---|---|
| BuildIAuthenticator() |
它构建了懒惰 IAuthenticator 的资源,用来获取代币。 |
| GetTokenAsync(Boolean) |
获取 OAuth 访问令牌。 (继承自 AppCredentials) |
| ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken) |
将凭据应用于 HTTP 请求。 (继承自 AppCredentials) |
显式接口实现
| 名称 | 说明 |
|---|---|
| IAuthenticator.GetTokenAsync(Boolean) |
一个实现 IAuthenticator的认证类,用于获取向信道发送消息的令牌。 |