共用方式為


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

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

Logger

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

MicrosoftAppId

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

OAuthEndpoint

取得要使用的 OAuth 端點。

OAuthScope

取得要使用的 OAuth 範圍。

ValidateAuthority

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

方法

BuildAuthenticator()

建置延遲 AdalAuthenticator 以用於取得權杖。

BuildIAuthenticator()

建置延遲 IAuthenticator 以用於取得權杖。

GetTokenAsync(Boolean)

取得 OAuth 存取權杖。

IsTrustedServiceUrl(String)
已淘汰.

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

ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

將認證套用至 HTTP 要求。

TrustServiceUrl(String)
已淘汰.

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

TrustServiceUrl(String, DateTime)
已淘汰.

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

適用於