ControllerBase.SignIn 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SignIn(ClaimsPrincipal, AuthenticationProperties, String) |
SignInResult使用指定的驗證配置和 |
SignIn(ClaimsPrincipal, AuthenticationProperties, String) |
SignInResult使用指定的驗證配置和 |
SignIn(ClaimsPrincipal, String) |
SignInResult使用指定的驗證配置建立 。 |
SignIn(ClaimsPrincipal, AuthenticationProperties) |
SignInResult使用 |
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)
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)
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)
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)
建立 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 的 。
- 屬性