Delen via


PageModel.SignIn Method

Definition

Overloads

SignIn(ClaimsPrincipal, String)

Creates a SignInResult with the specified authentication scheme.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified authentication scheme and properties.

SignIn(ClaimsPrincipal, String)

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

Creates a SignInResult with the specified authentication scheme.

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

Parameters

principal
ClaimsPrincipal

The ClaimsPrincipal containing the user claims.

authenticationScheme
String

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

Returns

The created SignInResult for the response.

Applies to

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

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

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, 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

Parameters

principal
ClaimsPrincipal

The ClaimsPrincipal containing the user claims.

properties
AuthenticationProperties

AuthenticationProperties used to perform the sign-in operation.

authenticationScheme
String

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

Returns

The created SignInResult for the response.

Applies to