AuthenticateResult Class¶
Contains the result of an Authenticate call
- Namespace
Microsoft.AspNetCore.Authentication- Assemblies
- Microsoft.AspNetCore.Authentication
Syntax¶
public class AuthenticateResult
-
class
Microsoft.AspNetCore.Authentication.AuthenticateResult
Methods¶
-
Fail(System.Exception)¶ Return type: Microsoft.AspNetCore.Authentication.AuthenticateResult public static AuthenticateResult Fail(Exception failure)
-
Fail(System.String) Return type: Microsoft.AspNetCore.Authentication.AuthenticateResult public static AuthenticateResult Fail(string failureMessage)
-
Skip()¶ Return type: Microsoft.AspNetCore.Authentication.AuthenticateResult public static AuthenticateResult Skip()
-
Success(Microsoft.AspNetCore.Authentication.AuthenticationTicket)¶ Return type: Microsoft.AspNetCore.Authentication.AuthenticateResult public static AuthenticateResult Success(AuthenticationTicket ticket)
-
Properties¶
-
Microsoft.AspNetCore.Authentication.AuthenticateResult.Failure¶ Holds failure information from the authentication.
Return type: System.Exception public Exception Failure { get; }
-
Microsoft.AspNetCore.Authentication.AuthenticateResult.Skipped¶ Indicates that this stage of authentication was skipped by user intervention.
Return type: System.Boolean public bool Skipped { get; }
-
Microsoft.AspNetCore.Authentication.AuthenticateResult.Succeeded¶ If a ticket was produced, authenticate was successful.
Return type: System.Boolean public bool Succeeded { get; }
-
Microsoft.AspNetCore.Authentication.AuthenticateResult.Ticket¶ The authentication ticket.
Return type: Microsoft.AspNetCore.Authentication.AuthenticationTicket public AuthenticationTicket Ticket { get; }
-