ResultContext<TOptions> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |