diff --git a/tests/integration/oidc/src/test/java/io/helidon/tests/integration/oidc/IdTokenIT.java b/tests/integration/oidc/src/test/java/io/helidon/tests/integration/oidc/IdTokenIT.java index 94eedd3ce04..b8efaae7004 100644 --- a/tests/integration/oidc/src/test/java/io/helidon/tests/integration/oidc/IdTokenIT.java +++ b/tests/integration/oidc/src/test/java/io/helidon/tests/integration/oidc/IdTokenIT.java @@ -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); } }