AbstractAcquireTokenParameterBuilder<T>.WithAuthority メソッド

定義

オーバーロード

名前 説明
WithAuthority(AadAuthorityAudience, Boolean)
古い.

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

サインイン対象ユーザー (Azure パブリック クラウドであるクラウド) を指定するサインイン ユーザーに、既知のAzure AD 機関をアプリケーションに追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(String, Boolean)
古い.

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

トークンが要求される特定の機関。 アプリケーション コンストラクターで構成されている値とは異なる値を渡すと、選択内容が特定のテナントに絞り込まれます。 これにより、アプリケーションで構成された値は変更されません。 これは、複数のアカウント (複数のメールボックスを持つメール クライアントなど) を管理するアプリケーションに固有です。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(AzureCloudInstance, AadAuthorityAudience, Boolean)
古い.

クラウド インスタンスとサインイン対象ユーザーを指定するサインイン ユーザーに、既知のAzure AD 機関をアプリケーションに追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(AzureCloudInstance, Guid, Boolean)
古い.

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

クラウド インスタンスとそのテナント ID によって記述された単一組織 (シングル テナント アプリケーション) のユーザーをサインインさせるために、アプリケーションに既知のAzure AD 機関を追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(AzureCloudInstance, String, Boolean)
古い.

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

クラウド インスタンスとそのドメイン名またはテナント ID で記述された単一組織 (シングル テナント アプリケーション) のユーザーをサインインさせるために、アプリケーションに既知のAzure AD 機関を追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(String, Guid, Boolean)
古い.

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

既知の Azure AD 機関をアプリケーションに追加して、そのテナント ID で指定された単一組織 (シングル テナント アプリケーション) のユーザーをサインインさせます。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(String, String, Boolean)
古い.

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

ドメイン名で記述された単一の組織 (シングル テナント アプリケーション) のユーザーをサインインさせるために、アプリケーションに既知のAzure AD 機関を追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

