語言

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
實作

建構函式

名稱 Description
MsalAppCredentials(IConfidentialClientApplication, String, String, String, Boolean, ILogger)

初始化 MsalAppCredentials 類別的新執行個體。

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

初始化 MsalAppCredentials 類別的新執行個體。

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

初始化 MsalAppCredentials 類別的新執行個體。

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

初始化 MsalAppCredentials 類別的新執行個體。

欄位

名稱 Description
Empty

一組空的認證。

屬性

名稱 Description
AuthTenant

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

(繼承來源 AppCredentials)
ChannelAuthTenant

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

(繼承來源 AppCredentials)
CustomHttpClient

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

(繼承來源 AppCredentials)
DefaultChannelAuthTenant

取得 DefaultChannelAuthTenant。

(繼承來源 AppCredentials)
Logger

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

(繼承來源 AppCredentials)
MicrosoftAppId

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

(繼承來源 AppCredentials)
OAuthEndpoint

取得要使用的 OAuth 端點。

(繼承來源 AppCredentials)
OAuthScope

取得要使用的 OAuth 範圍。

(繼承來源 AppCredentials)
ToChannelFromBotLoginUrlTemplate

取得 ToChannelFromBotLoginUrlTemplate。

(繼承來源 AppCredentials)
ToChannelFromBotOAuthScope

取得 ToChannelFromBotoAuthScope。

(繼承來源 AppCredentials)
ValidateAuthority

取得值,指出是否要驗證授權單位。

(繼承來源 AppCredentials)

方法

名稱 Description
BuildIAuthenticator()

會建立 lazy IAuthenticator 來用來取得代幣。

GetTokenAsync(Boolean)

取得 OAuth 存取令牌。

(繼承來源 AppCredentials)
ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

將認證套用至 HTTP 要求。

(繼承來源 AppCredentials)

明確介面實作

名稱 Description
IAuthenticator.GetTokenAsync(Boolean)

一個實作 IAuthenticator的認證類別,用於取得發送訊息到通道的憑證。

適用於