// 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 handler providers. /// public class RemoteFailureContext : HandleRequestContext { public RemoteFailureContext( HttpContext context, AuthenticationScheme scheme, RemoteAuthenticationOptions options, Exception failure) : base(context, scheme, options) { Failure = failure; } /// /// User friendly error message for the error. /// public Exception Failure { get; set; } /// /// Additional state values for the authentication session. /// public AuthenticationProperties Properties { get; set; } } }