Share via


AuthorizationCodeCredential コンストラクター

定義

オーバーロード

AuthorizationCodeCredential()

モック作成用の保護されたコンストラクター。

AuthorizationCodeCredential(String, String, String, String)

プリフェッチされた承認コードを使用して、Microsoft Entra ID に対する認証に必要な詳細を含む ClientSecretCredential のインスタンスを作成します。

AuthorizationCodeCredential(String, String, String, String, AuthorizationCodeCredentialOptions)

プリフェッチされた承認コードを使用して、Microsoft Entra ID に対する認証に必要な詳細を含む ClientSecretCredential のインスタンスを作成します。

AuthorizationCodeCredential()

モック作成用の保護されたコンストラクター。

protected AuthorizationCodeCredential ();
Protected Sub New ()

適用対象

AuthorizationCodeCredential(String, String, String, String)

プリフェッチされた承認コードを使用して、Microsoft Entra ID に対する認証に必要な詳細を含む ClientSecretCredential のインスタンスを作成します。

public AuthorizationCodeCredential (string tenantId, string clientId, string clientSecret, string authorizationCode);
new Azure.Identity.AuthorizationCodeCredential : string * string * string * string -> Azure.Identity.AuthorizationCodeCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, authorizationCode As String)

パラメーター

tenantId
String

サービス プリンシパルの Azure Active Directory テナント (ディレクトリ) ID。

clientId
String

サービス プリンシパルのクライアント (アプリケーション) ID

clientSecret
String

クライアントの認証に使用されるアプリ登録用に生成されたクライアント シークレット。

authorizationCode
String

承認の呼び出しから取得した承認コード。 コードは、必要なすべてのスコープで取得する必要があります。 詳細については、「 https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow 」を参照してください。

適用対象

AuthorizationCodeCredential(String, String, String, String, AuthorizationCodeCredentialOptions)

プリフェッチされた承認コードを使用して、Microsoft Entra ID に対する認証に必要な詳細を含む ClientSecretCredential のインスタンスを作成します。

public AuthorizationCodeCredential (string tenantId, string clientId, string clientSecret, string authorizationCode, Azure.Identity.AuthorizationCodeCredentialOptions options);
new Azure.Identity.AuthorizationCodeCredential : string * string * string * string * Azure.Identity.AuthorizationCodeCredentialOptions -> Azure.Identity.AuthorizationCodeCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, authorizationCode As String, options As AuthorizationCodeCredentialOptions)

パラメーター

tenantId
String

サービス プリンシパルの Azure Active Directory テナント (ディレクトリ) ID。

clientId
String

サービス プリンシパルのクライアント (アプリケーション) ID

clientSecret
String

クライアントの認証に使用されるアプリ登録用に生成されたクライアント シークレット。

authorizationCode
String

承認の呼び出しから取得した承認コード。 コードは、必要なすべてのスコープで取得する必要があります。 詳細については、「 https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow 」を参照してください。

options
AuthorizationCodeCredentialOptions

Azure Active Directory サービスに送信される要求の管理を構成できるオプション。

適用対象