Skip to content

Commit

Permalink
Merge pull request quarkusio#25035 from sberyozkin/oidc_client_reacti…
Browse files Browse the repository at this point in the history
…ve_single_authorization_header

Update OidcClientReactiveFilter to ensure only a single Authorization header is set
  • Loading branch information
gsmet authored Apr 20, 2022
2 parents 731abc3 + aeb39f1 commit 844caa3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public void filter(ResteasyReactiveClientRequestContext requestContext) {
super.getTokens().subscribe().with(new Consumer<Tokens>() {
@Override
public void accept(Tokens tokens) {
requestContext.getHeaders().add(HttpHeaders.AUTHORIZATION, BEARER_SCHEME_WITH_SPACE + tokens.getAccessToken());
requestContext.getHeaders().putSingle(HttpHeaders.AUTHORIZATION,
BEARER_SCHEME_WITH_SPACE + tokens.getAccessToken());
requestContext.resume();
}
}, new Consumer<Throwable>() {
Expand Down

0 comments on commit 844caa3

Please sign in to comment.