Partager via


SignInManager<TUser>.SignInWithClaimsAsync Méthode

Définition

Surcharges

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Connecte le spécifié user.

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Connecte le spécifié user.

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Source:
SignInManager.cs

Connecte le spécifié user.

public:
 virtual System::Threading::Tasks::Task ^ SignInWithClaimsAsync(TUser user, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ authenticationProperties, System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ additionalClaims);
public virtual System.Threading.Tasks.Task SignInWithClaimsAsync (TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> additionalClaims);
public virtual System.Threading.Tasks.Task SignInWithClaimsAsync (TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties? authenticationProperties, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> additionalClaims);
abstract member SignInWithClaimsAsync : 'User * Microsoft.AspNetCore.Authentication.AuthenticationProperties * seq<System.Security.Claims.Claim> -> System.Threading.Tasks.Task
override this.SignInWithClaimsAsync : 'User * Microsoft.AspNetCore.Authentication.AuthenticationProperties * seq<System.Security.Claims.Claim> -> System.Threading.Tasks.Task
Public Overridable Function SignInWithClaimsAsync (user As TUser, authenticationProperties As AuthenticationProperties, additionalClaims As IEnumerable(Of Claim)) As Task

Paramètres

user
TUser

Utilisateur à connecter.

authenticationProperties
AuthenticationProperties

Propriétés appliquées au cookie de connexion et d’authentification.

additionalClaims
IEnumerable<Claim>

Revendications supplémentaires qui seront stockées dans le cookie.

Retours

Objet de tâche représentant l'opération asynchrone.

S’applique à

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Source:
SignInManager.cs

Connecte le spécifié user.

public:
 virtual System::Threading::Tasks::Task ^ SignInWithClaimsAsync(TUser user, bool isPersistent, System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ additionalClaims);
public virtual System.Threading.Tasks.Task SignInWithClaimsAsync (TUser user, bool isPersistent, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> additionalClaims);
abstract member SignInWithClaimsAsync : 'User * bool * seq<System.Security.Claims.Claim> -> System.Threading.Tasks.Task
override this.SignInWithClaimsAsync : 'User * bool * seq<System.Security.Claims.Claim> -> System.Threading.Tasks.Task
Public Overridable Function SignInWithClaimsAsync (user As TUser, isPersistent As Boolean, additionalClaims As IEnumerable(Of Claim)) As Task

Paramètres

user
TUser

Utilisateur à connecter.

isPersistent
Boolean

Indicateur indiquant si le cookie de connexion doit persister après la fermeture du navigateur.

additionalClaims
IEnumerable<Claim>

Revendications supplémentaires qui seront stockées dans le cookie.

Retours

Objet de tâche représentant l'opération asynchrone.

S’applique à