RemoteAuthenticationContext<TOptions> Sınıf

Tanım

Uzaktan kimlik doğrulaması için temel bağlam.

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)

Tür Parametreleri

TOptions
Devralma
RemoteAuthenticationContext<TOptions>
Türetilmiş

Oluşturucular

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

Oluşturucu.

Özellikler

HttpContext

Bağlam.

(Devralındığı yer: BaseContext<TOptions>)
Options

Şemayla ilişkili kimlik doğrulama seçeneklerini alır.

(Devralındığı yer: BaseContext<TOptions>)
Principal

ClaimsPrincipal Kullanıcı taleplerini içeren öğesini alır.

Properties

öğesini alır veya ayarlar AuthenticationProperties.

Request

İstek.

(Devralındığı yer: BaseContext<TOptions>)
Response

Yanıt.

(Devralındığı yer: BaseContext<TOptions>)
Result

HandleRequestResult İşleyici tarafından kullanılan.

(Devralındığı yer: HandleRequestContext<TOptions>)
Scheme

Kimlik doğrulama düzeni.

(Devralındığı yer: BaseContext<TOptions>)

Yöntemler

Fail(Exception)

Kimlik doğrulamasının başarısız olduğunu gösterir.

Fail(String)

Kimlik doğrulamasının başarısız olduğunu gösterir.

HandleResponse()

Bu istek için tüm işlemleri sonlandırın ve istemciye dönün. Arayan, tam yanıtı oluşturmakla sorumludur.

(Devralındığı yer: HandleRequestContext<TOptions>)
SkipHandler()

Geçerli işleyicide isteğin işlenmesini sonlandırın.

(Devralındığı yer: HandleRequestContext<TOptions>)
Success()

ve Propertiesile bilet oluşturma başarısını Principal çağırır.

Şunlara uygulanır