Condividi tramite


AuthenticationHttpContextExtensions.SignInAsync Metodo

Definizione

Overload

SignInAsync(HttpContext, ClaimsPrincipal)

Accedere a un'entità per lo schema di autenticazione predefinito. Lo schema predefinito per l'accesso può essere configurato usando DefaultSignInScheme.

SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties)

Accedere a un'entità per lo schema di autenticazione predefinito. Lo schema predefinito per l'accesso può essere configurato usando DefaultSignInScheme.

SignInAsync(HttpContext, String, ClaimsPrincipal)

Accedere a un'entità per lo schema specificato.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Accedere a un'entità per lo schema specificato.

SignInAsync(HttpContext, ClaimsPrincipal)

Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs

Accedere a un'entità per lo schema di autenticazione predefinito. Lo schema predefinito per l'accesso può essere configurato usando 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

Parametri

context
HttpContext

Contesto HttpContext .

principal
ClaimsPrincipal

Utente.

Restituisce

Attività.

Si applica a

SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties)

Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs

Accedere a un'entità per lo schema di autenticazione predefinito. Lo schema predefinito per l'accesso può essere configurato usando 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

Parametri

context
HttpContext

Contesto HttpContext .

principal
ClaimsPrincipal

Utente.

Restituisce

Attività.

Si applica a

SignInAsync(HttpContext, String, ClaimsPrincipal)

Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs

Accedere a un'entità per lo schema specificato.

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

Parametri

context
HttpContext

Contesto HttpContext .

scheme
String

Nome dello schema di autenticazione.

principal
ClaimsPrincipal

Utente.

Restituisce

Attività.

Si applica a

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs
Origine:
AuthenticationHttpContextExtensions.cs

Accedere a un'entità per lo schema specificato.

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

Parametri

context
HttpContext

Contesto HttpContext .

scheme
String

Nome dello schema di autenticazione.

principal
ClaimsPrincipal

Utente.

Restituisce

Attività.

Si applica a