Dela via


IAuthenticationFactory.Authenticate Method

Definition

Overloads

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

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

public Microsoft.Azure.Commands.Common.Authentication.IAccessToken Authenticate (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment, string tenant, System.Security.SecureString password, string promptBehavior, Action<string> promptAction, string resourceId = "ActiveDirectoryServiceEndpointResourceId");
abstract member Authenticate : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment * string * System.Security.SecureString * string * Action<string> * string -> Microsoft.Azure.Commands.Common.Authentication.IAccessToken
Public Function Authenticate (account As IAzureAccount, environment As IAzureEnvironment, tenant As String, password As SecureString, promptBehavior As String, promptAction As Action(Of String), Optional resourceId As String = "ActiveDirectoryServiceEndpointResourceId") As IAccessToken

Parameters

account
IAzureAccount
environment
IAzureEnvironment
tenant
String
password
SecureString
promptBehavior
String
promptAction
Action<String>
resourceId
String

Returns

Applies to

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

public Microsoft.Azure.Commands.Common.Authentication.IAccessToken Authenticate (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment, string tenant, System.Security.SecureString password, string promptBehavior, Action<string> promptAction, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTokenCache tokenCache, string resourceId = "ActiveDirectoryServiceEndpointResourceId");
abstract member Authenticate : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment * string * System.Security.SecureString * string * Action<string> * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTokenCache * string -> Microsoft.Azure.Commands.Common.Authentication.IAccessToken
Public Function Authenticate (account As IAzureAccount, environment As IAzureEnvironment, tenant As String, password As SecureString, promptBehavior As String, promptAction As Action(Of String), tokenCache As IAzureTokenCache, Optional resourceId As String = "ActiveDirectoryServiceEndpointResourceId") As IAccessToken

Parameters

account
IAzureAccount
environment
IAzureEnvironment
tenant
String
password
SecureString
promptBehavior
String
promptAction
Action<String>
tokenCache
IAzureTokenCache
resourceId
String

Returns

Applies to