From 29d5aefda0b619978c983e990f761d6b63029cb8 Mon Sep 17 00:00:00 2001 From: Ashera Silva Date: Mon, 11 Sep 2023 21:18:57 +0530 Subject: [PATCH] Fix URLSafeJWTTestCase --- .../am/integration/tests/jwt/urlsafe/URLSafeJWTTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/jwt/urlsafe/URLSafeJWTTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/jwt/urlsafe/URLSafeJWTTestCase.java index b175554f07..1b6191d48a 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/jwt/urlsafe/URLSafeJWTTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/jwt/urlsafe/URLSafeJWTTestCase.java @@ -212,7 +212,7 @@ public void testEnableJWTAndClaimsForJWTApp() throws Exception { JSONObject jsonHeaderObject = new JSONObject(decodedJWTHeaderString); Assert.assertEquals(jsonHeaderObject.getString("typ"), "JWT"); Assert.assertEquals(jsonHeaderObject.getString("alg"), "RS256"); - Assert.assertFalse(jsonHeaderObject.has("kid")); + Assert.assertTrue(jsonHeaderObject.has("kid")); JSONObject jsonObject = new JSONObject(decodedJWTString); // check default claims