Skip to content

Commit

Permalink
Merge pull request #12138 from BLasan/fix-auth-header-issue
Browse files Browse the repository at this point in the history
Fix: Internal API Key challenge string getting Appended
  • Loading branch information
npamudika authored Feb 6, 2024
2 parents c34ae87 + cd462b7 commit 9fbdd74
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ protected String getAuthenticatorsChallengeString() {
StringBuilder challengeString = new StringBuilder();
if (authenticators != null) {
for (Authenticator authenticator : authenticators) {
if (Boolean.parseBoolean(System.getProperty("removeInternalAPIKeyRealm")) && authenticator instanceof InternalAPIKeyAuthenticator) {
continue;
}
challengeString.append(authenticator.getChallengeString()).append(", ");
}
}
Expand Down

0 comments on commit 9fbdd74

Please sign in to comment.