Share via


IAuthenticationManager.AuthenticateAsync Method

 

Authenticates the result asynchronously.

Namespace:   Microsoft.Owin.Security
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Overload List

Name Description
System_CAPS_pubmethod AuthenticateAsync(String)

Call back through the middleware to ask for a specific form of authentication to be performed on the current request.

System_CAPS_pubmethod AuthenticateAsync(String[])

Called to perform any number of authentication mechanisms on the current request.

See Also

IAuthenticationManager Interface
Microsoft.Owin.Security Namespace

Return to top

IAuthenticationManager.AuthenticateAsync Method (String)

Call back through the middleware to ask for a specific form of authentication to be performed on the current request.

Syntax

Task<AuthenticateResult> AuthenticateAsync(
    string authenticationType
)
Task<AuthenticateResult^>^ AuthenticateAsync(
    String^ authenticationType
)
abstract AuthenticateAsync : 
        authenticationType:string -> Task<AuthenticateResult>
Function AuthenticateAsync (
    authenticationType As String
) As Task(Of AuthenticateResult)

Parameters

  • authenticationType
    Type: System.String

    Identifies which middleware should respond to the request for authentication. This value is compared to the middleware's Options.AuthenticationType property.

Return Value

Type: System.Threading.Tasks.Task<AuthenticateResult>

Returns an object with the results of the authentication. The AuthenticationResult.Identity may be null if authentication failed. Even if the Identity property is null, there may still be AuthenticationResult.properties and AuthenticationResult.Description information returned.

Return to top

IAuthenticationManager.AuthenticateAsync Method (String[])

Called to perform any number of authentication mechanisms on the current request.

Syntax

Task<IEnumerable<AuthenticateResult>> AuthenticateAsync(
    string[] authenticationTypes
)
Task<IEnumerable<AuthenticateResult^>^>^ AuthenticateAsync(
    array<String^>^ authenticationTypes
)
abstract AuthenticateAsync : 
        authenticationTypes:string[] -> Task<IEnumerable<AuthenticateResult>>
Function AuthenticateAsync (
    authenticationTypes As String()
) As Task(Of IEnumerable(Of AuthenticateResult))

Parameters

  • authenticationTypes
    Type: System.String[]

    Identifies one or more middleware which should attempt to respond.

Return Value

Type: System.Threading.Tasks.Task<IEnumerable<AuthenticateResult>>

Returns the AuthenticationResult information from the middleware which responded. The order is determined by the order the middleware are in the pipeline. Latest added is first in the list.

Return to top