AuthenticateResult.Fail AuthenticateResult.Fail AuthenticateResult.Fail Method

Definition

Overloads

Fail(Exception) Fail(Exception) Fail(Exception)

Indicates that there was a failure during authentication.

Fail(String) Fail(String) Fail(String)

Indicates that there was a failure during authentication.

Fail(Exception, AuthenticationProperties) Fail(Exception, AuthenticationProperties) Fail(Exception, AuthenticationProperties)

Indicates that there was a failure during authentication.

Fail(String, AuthenticationProperties) Fail(String, AuthenticationProperties) Fail(String, AuthenticationProperties)

Indicates that there was a failure during authentication.

Fail(Exception) Fail(Exception) Fail(Exception)

Indicates that there was a failure during authentication.

public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail (Exception failure);
static member Fail : Exception -> Microsoft.AspNetCore.Authentication.AuthenticateResult
Public Shared Function Fail (failure As Exception) As AuthenticateResult
Parameters
failure
Exception Exception Exception

The failure exception.

Returns

Fail(String) Fail(String) Fail(String)

Indicates that there was a failure during authentication.

public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail (string failureMessage);
static member Fail : string -> Microsoft.AspNetCore.Authentication.AuthenticateResult
Public Shared Function Fail (failureMessage As String) As AuthenticateResult
Parameters
failureMessage
String String String

The failure message.

Returns

Fail(Exception, AuthenticationProperties) Fail(Exception, AuthenticationProperties) Fail(Exception, AuthenticationProperties)

Indicates that there was a failure during authentication.

public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail (Exception failure, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
static member Fail : Exception * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Authentication.AuthenticateResult
Public Shared Function Fail (failure As Exception, properties As AuthenticationProperties) As AuthenticateResult
Parameters
failure
Exception Exception Exception

The failure exception.

properties
AuthenticationProperties AuthenticationProperties AuthenticationProperties

Additional state values for the authentication session.

Returns

Fail(String, AuthenticationProperties) Fail(String, AuthenticationProperties) Fail(String, AuthenticationProperties)

Indicates that there was a failure during authentication.

public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail (string failureMessage, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
static member Fail : string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Authentication.AuthenticateResult
Public Shared Function Fail (failureMessage As String, properties As AuthenticationProperties) As AuthenticateResult
Parameters
failureMessage
String String String

The failure message.

properties
AuthenticationProperties AuthenticationProperties AuthenticationProperties

Additional state values for the authentication session.

Returns

Applies to