Aracılığıyla paylaş


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