Skip to content

Commit

Permalink
Condition flipped
Browse files Browse the repository at this point in the history
Signed-off-by: David Kral <david.k.kral@oracle.com>
  • Loading branch information
Verdent committed Jan 2, 2024
1 parent ed03c79 commit 46fb674
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public void testAuthenticationWithExpiredIdToken(WebTarget webTarget) {
.request()
.property(ClientProperties.FOLLOW_REDIRECTS, false);
for (String setCookie : setCookies) {
if (!setCookie.startsWith(DEFAULT_ID_COOKIE_NAME + "=")) {
request.header(HttpHeaders.COOKIE, setCookie);
} else {
if (setCookie.startsWith(DEFAULT_ID_COOKIE_NAME + "=")) {
request.header(HttpHeaders.COOKIE, DEFAULT_ID_COOKIE_NAME + "=" + signedJwt.tokenContent());
} else {
request.header(HttpHeaders.COOKIE, setCookie);
}
}

Expand Down

0 comments on commit 46fb674

Please sign in to comment.