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

ITokenProvider.GetAccessTokenWithCertificate Method

Definition

Get a new authentication token for the given environment

public Microsoft.Azure.Commands.Common.Authentication.IAccessToken GetAccessTokenWithCertificate (Microsoft.Azure.Commands.Common.Authentication.AdalConfiguration config, string principalId, string certificateThumbprint, string credentialType);
abstract member GetAccessTokenWithCertificate : Microsoft.Azure.Commands.Common.Authentication.AdalConfiguration * string * string * string -> Microsoft.Azure.Commands.Common.Authentication.IAccessToken
Public Function GetAccessTokenWithCertificate (config As AdalConfiguration, principalId As String, certificateThumbprint As String, credentialType As String) As IAccessToken

Parameters

config
AdalConfiguration

The ADAL Configuration

principalId
String

The id for the given principal

certificateThumbprint
String

The certificate thumbprint for this user

credentialType
String

The account type

Returns

An access token, which can be renewed

Applies to