PageModel.SignIn PageModel.SignIn PageModel.SignIn Method

Definition

Overloads

SignIn(ClaimsPrincipal, String) SignIn(ClaimsPrincipal, String) SignIn(ClaimsPrincipal, String)

Creates a SignInResult with the specified authentication scheme.

SignIn(ClaimsPrincipal, AuthenticationProperties, String) SignIn(ClaimsPrincipal, AuthenticationProperties, String) SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified authentication scheme and properties.

SignIn(ClaimsPrincipal, String) SignIn(ClaimsPrincipal, String) SignIn(ClaimsPrincipal, String)

Creates a SignInResult with the specified authentication scheme.

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

Parameters

principal
ClaimsPrincipal ClaimsPrincipal ClaimsPrincipal

The ClaimsPrincipal containing the user claims.

authenticationScheme
String String String

The authentication scheme to use for the sign-in operation.

Returns

The created SignInResult for the response.

SignIn(ClaimsPrincipal, AuthenticationProperties, String) SignIn(ClaimsPrincipal, AuthenticationProperties, String) SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified authentication scheme and properties.

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

Parameters

principal
ClaimsPrincipal ClaimsPrincipal ClaimsPrincipal

The ClaimsPrincipal containing the user claims.

authenticationScheme
String String String

The authentication scheme to use for the sign-in operation.

Returns

The created SignInResult for the response.

Applies to