Partager via


OAuthHandler<TOptions>.HandleChallengeAsync Méthode

Définition

Remplacez cette méthode pour traiter les problèmes de défi 401, si un schéma d’authentification en question traite une interaction d’authentification dans le cadre de son flux de requête. Cela s'apparente à une réponse d'en-tête ou à remplacer le résultat 401 par le résultat 302 dans une page de connexion ou à un emplacement de connexion externe.

protected:
 override System::Threading::Tasks::Task ^ HandleChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected override System.Threading.Tasks.Task HandleChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
override this.HandleChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overrides Function HandleChallengeAsync (properties As AuthenticationProperties) As Task

Paramètres

Retours

Tâche.

S’applique à