Skip to content

Commit

Permalink
Fix federated claim config (#12188)
Browse files Browse the repository at this point in the history
  • Loading branch information
shilmyhasan committed Nov 28, 2023
1 parent d703704 commit f45e777
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit f45e777

Please sign in to comment.