// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Authentication { /// /// Provides failure context information to middleware providers. /// public class FailureContext : BaseControlContext { public FailureContext(HttpContext context, Exception failure) : base(context) { Failure = failure; } /// /// User friendly error message for the error. /// public Exception Failure { get; set; } } }