ResultContext<TOptions> ResultContext<TOptions> ResultContext<TOptions> Class

Definition

Base context for events that produce AuthenticateResults.

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>ResultContext<TOptions>ResultContext<TOptions>

Constructors

ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions) ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions) ResultContext<TOptions>(HttpContext, AuthenticationScheme, TOptions)

Constructor.

Properties

HttpContext HttpContext HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options Options Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal Principal Principal

Gets or sets the ClaimsPrincipal containing the user claims.

Properties Properties Properties

Gets or sets the AuthenticationProperties.

Request Request Request

The request.

(Inherited from BaseContext<TOptions>)
Response Response Response

The response.

(Inherited from BaseContext<TOptions>)
Result Result Result

Gets the AuthenticateResult result.

Scheme Scheme Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Methods

Fail(Exception) Fail(Exception) Fail(Exception)

Indicates that there was a failure during authentication.

Fail(String) Fail(String) Fail(String)

Indicates that there was a failure during authentication.

NoResult() NoResult() NoResult()

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

Success() Success() Success()

Calls success creating a ticket with the Principal and Properties.

Applies to