AuthenticationHandler<TOptions>.HandleChallengeAsync 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:
 virtual System::Threading::Tasks::Task ^ HandleChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected virtual System.Threading.Tasks.Task HandleChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
abstract member HandleChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.HandleChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overridable Function HandleChallengeAsync (properties As AuthenticationProperties) As Task

Parametry

Zwraca

Zadanie.

Dotyczy