Compartir a través de


AuthenticationHttpContextExtensions.SignInAsync Método

Definición

Sobrecargas

SignInAsync(HttpContext, ClaimsPrincipal)

Inicie sesión en una entidad de seguridad para el esquema de autenticación predeterminado. El esquema predeterminado para iniciar sesión se puede configurar mediante DefaultSignInScheme.

SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties)

Inicie sesión en una entidad de seguridad para el esquema de autenticación predeterminado. El esquema predeterminado para iniciar sesión se puede configurar mediante DefaultSignInScheme.

SignInAsync(HttpContext, String, ClaimsPrincipal)

Inicie sesión en una entidad de seguridad para el esquema especificado.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Inicie sesión en una entidad de seguridad para el esquema especificado.

SignInAsync(HttpContext, ClaimsPrincipal)

Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs

Inicie sesión en una entidad de seguridad para el esquema de autenticación predeterminado. El esquema predeterminado para iniciar sesión se puede configurar mediante DefaultSignInScheme.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ SignInAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::Security::Claims::ClaimsPrincipal ^ principal);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, System.Security.Claims.ClaimsPrincipal principal);
static member SignInAsync : Microsoft.AspNetCore.Http.HttpContext * System.Security.Claims.ClaimsPrincipal -> System.Threading.Tasks.Task
<Extension()>
Public Function SignInAsync (context As HttpContext, principal As ClaimsPrincipal) As Task

Parámetros

context
HttpContext

Contexto HttpContext .

principal
ClaimsPrincipal

El usuario.

Devoluciones

Tarea.

Se aplica a

SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties)

Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs

Inicie sesión en una entidad de seguridad para el esquema de autenticación predeterminado. El esquema predeterminado para iniciar sesión se puede configurar mediante DefaultSignInScheme.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ SignInAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member SignInAsync : Microsoft.AspNetCore.Http.HttpContext * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function SignInAsync (context As HttpContext, principal As ClaimsPrincipal, properties As AuthenticationProperties) As Task

Parámetros

context
HttpContext

Contexto HttpContext .

principal
ClaimsPrincipal

El usuario.

Devoluciones

Tarea.

Se aplica a

SignInAsync(HttpContext, String, ClaimsPrincipal)

Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs

Inicie sesión en una entidad de seguridad para el esquema especificado.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ SignInAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, System::Security::Claims::ClaimsPrincipal ^ principal);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme, System.Security.Claims.ClaimsPrincipal principal);
static member SignInAsync : Microsoft.AspNetCore.Http.HttpContext * string * System.Security.Claims.ClaimsPrincipal -> System.Threading.Tasks.Task
<Extension()>
Public Function SignInAsync (context As HttpContext, scheme As String, principal As ClaimsPrincipal) As Task

Parámetros

context
HttpContext

Contexto HttpContext .

scheme
String

Nombre del esquema de autenticación.

principal
ClaimsPrincipal

El usuario.

Devoluciones

Tarea.

Se aplica a

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs
Source:
AuthenticationHttpContextExtensions.cs

Inicie sesión en una entidad de seguridad para el esquema especificado.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ SignInAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public static System.Threading.Tasks.Task SignInAsync (this Microsoft.AspNetCore.Http.HttpContext context, string? scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
static member SignInAsync : Microsoft.AspNetCore.Http.HttpContext * string * System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function SignInAsync (context As HttpContext, scheme As String, principal As ClaimsPrincipal, properties As AuthenticationProperties) As Task

Parámetros

context
HttpContext

Contexto HttpContext .

scheme
String

Nombre del esquema de autenticación.

principal
ClaimsPrincipal

El usuario.

Devoluciones

Tarea.

Se aplica a