MicrosoftAppCredentials 类

定义

MicrosoftAppCredentials 身份验证实现和缓存。

public class MicrosoftAppCredentials : Microsoft.Bot.Connector.Authentication.AppCredentials
type MicrosoftAppCredentials = class
    inherit AppCredentials
Public Class MicrosoftAppCredentials
Inherits AppCredentials
继承
Microsoft.Rest.ServiceClientCredentials
MicrosoftAppCredentials
派生

构造函数

MicrosoftAppCredentials(String, String)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, HttpClient)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, HttpClient, ILogger)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, String, HttpClient)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String, String, String, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 类的新实例。

字段

Empty

一组空凭据。

MicrosoftAppIdKey

Microsoft 应用 ID 的配置属性。

MicrosoftAppPasswordKey

Microsoft 应用密码的配置属性。

MicrosoftAppTenantIdKey

Azure AD 租户的租户 ID 的配置属性。

MicrosoftAppTypeKey

机器人的应用类型的配置属性 - MultiTenant、SingleTenant 或 MSI。

属性

AuthTenant

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

(继承自 AppCredentials)
ChannelAuthTenant

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

(继承自 AppCredentials)
CustomHttpClient

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

(继承自 AppCredentials)
Logger

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

(继承自 AppCredentials)
MicrosoftAppId

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

(继承自 AppCredentials)
MicrosoftAppPassword

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

OAuthEndpoint

获取要使用的 OAuth 终结点。

(继承自 AppCredentials)
OAuthScope

获取要使用的 OAuth 范围。

(继承自 AppCredentials)
ValidateAuthority

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

(继承自 AppCredentials)

方法

BuildAuthenticator()

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

BuildIAuthenticator()

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

(继承自 AppCredentials)
GetTokenAsync(Boolean)

获取 OAuth 访问令牌。

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

将凭据应用于 HTTP 请求。

(继承自 AppCredentials)

适用于