Share via


AuthenticationHandler<TOptions>.HandleUnauthorizedAsync Yöntem

Tanım

Söz konusu kimlik doğrulama şeması, istek akışının bir parçası olarak bir kimlik doğrulama etkileşimiyle ilgileniyorsa, 401 sınama endişeleriyle başa çıkmak için bu yöntemi geçersiz kılın. (yanıt üst bilgisi ekleme veya 401 sonucunu oturum açma sayfasının veya dış oturum açma konumunun 302'sine değiştirme gibi.)

protected:
 virtual System::Threading::Tasks::Task<bool> ^ HandleUnauthorizedAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
protected virtual System.Threading.Tasks.Task<bool> HandleUnauthorizedAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
abstract member HandleUnauthorizedAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
override this.HandleUnauthorizedAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
Protected Overridable Function HandleUnauthorizedAsync (context As ChallengeContext) As Task(Of Boolean)

Parametreler

Döndürülenler

Döndürülen boole artık kullanılmaz.

Şunlara uygulanır