Bagikan melalui


MessageReceivedContext Kelas

Definisi

Objek konteks yang digunakan untuk MessageReceived(MessageReceivedContext).

public ref class MessageReceivedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::WsFederation::WsFederationOptions ^>
public class MessageReceivedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.WsFederation.WsFederationOptions>
type MessageReceivedContext = class
    inherit RemoteAuthenticationContext<WsFederationOptions>
Public Class MessageReceivedContext
Inherits RemoteAuthenticationContext(Of WsFederationOptions)
Warisan

Konstruktor

MessageReceivedContext(HttpContext, AuthenticationScheme, WsFederationOptions, AuthenticationProperties)

Membuat objek konteks baru.

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.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)
Properties

Mendapatkan atau mengatur AuthenticationProperties.

(Diperoleh dari RemoteAuthenticationContext<TOptions>)
ProtocolMessage

yang WsFederationMessage diterima pada permintaan ini.

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