OAuthCreatingTicketContext Klasa

Definicja

Zawiera informacje o sesji logowania, a także o użytkowniku ClaimsIdentity.

public ref class OAuthCreatingTicketContext : Microsoft::AspNetCore::Authentication::BaseContext
public ref class OAuthCreatingTicketContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::OAuth::OAuthOptions ^>
public class OAuthCreatingTicketContext : Microsoft.AspNetCore.Authentication.BaseContext
public class OAuthCreatingTicketContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions>
type OAuthCreatingTicketContext = class
    inherit BaseContext
type OAuthCreatingTicketContext = class
    inherit ResultContext<OAuthOptions>
Public Class OAuthCreatingTicketContext
Inherits BaseContext
Public Class OAuthCreatingTicketContext
Inherits ResultContext(Of OAuthOptions)
Dziedziczenie
OAuthCreatingTicketContext
Dziedziczenie

Konstruktory

OAuthCreatingTicketContext(AuthenticationTicket, HttpContext, OAuthOptions, HttpClient, OAuthTokenResponse)

Inicjuje nowy OAuthCreatingTicketContextelement .

OAuthCreatingTicketContext(AuthenticationTicket, HttpContext, OAuthOptions, HttpClient, OAuthTokenResponse, JObject)

Inicjuje nowy OAuthCreatingTicketContextelement .

OAuthCreatingTicketContext(ClaimsPrincipal, AuthenticationProperties, HttpContext, AuthenticationScheme, OAuthOptions, HttpClient, OAuthTokenResponse)

Inicjuje nowy OAuthCreatingTicketContextelement .

OAuthCreatingTicketContext(ClaimsPrincipal, AuthenticationProperties, HttpContext, AuthenticationScheme, OAuthOptions, HttpClient, OAuthTokenResponse, JObject)

Inicjuje nowy OAuthCreatingTicketContextelement .

OAuthCreatingTicketContext(ClaimsPrincipal, AuthenticationProperties, HttpContext, AuthenticationScheme, OAuthOptions, HttpClient, OAuthTokenResponse, JsonElement)

Inicjuje nowy OAuthCreatingTicketContextelement .

Właściwości

AccessToken

Pobiera token dostępu udostępniany przez usługę uwierzytelniania.

Backchannel

Pobiera kanał backchannel używany do komunikowania się z dostawcą.

ExpiresIn

Pobiera czas wygaśnięcia tokenu dostępu.

HttpContext

Zawiera informacje o sesji logowania, a także o użytkowniku ClaimsIdentity.

(Odziedziczone po BaseContext)
HttpContext

Kontekst.

(Odziedziczone po BaseContext<TOptions>)
Identity

Pobiera główną tożsamość uwidacznianą przez bilet uwierzytelniania. Ta właściwość zwraca wartość null , gdy bilet to null.

Options

Zawiera informacje o sesji logowania, a także o użytkowniku ClaimsIdentity.

Options

Pobiera opcje uwierzytelniania skojarzone ze schematem.

(Odziedziczone po BaseContext<TOptions>)
Principal

Pobiera lub ustawia ClaimsPrincipal zawierające oświadczenia użytkownika.

(Odziedziczone po ResultContext<TOptions>)
Properties

Pobiera lub ustawia wartość AuthenticationProperties.

(Odziedziczone po ResultContext<TOptions>)
RefreshToken

Pobiera token odświeżania dostarczony przez usługę uwierzytelniania.

Request

Zawiera informacje o sesji logowania, a także o użytkowniku ClaimsIdentity.

(Odziedziczone po BaseContext)
Request

Żądanie.

(Odziedziczone po BaseContext<TOptions>)
Response

Zawiera informacje o sesji logowania, a także o użytkowniku ClaimsIdentity.

(Odziedziczone po BaseContext)
Response

Odpowiedź.

(Odziedziczone po BaseContext<TOptions>)
Result

AuthenticateResult Pobiera wynik.

(Odziedziczone po ResultContext<TOptions>)
Scheme

Schemat uwierzytelniania.

(Odziedziczone po BaseContext<TOptions>)
Ticket

Zostanie AuthenticationTicket utworzony element .

TokenResponse

Pobiera odpowiedź tokenu zwróconą przez usługę uwierzytelniania.

TokenType

Pobiera typ tokenu dostępu udostępniany przez usługę uwierzytelniania.

User

Pobiera użytkownika serializowanego w formacie JSON lub pustego JsonElement , jeśli nie jest dostępny.

Metody

Fail(Exception)

Wskazuje, że podczas uwierzytelniania wystąpił błąd.

(Odziedziczone po ResultContext<TOptions>)
Fail(String)

Wskazuje, że podczas uwierzytelniania wystąpił błąd.

(Odziedziczone po ResultContext<TOptions>)
NoResult()

Wskazuje, że dla tego schematu uwierzytelniania nie zostały zwrócone żadne informacje.

(Odziedziczone po ResultContext<TOptions>)
RunClaimActions()

UserSprawdza , czy istnieją wymagane dane i opcjonalnie dodaj je do Identityelementu .

RunClaimActions(JObject)

Zawiera informacje o sesji logowania, a także o użytkowniku ClaimsIdentity.

RunClaimActions(JsonElement)

Sprawdza określony userDataelement , określa, czy wymagane dane są obecne, i opcjonalnie dodaj je do Identityelementu .

Success()

Wywołuje powodzenie tworzenia biletu za pomocą elementu Principal i Properties.

(Odziedziczone po ResultContext<TOptions>)

Dotyczy