Partilhar via


SignInManager<TUser>.SignInWithClaimsAsync Método

Definição

Sobrecargas

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Entra no especificado user.

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Entra no especificado user.

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Origem:
SignInManager.cs

Entra no especificado 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

Parâmetros

user
TUser

O usuário para entrar.

authenticationProperties
AuthenticationProperties

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

additionalClaims
IEnumerable<Claim>

Declarações adicionais que serão armazenadas no cookie.

Retornos

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

Aplica-se a

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Origem:
SignInManager.cs

Entra no especificado 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

Parâmetros

user
TUser

O usuário para entrar.

isPersistent
Boolean

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

additionalClaims
IEnumerable<Claim>

Declarações adicionais que serão armazenadas no cookie.

Retornos

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

Aplica-se a