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

A token provider that uses ADAL to retrieve tokens from Azure Active Directory for user credentials.
Inheritance: ITokenProvider
Datei anzeigen Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
GetAccessTokenWithCertificate ( AdalConfiguration config, string clientId, string certificate, AzureAccount credentialType ) : IAccessToken
UserTokenProvider ( IWin32Window parentWindow ) : Hyak.Common

Private Methods

Method Description
AcquireToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password ) : AuthenticationResult
CreateContext ( AdalConfiguration config ) : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
DoAcquireToken ( AdalConfiguration config, PromptBehavior promptBehavior, string userId, SecureString password ) : AuthenticationResult
GetExceptionMessage ( Exception ex ) : string
IsExpired ( AdalAccessToken token ) : bool
Renew ( AdalAccessToken token ) : void
SafeAquireToken ( AdalConfiguration config, ShowDialog showDialog, string userId, SecureString password, Exception &ex ) : AuthenticationResult

Method Details

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

UserTokenProvider() public method

public UserTokenProvider ( IWin32Window parentWindow ) : Hyak.Common
parentWindow IWin32Window
return Hyak.Common