ControllerBase.SignIn Method

Definition

Overloads

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified specified authentication scheme and properties.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified authentication scheme and properties.

SignIn(ClaimsPrincipal, String)

Creates a SignInResult with the specified authentication scheme.

SignIn(ClaimsPrincipal, AuthenticationProperties)

Creates a SignInResult with properties.

SignIn(ClaimsPrincipal)

Creates a SignInResult.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified specified authentication scheme and 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

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.

Attributes

Applies to

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Source:
ControllerBase.cs
Source:
ControllerBase.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);
[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

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.

Attributes

Applies to

SignIn(ClaimsPrincipal, String)

Source:
ControllerBase.cs
Source:
ControllerBase.cs

Creates a SignInResult with the specified authentication scheme.

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

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.

Attributes

Applies to

SignIn(ClaimsPrincipal, AuthenticationProperties)

Creates a SignInResult with 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

Parameters

principal
ClaimsPrincipal

The ClaimsPrincipal containing the user claims.

properties
AuthenticationProperties

AuthenticationProperties used to perform the sign-in operation.

Returns

The created SignInResult for the response.

Attributes

Applies to

SignIn(ClaimsPrincipal)

Creates a 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

Parameters

principal
ClaimsPrincipal

The ClaimsPrincipal containing the user claims.

Returns

The created SignInResult for the response.

Attributes

Applies to