你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OnBehalfOfCredential 构造函数

定义

重载

OnBehalfOfCredential()

用于模拟的受保护构造函数。

OnBehalfOfCredential(String, String, X509Certificate2, String)

创建 一个 实例,OnBehalfOfCredential其中包含使用指定证书针对Microsoft Entra ID 进行身份验证所需的详细信息。

OnBehalfOfCredential(String, String, String, String)

创建一个 实例,OnBehalfOfCredential其中包含使用 Microsoft Entra ID 进行身份验证所需的详细信息。

OnBehalfOfCredential(String, String, X509Certificate2, String, OnBehalfOfCredentialOptions)

创建 一个 实例,OnBehalfOfCredential其中包含使用指定证书针对Microsoft Entra ID 进行身份验证所需的详细信息。

OnBehalfOfCredential(String, String, String, String, OnBehalfOfCredentialOptions)

创建一个 实例,OnBehalfOfCredential其中包含使用 Microsoft Entra ID 进行身份验证所需的详细信息。

OnBehalfOfCredential()

Source:
OnBehalfOfCredential.cs
Source:
OnBehalfOfCredential.cs

用于模拟的受保护构造函数。

protected OnBehalfOfCredential ();
Protected Sub New ()

适用于

OnBehalfOfCredential(String, String, X509Certificate2, String)

Source:
OnBehalfOfCredential.cs
Source:
OnBehalfOfCredential.cs

创建 一个 实例,OnBehalfOfCredential其中包含使用指定证书针对Microsoft Entra ID 进行身份验证所需的详细信息。

public OnBehalfOfCredential (string tenantId, string clientId, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, string userAssertion);
new Azure.Identity.OnBehalfOfCredential : string * string * System.Security.Cryptography.X509Certificates.X509Certificate2 * string -> Azure.Identity.OnBehalfOfCredential
Public Sub New (tenantId As String, clientId As String, clientCertificate As X509Certificate2, userAssertion As String)

参数

tenantId
String

Microsoft Entra租户 (服务主体的目录) ID。

clientId
String

服务主体的客户端 (应用程序) ID

clientCertificate
X509Certificate2

服务主体的身份验证 X509 证书

userAssertion
String

请求代理令牌时,将用作 OnBehalfOfCredential 用户断言的访问令牌。

适用于

OnBehalfOfCredential(String, String, String, String)

Source:
OnBehalfOfCredential.cs
Source:
OnBehalfOfCredential.cs

创建一个 实例,OnBehalfOfCredential其中包含使用 Microsoft Entra ID 进行身份验证所需的详细信息。

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

参数

tenantId
String

Microsoft Entra租户 (服务主体的目录) ID。

clientId
String

服务主体的客户端 (应用程序) ID

clientSecret
String

为应用注册生成的客户端密码,用于对客户端进行身份验证。

userAssertion
String

请求代理令牌时,将用作 OnBehalfOfCredential 用户断言的访问令牌。

适用于

OnBehalfOfCredential(String, String, X509Certificate2, String, OnBehalfOfCredentialOptions)

Source:
OnBehalfOfCredential.cs
Source:
OnBehalfOfCredential.cs

创建 一个 实例,OnBehalfOfCredential其中包含使用指定证书针对Microsoft Entra ID 进行身份验证所需的详细信息。

public OnBehalfOfCredential (string tenantId, string clientId, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, string userAssertion, Azure.Identity.OnBehalfOfCredentialOptions options);
new Azure.Identity.OnBehalfOfCredential : string * string * System.Security.Cryptography.X509Certificates.X509Certificate2 * string * Azure.Identity.OnBehalfOfCredentialOptions -> Azure.Identity.OnBehalfOfCredential
Public Sub New (tenantId As String, clientId As String, clientCertificate As X509Certificate2, userAssertion As String, options As OnBehalfOfCredentialOptions)

参数

tenantId
String

Microsoft Entra租户 (服务主体的目录) ID。

clientId
String

服务主体的客户端 (应用程序) ID

clientCertificate
X509Certificate2

服务主体的身份验证 X509 证书

userAssertion
String

请求代理令牌时,将用作 OnBehalfOfCredential 用户断言的访问令牌。

options
OnBehalfOfCredentialOptions

允许配置发送到Microsoft Entra ID 的请求管理的选项。

适用于

OnBehalfOfCredential(String, String, String, String, OnBehalfOfCredentialOptions)

Source:
OnBehalfOfCredential.cs
Source:
OnBehalfOfCredential.cs

创建一个 实例,OnBehalfOfCredential其中包含使用 Microsoft Entra ID 进行身份验证所需的详细信息。

public OnBehalfOfCredential (string tenantId, string clientId, string clientSecret, string userAssertion, Azure.Identity.OnBehalfOfCredentialOptions options);
new Azure.Identity.OnBehalfOfCredential : string * string * string * string * Azure.Identity.OnBehalfOfCredentialOptions -> Azure.Identity.OnBehalfOfCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, userAssertion As String, options As OnBehalfOfCredentialOptions)

参数

tenantId
String

Microsoft Entra租户 (服务主体的目录) ID。

clientId
String

服务主体的客户端 (应用程序) ID

clientSecret
String

为应用注册生成的客户端密码,用于对客户端进行身份验证。

userAssertion
String

请求代理令牌时,将用作 OnBehalfOfCredential 用户断言的访问令牌。

options
OnBehalfOfCredentialOptions

允许配置发送到Microsoft Entra ID 的请求管理的选项。

适用于