ControllerBase.SignIn 方法

定义

重载

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

SignIn(ClaimsPrincipal, String)

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

SignIn(ClaimsPrincipal, AuthenticationProperties)

SignInResult使用 创建 。properties

SignIn(ClaimsPrincipal)

创建一个 SignInResult

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

public:
 virtual Microsoft::AspNetCore::Mvc::SignInResult ^ SignIn(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string authenticationScheme);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member SignIn : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Mvc.SignInResult
override this.SignIn : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.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

属性

适用于

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::SignInResult ^ SignIn(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

属性

适用于

SignIn(ClaimsPrincipal, String)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::SignInResult ^ SignIn(System::Security::Claims::ClaimsPrincipal ^ principal, System::String ^ authenticationScheme);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn (System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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)

Source:
ControllerBase.cs

SignInResult使用 创建 。properties

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

参数

principal
ClaimsPrincipal

包含 ClaimsPrincipal 用户声明的 。

properties
AuthenticationProperties

AuthenticationProperties 用于执行登录操作。

返回

为响应创建的 SignInResult

属性

适用于

SignIn(ClaimsPrincipal)

Source:
ControllerBase.cs

创建一个 SignInResult

public:
 virtual Microsoft::AspNetCore::Mvc::SignInResult ^ SignIn(System::Security::Claims::ClaimsPrincipal ^ principal);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn (System.Security.Claims.ClaimsPrincipal principal);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member SignIn : System.Security.Claims.ClaimsPrincipal -> Microsoft.AspNetCore.Mvc.SignInResult
override this.SignIn : System.Security.Claims.ClaimsPrincipal -> Microsoft.AspNetCore.Mvc.SignInResult
Public Overridable Function SignIn (principal As ClaimsPrincipal) As SignInResult

参数

principal
ClaimsPrincipal

包含 ClaimsPrincipal 用户声明的 。

返回

为响应创建的 SignInResult

属性

适用于