Compartilhar via


AuthenticationHandler.AuthenticateAsync Method ()

 

Causes the authentication logic in AuthenticateCore to be performed for the current request at most once and returns the results. Calling Authenticate more than once will always return the original value. This method should always be called instead of calling AuthenticateCore directly.

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

Syntax

public Task<AuthenticationTicket> AuthenticateAsync()
public:
Task<AuthenticationTicket^>^ AuthenticateAsync()
member AuthenticateAsync : unit -> Task<AuthenticationTicket>
Public Function AuthenticateAsync As Task(Of AuthenticationTicket)

Return Value

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

The ticket data provided by the authentication logic

See Also

AuthenticationHandler Class
Microsoft.Owin.Security.Infrastructure Namespace

Return to top