Skip to content

Commit

Permalink
Update OidcClientReactiveFilter to ensure only a single Authorization…
Browse files Browse the repository at this point in the history
… header is set

(cherry picked from commit aeb39f1)
  • Loading branch information
sberyozkin authored and gsmet committed May 18, 2022
1 parent d2b4b15 commit 5a44b1b
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 5a44b1b

Please sign in to comment.