Bagikan melalui


RemoteAuthenticationContext<TOptions> Kelas

Definisi

Konteks dasar untuk autentikasi jarak jauh.

generic <typename TOptions>
 where TOptions : AuthenticationSchemeOptionspublic ref class RemoteAuthenticationContext abstract : Microsoft::AspNetCore::Authentication::HandleRequestContext<TOptions>
public abstract class RemoteAuthenticationContext<TOptions> : Microsoft.AspNetCore.Authentication.HandleRequestContext<TOptions> where TOptions : AuthenticationSchemeOptions
type RemoteAuthenticationContext<'Options (requires 'Options :> AuthenticationSchemeOptions)> = class
    inherit HandleRequestContext<'Options (requires 'Options :> AuthenticationSchemeOptions)>
Public MustInherit Class RemoteAuthenticationContext(Of TOptions)
Inherits HandleRequestContext(Of TOptions)

Jenis parameter

TOptions
Warisan
RemoteAuthenticationContext<TOptions>
Turunan

Konstruktor

RemoteAuthenticationContext<TOptions>(HttpContext, AuthenticationScheme, TOptions, AuthenticationProperties)

Konstruktor.

Properti

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.

Properties

Mendapatkan atau mengatur AuthenticationProperties.

Request

Permintaan.

(Diperoleh dari BaseContext<TOptions>)
Response

Responnya.

(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.

Fail(String)

Menunjukkan bahwa autentikasi gagal.

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.

Berlaku untuk