Skip to content

Commit

Permalink
Fix authentication failure by returning NoResult() instead of Fail()
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdewid committed Jan 6, 2024
1 parent dcb360b commit c6516ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
return AuthenticateResult.Success(new AuthenticationTicket(principal, Scheme.Name));
}

return AuthenticateResult.Fail("Missing authorization header");
return AuthenticateResult.NoResult();
}
catch (AuthenticationException ex)
{
Expand Down

0 comments on commit c6516ad

Please sign in to comment.