AuthenticationFailedContext Class

Definition

State for the AuthenticationFailed event.

public ref class AuthenticationFailedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::Negotiate::NegotiateOptions ^>
public class AuthenticationFailedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.Negotiate.NegotiateOptions>
type AuthenticationFailedContext = class
    inherit RemoteAuthenticationContext<NegotiateOptions>
Public Class AuthenticationFailedContext
Inherits RemoteAuthenticationContext(Of NegotiateOptions)
Inheritance

Constructors

AuthenticationFailedContext(HttpContext, AuthenticationScheme, NegotiateOptions)

Creates a AuthenticationFailedContext.

Properties

Exception

The exception that occurred while processing the authentication.

HttpContext

The context.

(Inherited from BaseContext<TOptions>)
Options

Gets the authentication options associated with the scheme.

(Inherited from BaseContext<TOptions>)
Principal

Gets the ClaimsPrincipal containing the user claims.

(Inherited from RemoteAuthenticationContext<TOptions>)
Properties

Gets or sets the AuthenticationProperties.

(Inherited from RemoteAuthenticationContext<TOptions>)
Request

The request.

(Inherited from BaseContext<TOptions>)
Response

The response.

(Inherited from BaseContext<TOptions>)
Result

The HandleRequestResult which is used by the handler.

(Inherited from HandleRequestContext<TOptions>)
Scheme

The authentication scheme.

(Inherited from BaseContext<TOptions>)

Methods

Fail(Exception)

Indicates that authentication failed.

(Inherited from RemoteAuthenticationContext<TOptions>)
Fail(String)

Indicates that authentication failed.

(Inherited from RemoteAuthenticationContext<TOptions>)
HandleResponse()

Discontinue all processing for this request and return to the client. The caller is responsible for generating the full response.

(Inherited from HandleRequestContext<TOptions>)
SkipHandler()

Discontinue processing the request in the current handler.

(Inherited from HandleRequestContext<TOptions>)
Success()

Calls success creating a ticket with the Principal and Properties.

(Inherited from RemoteAuthenticationContext<TOptions>)

Applies to