PageModel.SignIn 方法

定义

重载

SignIn(ClaimsPrincipal, String)

SignInResult使用指定的身份验证方案创建 。

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

SignInResult使用指定的身份验证方案和 properties创建 。

SignIn(ClaimsPrincipal, String)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

SignInResult使用指定的身份验证方案创建 。

public:
 virtual Microsoft::AspNetCore::Mvc::SignInResult ^ SignIn(System::Security::Claims::ClaimsPrincipal ^ principal, System::String ^ authenticationScheme);
public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn (System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme);
abstract member SignIn : System.Security.Claims.ClaimsPrincipal * string -> Microsoft.AspNetCore.Mvc.SignInResult
override this.SignIn : System.Security.Claims.ClaimsPrincipal * string -> Microsoft.AspNetCore.Mvc.SignInResult
Public Overridable Function SignIn (principal As ClaimsPrincipal, authenticationScheme As String) As SignInResult

参数

principal
ClaimsPrincipal

包含 ClaimsPrincipal 用户声明的 。

authenticationScheme
String

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

返回

为响应创建的 SignInResult

适用于

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

SignInResult使用指定的身份验证方案和 properties创建 。

public:
 virtual Microsoft::AspNetCore::Mvc::SignInResult ^ SignIn(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme);
abstract member SignIn : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Mvc.SignInResult
override this.SignIn : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Mvc.SignInResult
Public Overridable Function SignIn (principal As ClaimsPrincipal, properties As AuthenticationProperties, authenticationScheme As String) As SignInResult

参数

principal
ClaimsPrincipal

包含 ClaimsPrincipal 用户声明的 。

properties
AuthenticationProperties

AuthenticationProperties 用于执行登录操作。

authenticationScheme
String

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

返回

为响应创建的 SignInResult

适用于