Compartilhar via


SignInManager<TUser>.SignInAsync Método

Definição

Sobrecargas

SignInAsync(TUser, AuthenticationProperties, String)

Entra no especificado user.

SignInAsync(TUser, AuthenticationProperties, String)

Entra no especificado user.

SignInAsync(TUser, Boolean, String)

Entra no especificado user.

SignInAsync(TUser, AuthenticationProperties, String)

Origem:
SignInManager.cs
Origem:
SignInManager.cs
Origem:
SignInManager.cs

Entra no especificado user.

public virtual System.Threading.Tasks.Task SignInAsync (TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, string authenticationMethod = default);
public virtual System.Threading.Tasks.Task SignInAsync (TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, string? authenticationMethod = default);
abstract member SignInAsync : 'User * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
override this.SignInAsync : 'User * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
Public Overridable Function SignInAsync (user As TUser, authenticationProperties As AuthenticationProperties, Optional authenticationMethod As String = Nothing) As Task

Parâmetros

user
TUser

O usuário para entrar.

authenticationProperties
AuthenticationProperties

Propriedades aplicadas ao cookie de logon e autenticação.

authenticationMethod
String

Nome do método usado para autenticar o usuário.

Retornos

O objeto de tarefa que representa a operação assíncrona.

Aplica-se a

SignInAsync(TUser, AuthenticationProperties, String)

Entra no especificado user.

public virtual System.Threading.Tasks.Task SignInAsync (TUser user, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties authenticationProperties, string authenticationMethod = default);
abstract member SignInAsync : 'User * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
override this.SignInAsync : 'User * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
Public Overridable Function SignInAsync (user As TUser, authenticationProperties As AuthenticationProperties, Optional authenticationMethod As String = Nothing) As Task

Parâmetros

user
TUser

O usuário para entrar.

authenticationProperties
AuthenticationProperties

Propriedades aplicadas ao cookie de logon e autenticação.

authenticationMethod
String

Nome do método usado para autenticar o usuário.

Retornos

O objeto de tarefa que representa a operação assíncrona.

Aplica-se a

SignInAsync(TUser, Boolean, String)

Origem:
SignInManager.cs
Origem:
SignInManager.cs
Origem:
SignInManager.cs

Entra no especificado user.

public virtual System.Threading.Tasks.Task SignInAsync (TUser user, bool isPersistent, string authenticationMethod = default);
public virtual System.Threading.Tasks.Task SignInAsync (TUser user, bool isPersistent, string? authenticationMethod = default);
abstract member SignInAsync : 'User * bool * string -> System.Threading.Tasks.Task
override this.SignInAsync : 'User * bool * string -> System.Threading.Tasks.Task
Public Overridable Function SignInAsync (user As TUser, isPersistent As Boolean, Optional authenticationMethod As String = Nothing) As Task

Parâmetros

user
TUser

O usuário para entrar.

isPersistent
Boolean

Sinalizador indicando se o cookie de entrada deve persistir após o navegador ser fechado.

authenticationMethod
String

Nome do método usado para autenticar o usuário.

Retornos

O objeto de tarefa que representa a operação assíncrona.

Aplica-se a