SignInManager<TUser>.SignInWithClaimsAsync 方法

定义

重载

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

在指定的 user中登录。

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

在指定的 user中登录。

SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>)

Source:
SignInManager.cs

在指定的 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

参数

user
TUser

要登录的用户。

authenticationProperties
AuthenticationProperties

应用于登录和身份验证 Cookie 的属性。

additionalClaims
IEnumerable<Claim>

将存储在 Cookie 中的其他声明。

返回

表示异步操作的任务对象。

适用于

SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>)

Source:
SignInManager.cs

在指定的 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

参数

user
TUser

要登录的用户。

isPersistent
Boolean

指示登录 Cookie 在浏览器关闭后是否应保留的标志。

additionalClaims
IEnumerable<Claim>

将存储在 Cookie 中的其他声明。

返回

表示异步操作的任务对象。

适用于