Bagikan melalui


AuthenticationFailedContext Kelas

Definisi

Status untuk peristiwa AuthenticationFailed.

public ref class AuthenticationFailedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::Negotiate::NegotiateOptions ^>
public class AuthenticationFailedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions>
type AuthenticationFailedContext = class
    inherit RemoteAuthenticationContext<NegotiateOptions>
Public Class AuthenticationFailedContext
Inherits RemoteAuthenticationContext(Of NegotiateOptions)
Warisan

Konstruktor

AuthenticationFailedContext(HttpContext, AuthenticationScheme, NegotiateOptions)

AuthenticationFailedContextMembuat .

Properti

Exception

Pengecualian yang terjadi saat memproses autentikasi.

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>)
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