From 06516aaf9e37b9c76a3b453fc538d1d05d6d931d Mon Sep 17 00:00:00 2001 From: Sudeep7353 <103890430+Sudeep7353@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:48:23 +0530 Subject: [PATCH] MOSIP-36219 - The PMS (and eSignet) Create OIDC endpoints allow duplicate public key (#959) Signed-off-by: sudeep --- .../oauth/client/service/impl/ClientManagementServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner/partner-management-service/src/main/java/io/mosip/pms/oauth/client/service/impl/ClientManagementServiceImpl.java b/partner/partner-management-service/src/main/java/io/mosip/pms/oauth/client/service/impl/ClientManagementServiceImpl.java index 04d6b87463..f98f369932 100644 --- a/partner/partner-management-service/src/main/java/io/mosip/pms/oauth/client/service/impl/ClientManagementServiceImpl.java +++ b/partner/partner-management-service/src/main/java/io/mosip/pms/oauth/client/service/impl/ClientManagementServiceImpl.java @@ -540,7 +540,7 @@ public ClientDetail processUpdateOIDCClient(String clientId, ClientDetailUpdateR private String getJWKString(Map jwk) { try { JWK jsonWebKey = JWK.parse(jwk); - return jsonWebKey.toJSONObject().toString(); + return objectMapper.writeValueAsString(jsonWebKey.toJSONObject()); } catch (Exception e) { LOGGER.error("createOIDCClient::Failed to process Client Public Key"); throw new PartnerServiceException(ErrorCode.FAILED_TO_PROCESS_JWK.getErrorCode(),