共用方式為


AppCredentials 類別

定義

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

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

建構函式

AppCredentials(String, HttpClient, ILogger)

初始化 AppCredentials 類別的新實例。

AppCredentials(String, HttpClient, ILogger, String)

初始化 AppCredentials 類別的新實例。

屬性

AuthTenant

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

ChannelAuthTenant

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

CustomHttpClient

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

DefaultChannelAuthTenant

取得 DefaultChannelAuthTenant。

Logger

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

MicrosoftAppId

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

OAuthEndpoint

取得要使用的 OAuth 端點。

OAuthScope

取得要使用的 OAuth 範圍。

ToChannelFromBotLoginUrlTemplate

取得 ToChannelFromBotLoginUrlTemplate。

ToChannelFromBotOAuthScope

取得 ToChannelFromBotoAuthScope。

ValidateAuthority

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

方法

BuildIAuthenticator()

建置要用於取得令牌的延遲 IAuthenticator

GetTokenAsync(Boolean)

取得 OAuth 存取令牌。

IsTrustedServiceUrl(String)
已淘汰.

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

ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

將認證套用至 HTTP 要求。

TrustServiceUrl(String)
已淘汰.

將服務 URL 的主機新增至 MicrosoftAppCredentials 信任的主機。

TrustServiceUrl(String, DateTime)
已淘汰.

將服務 URL 的主機新增至 MicrosoftAppCredentials 信任的主機。

適用於