Sdílet prostřednictvím


AuthenticationFailedContext Třída

Definice

Kontextový objekt použitý v pro AuthenticationFailed(AuthenticationFailedContext).

public ref class AuthenticationFailedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::WsFederation::WsFederationOptions ^>
public class AuthenticationFailedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.WsFederation.WsFederationOptions>
type AuthenticationFailedContext = class
    inherit RemoteAuthenticationContext<WsFederationOptions>
Public Class AuthenticationFailedContext
Inherits RemoteAuthenticationContext(Of WsFederationOptions)
Dědičnost

Konstruktory

AuthenticationFailedContext(HttpContext, AuthenticationScheme, WsFederationOptions)

Vytvoří nový objekt kontextu.

Vlastnosti

Exception

Událost Exception , která tuto událost aktivovala.

HttpContext

Kontext

(Zděděno od BaseContext<TOptions>)
Options

Získá možnosti ověřování přidružené k schématu.

(Zděděno od BaseContext<TOptions>)
Principal

ClaimsPrincipal Získá obsahující deklarace identity uživatele.

(Zděděno od RemoteAuthenticationContext<TOptions>)
Properties

Získá nebo nastaví AuthenticationProperties.

(Zděděno od RemoteAuthenticationContext<TOptions>)
ProtocolMessage

Případná WsFederationMessage hodnota z požadavku.

Request

Žádost

(Zděděno od BaseContext<TOptions>)
Response

Odpověď.

(Zděděno od BaseContext<TOptions>)
Result

Používá HandleRequestResult se obslužná rutina.

(Zděděno od HandleRequestContext<TOptions>)
Scheme

Schéma ověřování.

(Zděděno od BaseContext<TOptions>)

Metody

Fail(Exception)

Označuje, že ověřování selhalo.

(Zděděno od RemoteAuthenticationContext<TOptions>)
Fail(String)

Označuje, že ověřování selhalo.

(Zděděno od RemoteAuthenticationContext<TOptions>)
HandleResponse()

Ukončete veškeré zpracování tohoto požadavku a vraťte se do klienta. Volající zodpovídá za vygenerování úplné odpovědi.

(Zděděno od HandleRequestContext<TOptions>)
SkipHandler()

Ukončete zpracování požadavku v aktuální obslužné rutině.

(Zděděno od HandleRequestContext<TOptions>)
Success()

Zavolá úspěšné vytvoření lístku Principal pomocí a Properties.

(Zděděno od RemoteAuthenticationContext<TOptions>)

Platí pro