WithAuthority(AadAuthorityAudience, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

サインイン対象ユーザー (Azure パブリック クラウドであるクラウド) を指定するサインイン ユーザーに、既知のAzure AD 機関をアプリケーションに追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(Microsoft.Identity.Client.AadAuthorityAudience authorityAudience, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : Microsoft.Identity.Client.AadAuthorityAudience * bool -> 'T
Public Function WithAuthority (authorityAudience As AadAuthorityAudience, Optional validateAuthority As Boolean = true) As T

パラメーター

authorityAudience
AadAuthorityAudience

サインイン対象ユーザー (1 つの AAD 組織、職場および学校アカウント、または職場と学校のアカウント、個人アカウントMicrosoft。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

適用対象

WithAuthority(String, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

トークンが要求される特定の機関。 アプリケーション コンストラクターで構成されている値とは異なる値を渡すと、選択内容が特定のテナントに絞り込まれます。 これにより、アプリケーションで構成された値は変更されません。 これは、複数のアカウント (複数のメールボックスを持つメール クライアントなど) を管理するアプリケーションに固有です。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(string authorityUri, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : string * bool -> 'T
Public Function WithAuthority (authorityUri As String, Optional validateAuthority As Boolean = true) As T

パラメーター

authorityUri
String

機関の URI。 機関 URI が既知の Azure AD URI である場合、この設定はアプリケーション登録ポータルで宣言されているものと一致している必要があります。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

適用対象

WithAuthority(AzureCloudInstance, AadAuthorityAudience, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

クラウド インスタンスとサインイン対象ユーザーを指定するサインイン ユーザーに、既知のAzure AD 機関をアプリケーションに追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(Microsoft.Identity.Client.AzureCloudInstance azureCloudInstance, Microsoft.Identity.Client.AadAuthorityAudience authorityAudience, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : Microsoft.Identity.Client.AzureCloudInstance * Microsoft.Identity.Client.AadAuthorityAudience * bool -> 'T
Public Function WithAuthority (azureCloudInstance As AzureCloudInstance, authorityAudience As AadAuthorityAudience, Optional validateAuthority As Boolean = true) As T

パラメーター

azureCloudInstance
AzureCloudInstance

Azure クラウドのインスタンス (たとえば、世界中Azureクラウド、Azure German Cloud、米国政府など)。

authorityAudience
AadAuthorityAudience

サインイン対象ユーザー (1 つの AAD 組織、職場および学校アカウント、または職場と学校のアカウント、個人アカウントMicrosoft。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

適用対象

WithAuthority(AzureCloudInstance, Guid, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

クラウド インスタンスとそのテナント ID によって記述された単一組織 (シングル テナント アプリケーション) のユーザーをサインインさせるために、アプリケーションに既知のAzure AD 機関を追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(Microsoft.Identity.Client.AzureCloudInstance azureCloudInstance, Guid tenantId, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : Microsoft.Identity.Client.AzureCloudInstance * Guid * bool -> 'T
Public Function WithAuthority (azureCloudInstance As AzureCloudInstance, tenantId As Guid, Optional validateAuthority As Boolean = true) As T

パラメーター

azureCloudInstance
AzureCloudInstance

Azure クラウドのインスタンス (たとえば、世界中Azureクラウド、Azure German Cloud、米国政府など)。

tenantId
Guid

ユーザーのサインイン元となるテナントのテナント ID。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

適用対象

WithAuthority(AzureCloudInstance, String, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

クラウド インスタンスとそのドメイン名またはテナント ID で記述された単一組織 (シングル テナント アプリケーション) のユーザーをサインインさせるために、アプリケーションに既知のAzure AD 機関を追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(Microsoft.Identity.Client.AzureCloudInstance azureCloudInstance, string tenant, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : Microsoft.Identity.Client.AzureCloudInstance * string * bool -> 'T
Public Function WithAuthority (azureCloudInstance As AzureCloudInstance, tenant As String, Optional validateAuthority As Boolean = true) As T

パラメーター

azureCloudInstance
AzureCloudInstance

Azure クラウドのインスタンス (たとえば、世界中Azureクラウド、Azure German Cloud、米国政府など)。

tenant
String

ユーザーのサインイン元となるテナントのテナント ID。 GUID を指定することもできます。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

適用対象

WithAuthority(String, Guid, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

既知の Azure AD 機関をアプリケーションに追加して、そのテナント ID で指定された単一組織 (シングル テナント アプリケーション) のユーザーをサインインさせます。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(string cloudInstanceUri, Guid tenantId, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : string * Guid * bool -> 'T
Public Function WithAuthority (cloudInstanceUri As String, tenantId As Guid, Optional validateAuthority As Boolean = true) As T

パラメーター

cloudInstanceUri
String

クラウド インスタンスAzureします。

tenantId
Guid

ユーザーのサインイン元となるテナントの GUID。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

適用対象

WithAuthority(String, String, Boolean)

注意事項

This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override

重要: 代わりに WithTenantId または WithTenantIdFromAuthority を使用するか、B2C 機関に対して WithB2CAuthority を使用してください。

ドメイン名で記述された単一の組織 (シングル テナント アプリケーション) のユーザーをサインインさせるために、アプリケーションに既知のAzure AD 機関を追加します。 https://aka.ms/msal-net-application-configurationを参照してください。

[System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")]
public T WithAuthority(string cloudInstanceUri, string tenant, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. You can override the tenant ID in the request using WithTenantId. See https://aka.ms/msal-net-authority-override ")>]
member this.WithAuthority : string * string * bool -> 'T
Public Function WithAuthority (cloudInstanceUri As String, tenant As String, Optional validateAuthority As Boolean = true) As T

パラメーター

cloudInstanceUri
String

Azure Cloud インスタンスへの URI (たとえば、https://login.microsoftonline.com)

tenant
String

ユーザーのサインイン元のテナントに関連付けられているテナント ID。

validateAuthority
Boolean

サーバー メタデータに対して権限を検証する必要があるかどうか。

返品

T

を連結するビルダー。メソッドを使用します。

属性

注釈

tenant には、GUID (tenantId) の文字列表現や、 commonorganizations 、または consumers を含めることもできますが、この場合は、別のオーバーライド (WithAuthority(AzureCloudInstance, Guid, Boolean)WithAuthority(AzureCloudInstance, AadAuthorityAudience, Boolean)

適用対象