Udostępnij przez


PolicySchemeHandler.HandleChallengeAsync(AuthenticationProperties) Metoda

Definicja

Zastąpij tę metodę, aby poradzić sobie z problemami 401, jeśli system uwierzytelniania, którego dotyczy problem, dotyczy interakcji z uwierzytelnianiem w ramach przepływu żądań. (na przykład dodanie nagłówka odpowiedzi lub zmiana wyniku 401 na 302 strony logowania lub lokalizacji logowania zewnętrznego).

protected:
 override System::Threading::Tasks::Task ^ HandleChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
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

Parametry

Zwraca

Zadanie.

Dotyczy