IAuthenticationManager.AuthenticateAsync Method

Definition

Overloads

Name Description
AuthenticateAsync(String)

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

AuthenticateAsync(String[])

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

AuthenticateAsync(String)

Source:
IAuthenticationManager.cs

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

public System.Threading.Tasks.Task<Microsoft.Owin.Security.AuthenticateResult> AuthenticateAsync(string authenticationType);
abstract member AuthenticateAsync : string -> System.Threading.Tasks.Task<Microsoft.Owin.Security.AuthenticateResult>
Public Function AuthenticateAsync (authenticationType As String) As Task(Of AuthenticateResult)

Parameters

authenticationType
String

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

Returns

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.

Applies to

AuthenticateAsync(String[])

Source:
IAuthenticationManager.cs

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

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Owin.Security.AuthenticateResult>> AuthenticateAsync(string[] authenticationTypes);
abstract member AuthenticateAsync : string[] -> System.Threading.Tasks.Task<seq<Microsoft.Owin.Security.AuthenticateResult>>
Public Function AuthenticateAsync (authenticationTypes As String()) As Task(Of IEnumerable(Of AuthenticateResult))

Parameters

authenticationTypes
String[]

Identifies one or more middleware which should attempt to respond

Returns

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.

Applies to