Bagikan melalui


AuthenticationFailedContext Kelas

Definisi

Objek konteks yang digunakan untuk 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)
Warisan

Konstruktor

AuthenticationFailedContext(HttpContext, AuthenticationScheme, WsFederationOptions)

Membuat objek konteks baru

Properti

Exception

Yang Exception memicu peristiwa ini.

HttpContext

Konteksnya.

(Diperoleh dari BaseContext<TOptions>)
Options

Mendapatkan opsi autentikasi yang terkait dengan skema.

(Diperoleh dari BaseContext<TOptions>)
Principal

ClaimsPrincipal Mendapatkan yang berisi klaim pengguna.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)
Properties

Mendapatkan atau mengatur AuthenticationProperties.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)
ProtocolMessage

Dari WsFederationMessage permintaan, jika ada.

Request

Permintaan.

(Diperoleh dari BaseContext<TOptions>)
Response

Responsnya.

(Diperoleh dari BaseContext<TOptions>)
Result

HandleRequestResult yang digunakan oleh handler.

(Diperoleh dari HandleRequestContext<TOptions>)
Scheme

Skema autentikasi.

(Diperoleh dari BaseContext<TOptions>)

Metode

Fail(Exception)

Menunjukkan bahwa autentikasi gagal.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)
Fail(String)

Menunjukkan bahwa autentikasi gagal.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)
HandleResponse()

Menghentikan semua pemrosesan untuk permintaan ini dan kembali ke klien. Pemanggil bertanggung jawab untuk menghasilkan respons penuh.

(Diperoleh dari HandleRequestContext<TOptions>)
SkipHandler()

Menghentikan pemrosesan permintaan di handler saat ini.

(Diperoleh dari HandleRequestContext<TOptions>)
Success()

Panggilan berhasil membuat tiket dengan Principal dan Properties.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)

Berlaku untuk