| File: Events\AuthenticationFailedContext.cs | Web Access |
| Project: src\aspnetcore\src\Security\Authentication\Negotiate\src\Microsoft.AspNetCore.Authentication.Negotiate.csproj (Microsoft.AspNetCore.Authentication.Negotiate) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Authentication.Negotiate; /// <summary> /// State for the AuthenticationFailed event. /// </summary> public class AuthenticationFailedContext : RemoteAuthenticationContext<NegotiateOptions> { /// <summary> /// Creates a <see cref="AuthenticationFailedContext"/>. /// </summary> /// <param name="context">The HTTP request context.</param> /// <param name="scheme">The authentication scheme.</param> /// <param name="options">The negotiate authentication options.</param> public AuthenticationFailedContext( HttpContext context, AuthenticationScheme scheme, NegotiateOptions options) : base(context, scheme, options, properties: null) { } /// <summary> /// The exception that occurred while processing the authentication. /// </summary> public Exception Exception { get; set; } = default!; }