Share via


AuthenticationFactory Class

Definition

public class AuthenticationFactory : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAuthenticationFactory
type AuthenticationFactory = class
    interface IAuthenticationFactory
    interface IHyakAuthenticationFactory
Public Class AuthenticationFactory
Implements IAuthenticationFactory
Inheritance
AuthenticationFactory
Implements

Constructors

AuthenticationFactory()

Fields

AppServiceManagedIdentityFlag
ClaimsChallengeParameterName
CmdletContextParameterName
CommonAdTenant
DefaultBackupMSILoginUri
DefaultMSILoginUri
ResourceIdParameterName
TokenCacheParameterName

Properties

KeyStore
TokenProvider

Methods

Authenticate(IAzureAccount, IAzureEnvironment, String, SecureString, String, Action<String>, IAzureTokenCache, String)

Authenticates an Azure account, service principal, or managed identity against Entra ID and obtains an access token.

Authenticate(IAzureAccount, IAzureEnvironment, String, SecureString, String, Action<String>, IDictionary<String,Object>)

Authenticates an Azure account, service principal, or managed identity against Entra ID and obtains an access token. This method supports claims challenge for conditional access scenarios and various authentication flows based on account type.

Authenticate(IAzureAccount, IAzureEnvironment, String, SecureString, String, Action<String>, String)

Authenticates an Azure account, service principal, or managed identity against Entra ID and obtains an access token.

GetServiceClientCredentials(IAzureContext, ICmdletContext)
GetServiceClientCredentials(IAzureContext, String, ICmdletContext)
GetServiceClientCredentials(IAzureContext, String, String, ICmdletContext)
GetServiceClientCredentials(IAzureContext, String, String)
GetServiceClientCredentials(IAzureContext, String)
GetServiceClientCredentials(IAzureContext)
GetServiceClientCredentials(String, Func<String>)
GetSubscriptionCloudCredentials(IAzureContext, String)
GetSubscriptionCloudCredentials(IAzureContext)
RemoveUser(IAzureAccount, IAzureEnvironment)

Remove a user from token cache.

RemoveUser(IAzureAccount, IAzureTokenCache)

Remove a user from token cache.

Applies to