Skip to content

Commit

Permalink
Fix token creation for persist users function
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpaolo.didato@emeal.nttdata.com authored and pierpaolo.didato@emeal.nttdata.com committed Jul 17, 2024
1 parent c85780a commit 347a3bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class AuthenticationPropagationHeadersFactory implements ClientHeadersFac
@Override
public MultivaluedMap<String, String> update(MultivaluedMap<String, String> incomingHeaders, MultivaluedMap<String, String> clientOutgoingHeaders) {
String bearerToken;
if (!incomingHeaders.isEmpty()) {
if (!clientOutgoingHeaders.isEmpty() && clientOutgoingHeaders.containsKey("user-uuid")) {
final String uuid = incomingHeaders.get("user-uuid").get(0);
bearerToken = tokenService.createJwt(uuid);
} else {
Expand Down

0 comments on commit 347a3bb

Please sign in to comment.