diff --git a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.consent.mgt.extensions/src/main/java/org/wso2/financial/services/accelerator/consent/mgt/extensions/authorize/impl/ExternalAPIConsentRetrievalStep.java b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.consent.mgt.extensions/src/main/java/org/wso2/financial/services/accelerator/consent/mgt/extensions/authorize/impl/ExternalAPIConsentRetrievalStep.java index b87413e4f..d0f62f890 100644 --- a/financial-services-accelerator/components/org.wso2.financial.services.accelerator.consent.mgt.extensions/src/main/java/org/wso2/financial/services/accelerator/consent/mgt/extensions/authorize/impl/ExternalAPIConsentRetrievalStep.java +++ b/financial-services-accelerator/components/org.wso2.financial.services.accelerator.consent.mgt.extensions/src/main/java/org/wso2/financial/services/accelerator/consent/mgt/extensions/authorize/impl/ExternalAPIConsentRetrievalStep.java @@ -148,9 +148,6 @@ public void execute(ConsentData consentData, JSONObject jsonObject) throws Conse JSONObject consentDataJSON = new JSONObject(objectMapper.writeValueAsString(responseDTO.getConsentData())); - // Remove consent metadata - consentDataJSON.remove(ConsentAuthorizeConstants.CONSENT_METADATA); - jsonObject.put(ConsentAuthorizeConstants.CONSENT_DATA, consentDataJSON); }