IAuthenticationService.ChallengeAsync Metodo

Definizione

Sfidare lo schema di autenticazione specificato. Un problema di autenticazione può essere generato quando un utente non autenticato richiede un endpoint che richiede l'autenticazione.

public:
 System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Http.HttpContext context, string? scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
abstract member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function ChallengeAsync (context As HttpContext, scheme As String, properties As AuthenticationProperties) As Task

Parametri

context
HttpContext

Oggetto HttpContext.

scheme
String

Nome dello schema di autenticazione.

Restituisce

Attività.

Si applica a