Skip to content

Commit

Permalink
Fixes an apocalyptic level typo
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Mar 21, 2024
1 parent 03459a2 commit 3aecdc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public boolean authenticate(final SecurityRequestChannel request) {
if (authCredentials == null
&& anonymousAuthEnabled
&& isRequestForAnonymousLogin(request.params())
&& checkIfRequestContainsBasicAuthHeader(request.getHeaders())) {
&& !checkIfRequestContainsBasicAuthHeader(request.getHeaders())) {
final String tenant = resolveTenantFrom(request);
User anonymousUser = new User(User.ANONYMOUS.getName(), new HashSet<String>(User.ANONYMOUS.getRoles()), null);
anonymousUser.setRequestedTenant(tenant);
Expand Down

0 comments on commit 3aecdc6

Please sign in to comment.