Skip to content

Commit

Permalink
Merge branch 'master' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCipher committed May 29, 2024
2 parents 132834e + 07255c0 commit 8ea4857
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public Authentication authenticate(Authentication authentication) throws Authent

if (authenticationToken.getCredentials() instanceof String credentials) {
if (apiKey.equals(credentials)) {
return new ApiKeyAuthenticationToken(apiKey);
ApiKeyAuthenticationToken authenticatedToken = new ApiKeyAuthenticationToken(apiKey);
authenticatedToken.setAuthenticated(true);
return authenticatedToken;
}
}

Expand Down

0 comments on commit 8ea4857

Please sign in to comment.