diff --git a/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticateResult.cs b/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticateResult.cs index bb9bbb97..454416eb 100644 --- a/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticateResult.cs +++ b/src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticateResult.cs @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Authentication /// public class AuthenticateResult { - private AuthenticateResult() { } + protected AuthenticateResult() { } /// /// If a ticket was produced, authenticate was successful. @@ -21,7 +21,7 @@ private AuthenticateResult() { } /// /// The authentication ticket. /// - public AuthenticationTicket Ticket { get; private set; } + public AuthenticationTicket Ticket { get; protected set; } /// /// Gets the claims-principal with authenticated user identities. @@ -36,18 +36,12 @@ private AuthenticateResult() { } /// /// Holds failure information from the authentication. /// - public Exception Failure { get; private set; } - - /// - /// Indicates that stage of authentication was directly handled by user intervention and no - /// further processing should be attempted. - /// - public bool Handled { get; private set; } + public Exception Failure { get; protected set; } /// /// Indicates that there was no information returned for this authentication scheme. /// - public bool Nothing { get; private set; } + public bool Nothing { get; protected set; } /// /// Indicates that authentication was successful. @@ -63,16 +57,6 @@ public static AuthenticateResult Success(AuthenticationTicket ticket) return new AuthenticateResult() { Ticket = ticket }; } - /// - /// Indicates that stage of authentication was directly handled by user intervention and no - /// further processing should be attempted. - /// - /// The result. - public static AuthenticateResult Handle() - { - return new AuthenticateResult() { Handled = true }; - } - /// /// Indicates that there was no information returned for this authentication scheme. ///