IAuthenticationFactory.Authenticate 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.
Overloads
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
- 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
- tokenCache
- IAzureTokenCache
- resourceId
- String