diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerConfiguration.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerConfiguration.java index 4c43df271c36..78344794a64b 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerConfiguration.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIManagerConfiguration.java @@ -1668,6 +1668,14 @@ private void setJWTConfiguration(OMElement omElement) { configurationElement.getFirstChildWithName(new QName(APIConstants.ENABLE_USER_CLAIMS_RETRIEVAL_FROM_KEY_MANAGER)); if (claimRetrievalElement != null) { jwtConfigurationDto.setEnableUserClaimRetrievalFromUserStore(Boolean.parseBoolean(claimRetrievalElement.getText())); + OMElement isBindFederatedUserClaims = + omElement.getFirstChildWithName(new QName(APIConstants.BINDING_FEDERATED_USER_CLAIMS)); + if (isBindFederatedUserClaims != null) { + jwtConfigurationDto.setBindFederatedUserClaims( + Boolean.parseBoolean(isBindFederatedUserClaims.getText())); + } else { + jwtConfigurationDto.setBindFederatedUserClaims(true); + } } } }