From e176a41b387748184a1a95269b01436f2f3d51d0 Mon Sep 17 00:00:00 2001 From: Chamila Adhikarinayake Date: Wed, 28 Feb 2024 17:13:34 +0530 Subject: [PATCH 1/2] Change the tests to call product APIs with JWT --- .../java/org/wso2/am/integration/test/ClientAuthenticator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java index d5ee4aa4e5..c502d74f16 100644 --- a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java +++ b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java @@ -135,6 +135,7 @@ public static ApplicationKeyBean makeDCRRequest(DCRParamRequest dcrParamRequest) json.addProperty("tokenScope", dcrParamRequest.getTokenScope()); json.addProperty("grantType", dcrParamRequest.getGrantType()); json.addProperty("saasApp", true); + json.addProperty("tokenType", "JWT"); String clientEncoded; From b44ab93b835f34e0fff3f8b7b23a114d4024855b Mon Sep 17 00:00:00 2001 From: Chamila Adhikarinayake Date: Tue, 12 Mar 2024 12:39:00 +0530 Subject: [PATCH 2/2] Update ClientAuthenticator.java --- .../java/org/wso2/am/integration/test/ClientAuthenticator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java index c502d74f16..17b95183e5 100644 --- a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java +++ b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/ClientAuthenticator.java @@ -136,6 +136,7 @@ public static ApplicationKeyBean makeDCRRequest(DCRParamRequest dcrParamRequest) json.addProperty("grantType", dcrParamRequest.getGrantType()); json.addProperty("saasApp", true); json.addProperty("tokenType", "JWT"); + json.addProperty("userStoreDomainInSubject", true); String clientEncoded;