ITokenProvider.GetAccessTokenWithCertificate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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