語言

AppCredentials 類別

定義

用於驗證和快取之 AAD 認證的基底抽象概念。

public abstract class AppCredentials : Microsoft.Rest.ServiceClientCredentials
type AppCredentials = class
    inherit ServiceClientCredentials
Public MustInherit Class AppCredentials
Inherits ServiceClientCredentials
繼承
Microsoft.Rest.ServiceClientCredentials
AppCredentials
衍生

建構函式

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

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

AppCredentials(String, HttpClient, ILogger)

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

屬性

名稱 Description
AuthTenant

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

ChannelAuthTenant

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

CustomHttpClient

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

DefaultChannelAuthTenant

取得 DefaultChannelAuthTenant。

Logger

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

MicrosoftAppId

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

OAuthEndpoint

取得要使用的 OAuth 端點。

OAuthScope

取得要使用的 OAuth 範圍。

ToChannelFromBotLoginUrlTemplate

取得 ToChannelFromBotLoginUrlTemplate。

ToChannelFromBotOAuthScope

取得 ToChannelFromBotoAuthScope。

ValidateAuthority

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

方法

名稱 Description
BuildIAuthenticator()

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

GetTokenAsync(Boolean)

取得 OAuth 存取令牌。

IsTrustedServiceUrl(String)
已淘汰.

檢查服務 URL 是否為受信任的主機。

ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

將認證套用至 HTTP 要求。

TrustServiceUrl(String, DateTime)
已淘汰.

將服務主機的網址 MicrosoftAppCredentials 加入受信任的主機。

TrustServiceUrl(String)
已淘汰.

將服務主機的網址 MicrosoftAppCredentials 加入受信任的主機。

適用於