你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ClientSecretCredential 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ClientSecretCredential() |
用于模拟的受保护构造函数。 |
ClientSecretCredential(String, String, String) |
创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。 |
ClientSecretCredential(String, String, String, ClientSecretCredentialOptions) |
创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。 |
ClientSecretCredential(String, String, String, TokenCredentialOptions) |
创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。 |
ClientSecretCredential()
用于模拟的受保护构造函数。
protected ClientSecretCredential ();
Protected Sub New ()
适用于
ClientSecretCredential(String, String, String)
创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。
public ClientSecretCredential (string tenantId, string clientId, string clientSecret);
new Azure.Identity.ClientSecretCredential : string * string * string -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String)
参数
- tenantId
- String
Azure Active Directory 租户 (目录) 服务主体的 ID。
- clientId
- String
客户端 (应用程序) 服务主体的 ID
- clientSecret
- String
为应用注册生成的客户端密码,用于对客户端进行身份验证。
适用于
ClientSecretCredential(String, String, String, ClientSecretCredentialOptions)
创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。
public ClientSecretCredential (string tenantId, string clientId, string clientSecret, Azure.Identity.ClientSecretCredentialOptions options);
new Azure.Identity.ClientSecretCredential : string * string * string * Azure.Identity.ClientSecretCredentialOptions -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, options As ClientSecretCredentialOptions)
参数
- tenantId
- String
Azure Active Directory 租户 (目录) 服务主体的 ID。
- clientId
- String
客户端 (应用程序) 服务主体的 ID
- clientSecret
- String
为应用注册生成的客户端密码,用于对客户端进行身份验证。
- options
- ClientSecretCredentialOptions
允许配置发送到 Azure Active Directory 服务的请求管理的选项。
适用于
ClientSecretCredential(String, String, String, TokenCredentialOptions)
创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。
public ClientSecretCredential (string tenantId, string clientId, string clientSecret, Azure.Identity.TokenCredentialOptions options);
new Azure.Identity.ClientSecretCredential : string * string * string * Azure.Identity.TokenCredentialOptions -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, options As TokenCredentialOptions)
参数
- tenantId
- String
Azure Active Directory 租户 (目录) 服务主体的 ID。
- clientId
- String
客户端 (应用程序) 服务主体的 ID
- clientSecret
- String
为应用注册生成的客户端密码,用于对客户端进行身份验证。
- options
- TokenCredentialOptions
允许配置发送到 Azure Active Directory 服务的请求管理的选项。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