語言

MicrosoftGovernmentAppCredentials 類別

定義

MicrosoftGovernmentAppCredentials 驗證實作。

public class MicrosoftGovernmentAppCredentials : Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials
type MicrosoftGovernmentAppCredentials = class
    inherit MicrosoftAppCredentials
Public Class MicrosoftGovernmentAppCredentials
Inherits MicrosoftAppCredentials
繼承
Microsoft.Rest.ServiceClientCredentials
MicrosoftGovernmentAppCredentials

建構函式

名稱 Description
MicrosoftGovernmentAppCredentials(String, String, HttpClient, ILogger, String)

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

MicrosoftGovernmentAppCredentials(String, String, String, HttpClient, ILogger, String)

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

欄位

名稱 Description
Empty

一組空的認證。

MicrosoftAppIdKey

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

(繼承來源 MicrosoftAppCredentials)
MicrosoftAppPasswordKey

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

(繼承來源 MicrosoftAppCredentials)
MicrosoftAppTenantIdKey

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

(繼承來源 MicrosoftAppCredentials)
MicrosoftAppTypeKey

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

(繼承來源 MicrosoftAppCredentials)

屬性

名稱 Description
AuthTenant

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

(繼承來源 AppCredentials)
ChannelAuthTenant

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

(繼承來源 AppCredentials)
CustomHttpClient

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

(繼承來源 AppCredentials)
DefaultChannelAuthTenant

取得 DefaultChannelAuthTenant。

Logger

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

(繼承來源 AppCredentials)
MicrosoftAppId

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

(繼承來源 AppCredentials)
MicrosoftAppPassword

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

(繼承來源 MicrosoftAppCredentials)
OAuthEndpoint

取得要使用的 OAuth 端點。

(繼承來源 AppCredentials)
OAuthScope

取得要使用的 OAuth 範圍。

(繼承來源 AppCredentials)
ToChannelFromBotLoginUrlTemplate

取得 ToChannelFromBotLoginUrlTemplate。

ToChannelFromBotOAuthScope

取得 ToChannelFromBotoAuthScope。

ValidateAuthority

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

(繼承來源 AppCredentials)

方法

名稱 Description
BuildIAuthenticator()

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

(繼承來源 MicrosoftAppCredentials)
GetTokenAsync(Boolean)

取得 OAuth 存取令牌。

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

將認證套用至 HTTP 要求。

(繼承來源 AppCredentials)

適用於