Skip to content

Commit

Permalink
vtp is picky
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed May 19, 2021
1 parent c8202ea commit aa89bcb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void filter(ClientRequestContext ctx) {
LOG.trace("Veksler tokenX token for {}", ctx.getUri());
ctx.getHeaders().add(AUTHORIZATION, OIDC_AUTH_HEADER_PREFIX + client.exchange(token, audienceGenerator.audience(ctx.getUri())));
} else {
throw new IllegalStateException("Dette er intet tokenX token");
LOG.warn("Dette er intet tokenX token, sender originalt token videre til {}", ctx.getUri());
ctx.getHeaders().add(AUTHORIZATION, OIDC_AUTH_HEADER_PREFIX + token);

}
}

Expand Down

0 comments on commit aa89bcb

Please sign in to comment.