共用方式為


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, HttpClient, ILogger, String)

初始化 MicrosoftAppCredentials 類別的新實例。

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

初始化 MicrosoftAppCredentials 類別的新實例。

欄位

Empty

一組空的認證。

MicrosoftAppIdKey

Microsoft應用程式標識碼的組態屬性。

MicrosoftAppPasswordKey

Microsoft應用程式 Password 的組態屬性。

MicrosoftAppTenantIdKey

Azure AD 租使用者的租用戶標識碼組態屬性。

MicrosoftAppTypeKey

Bot 應用程式類型的組態屬性 -- MultiTenant、SingleTenant 或 MSI。

屬性

AuthTenant

取得或設定此認證的通道驗證令牌租使用者。

(繼承來源 AppCredentials)
ChannelAuthTenant

取得或設定要用於通道驗證的租使用者。

(繼承來源 AppCredentials)
CustomHttpClient

取得或設定此認證的通道驗證令牌租使用者。

(繼承來源 AppCredentials)
DefaultChannelAuthTenant

取得 DefaultChannelAuthTenant。

(繼承來源 AppCredentials)
Logger

取得或設定此認證的通道驗證令牌租使用者。

(繼承來源 AppCredentials)
MicrosoftAppId

取得或設定此認證Microsoft應用程式標識碼。

(繼承來源 AppCredentials)
MicrosoftAppPassword

取得或設定此認證Microsoft應用程式密碼。

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)

適用於