Results.SignIn(ClaimsPrincipal, AuthenticationProperties, String) 方法

定义

public static Microsoft.AspNetCore.Http.IResult SignIn (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties = default, string? authenticationScheme = default);
static member SignIn : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Http.IResult
Public Shared Function SignIn (principal As ClaimsPrincipal, Optional properties As AuthenticationProperties = Nothing, Optional authenticationScheme As String = Nothing) As IResult

参数

principal
ClaimsPrincipal

包含 ClaimsPrincipal 用户声明的 。

properties
AuthenticationProperties

AuthenticationProperties 用于执行登录操作。

authenticationScheme
String

用于登录操作的身份验证方案。

返回

为响应创建的 IResult

适用于