Skip to content

Commit

Permalink
Fixes forbiddenApis exception
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Oct 14, 2022
1 parent 68e4ff3 commit af1b10f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void authenticateWithToken(final HttpHeaderToken token) {
private boolean handleBasicAuth(final HttpHeaderToken token) throws AuthenticationException {

final byte[] decodedAuthHeader = Base64.getDecoder().decode(token.getHeaderValue().substring("Basic".length()).trim());
final String[] decodedUserNamePassword = new String(decodedAuthHeader).split(":");
final String[] decodedUserNamePassword = decodedAuthHeader.toString().split(":");

UsernamePasswordToken usernamePasswordToken = new UsernamePasswordToken(decodedUserNamePassword[0], decodedUserNamePassword[1]);

Expand Down

0 comments on commit af1b10f

Please sign in to comment.