Delen via


ResultContext<TOptions> Class

Definition

Base context for events that produce AuthenticateResults.

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

Type Parameters

TOptions
Inheritance
ResultContext<TOptions>
Derived

Constructors

ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

Initializes a new instance of ResultContext<TOptions>.

Properties

HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal

Gets or sets the ClaimsPrincipal containing the user claims.

Properties

Gets or sets the AuthenticationProperties.

Request

The request.

(Inherited from BaseContext<TOptions>)
Response

The response.

(Inherited from BaseContext<TOptions>)
Result

Gets the AuthenticateResult result.

Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Methods

Fail(Exception)

Indicates that there was a failure during authentication.

Fail(String)

Indicates that there was a failure during authentication.

NoResult()

Indicates that there was no information returned for this authentication scheme.

Success()

Calls success creating a ticket with the Principal and Properties.

Applies to