Skip to content

Commit

Permalink
Merge pull request #9 from wso2-extensions/revert-8-master
Browse files Browse the repository at this point in the history
Revert "Resolving Claim Handling issue"
  • Loading branch information
malithie committed Apr 11, 2016
2 parents 3c32dd2 + 2c42859 commit 9b72982
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ public void handle(SAMLCallback callback) throws SAMLException {
applicationManagementService.getServiceProviderByClientId(endPointReference, "wstrust",
tenantDomain);
ClaimMapping[] claimMappings = serviceProvider.getClaimConfig().getClaimMappings();
if (claimMappings.length == 0) {
SAMLAttribute attribute = new SAMLAttribute("Name",
"https://rahas.apache.org/saml/attrns", null, -1, Arrays
.asList(new String[]{"Colombo/Rahas"}));
attrCallback.addAttributes(attribute);
}
for (int i = 0; i < claimMappings.length; i++) {
String localClaimUri = claimMappings[i].getLocalClaim().getClaimUri();
String remoteClaimUri = claimMappings[i].getRemoteClaim().getClaimUri();
Expand Down

0 comments on commit 9b72982

Please sign in to comment.