SignInResult Class¶
An Microsoft.AspNetCore.Mvc.ActionResult
that on execution invokes AuthenticationManager.SignInAsync
.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class SignInResult : ActionResult, IActionResult
-
class
Microsoft.AspNetCore.Mvc.
SignInResult
Constructors¶
-
SignInResult
(System.String, System.Security.Claims.ClaimsPrincipal)¶ Initializes a new instance of
Microsoft.AspNetCore.Mvc.SignInResult
with the specified authentication scheme.Arguments: - authenticationScheme (System.String) – The authentication scheme to use when signing in the user.
- principal (System.Security.Claims.ClaimsPrincipal) – The claims principal containing the user claims.
public SignInResult(string authenticationScheme, ClaimsPrincipal principal)
-
SignInResult
(System.String, System.Security.Claims.ClaimsPrincipal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) Initializes a new instance of
Microsoft.AspNetCore.Mvc.SignInResult
with the specified authentication scheme and <em>properties</em>.Arguments: - authenticationScheme (System.String) – The authentication schemes to use when signing in the user.
- principal (System.Security.Claims.ClaimsPrincipal) – The claims principal containing the user claims.
- properties (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) –
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
used to perform the sign-in operation.
public SignInResult(string authenticationScheme, ClaimsPrincipal principal, AuthenticationProperties properties)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.SignInResult.
AuthenticationScheme
¶ Gets or sets the authentication scheme that is used to perform the sign-in operation.
Return type: System.String public string AuthenticationScheme { get; set; }
-
Microsoft.AspNetCore.Mvc.SignInResult.
Principal
¶ Gets or sets the
System.Security.Claims.ClaimsPrincipal
containing the user claims.Return type: System.Security.Claims.ClaimsPrincipal public ClaimsPrincipal Principal { get; set; }
-
Microsoft.AspNetCore.Mvc.SignInResult.
Properties
¶ Gets or sets the
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
used to perform the sign-in operation.Return type: Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties public AuthenticationProperties Properties { get; set; }
-