AuthenticateResult.Fail Method

Definition

Overloads

Fail(Exception)

Indicates that there was a failure during authentication.

Fail(String)

Indicates that there was a failure during authentication.

Fail(Exception)

Indicates that there was a failure during authentication.

public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail (Exception failure);
Parameters
failure
Exception

The failure exception.

Returns

The result.

Fail(String)

Indicates that there was a failure during authentication.

public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail (string failureMessage);
Parameters
failureMessage
String

The failure message.

Returns

The result.

Applies to