C# Class Microsoft.Azure.Commands.Common.Authentication.AdalTokenProvider

A token provider that uses ADAL to retrieve tokens from Azure Active Directory
Inheritance: ITokenProvider
Show file Open project: Azure/azure-powershell

Public Methods

Method Description
AdalTokenProvider ( ) : Microsoft.Azure.Commands.Common.Authentication.Models
AdalTokenProvider ( IWin32Window parentWindow ) : Microsoft.Azure.Commands.Common.Authentication.Models
GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
GetAccessTokenWithCertificate ( AdalConfiguration config, string clientId, string certificate, AzureAccount credentialType ) : IAccessToken

Method Details

AdalTokenProvider() public method

public AdalTokenProvider ( ) : Microsoft.Azure.Commands.Common.Authentication.Models
return Microsoft.Azure.Commands.Common.Authentication.Models

AdalTokenProvider() public method

public AdalTokenProvider ( IWin32Window parentWindow ) : Microsoft.Azure.Commands.Common.Authentication.Models
parentWindow IWin32Window
return Microsoft.Azure.Commands.Common.Authentication.Models

GetAccessToken() public method

public GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
config AdalConfiguration
promptBehavior ShowDialog
userId string
password System.Security.SecureString
credentialType Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
return IAccessToken

GetAccessTokenWithCertificate() public method

public GetAccessTokenWithCertificate ( AdalConfiguration config, string clientId, string certificate, AzureAccount credentialType ) : IAccessToken
config AdalConfiguration
clientId string
certificate string
credentialType Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
return IAccessToken