SignInManager<TUser>.SignInWithClaimsAsync Method

Definition

Overloads

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Signs in the specified user.

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Signs in the specified user.

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Source:
SignInManager.cs

Signs in the specified 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

Parameters

user
TUser

The user to sign-in.

authenticationProperties
AuthenticationProperties

Properties applied to the login and authentication cookie.

additionalClaims
IEnumerable<Claim>

Additional claims that will be stored in the cookie.

Returns

The task object representing the asynchronous operation.

Applies to

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Source:
SignInManager.cs

Signs in the specified 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

Parameters

user
TUser

The user to sign-in.

isPersistent
Boolean

Flag indicating whether the sign-in cookie should persist after the browser is closed.

additionalClaims
IEnumerable<Claim>

Additional claims that will be stored in the cookie.

Returns

The task object representing the asynchronous operation.

Applies to