Condividi tramite


SignInManager<TUser>.SignInAsync Metodo

Definizione

Overload

SignInAsync(TUser, AuthenticationProperties, String)

Accedere all'oggetto specificato user.

SignInAsync(TUser, AuthenticationProperties, String)

Accedere all'oggetto specificato user.

SignInAsync(TUser, Boolean, String)

Accedere all'oggetto specificato user.

SignInAsync(TUser, AuthenticationProperties, String)

Origine:
SignInManager.cs
Origine:
SignInManager.cs

Accedere all'oggetto specificato 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

Parametri

user
TUser

Utente da eseguire l'accesso.

authenticationProperties
AuthenticationProperties

Proprietà applicate al cookie di accesso e autenticazione.

authenticationMethod
String

Nome del metodo usato per autenticare l'utente.

Restituisce

Oggetto dell'attività che rappresenta l'operazione asincrona.

Si applica a

SignInAsync(TUser, AuthenticationProperties, String)

Accedere all'oggetto specificato 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

Parametri

user
TUser

Utente da eseguire l'accesso.

authenticationProperties
AuthenticationProperties

Proprietà applicate al cookie di accesso e autenticazione.

authenticationMethod
String

Nome del metodo usato per autenticare l'utente.

Restituisce

Oggetto dell'attività che rappresenta l'operazione asincrona.

Si applica a

SignInAsync(TUser, Boolean, String)

Origine:
SignInManager.cs
Origine:
SignInManager.cs

Accedere all'oggetto specificato 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

Parametri

user
TUser

Utente da eseguire l'accesso.

isPersistent
Boolean

Flag che indica se il cookie di accesso deve essere persistente dopo la chiusura del browser.

authenticationMethod
String

Nome del metodo usato per autenticare l'utente.

Restituisce

Oggetto dell'attività che rappresenta l'operazione asincrona.

Si applica a