Skip to content

Commit

Permalink
Merge pull request #79 from GluuFederation/issues_2417
Browse files Browse the repository at this point in the history
fix(oxtrust): saml1 and saml2 get save on update
  • Loading branch information
yurem authored Jan 15, 2025
2 parents 7ace93b + 74802f8 commit a236a80
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ public String saveImpl() {
return OxTrustConstants.RESULT_VALIDATION_ERROR;
}

if (attribute.getSaml1Uri() == null || attribute.getSaml1Uri().equals("")) {
attribute.setSaml1Uri("urn:gluu:dir:attribute-def:" + attributeName);
}
if (attribute.getSaml2Uri() == null || attribute.getSaml2Uri().equals("")) {
attribute.setSaml2Uri("urn:oid:" + attributeName);
}

attributeService.updateAttribute(this.attribute);
oxTrustAuditService.audit(
"ATTRIBUTE " + this.attribute.getInum() + " **" + this.attribute.getDisplayName()
Expand Down

0 comments on commit a236a80

Please sign in to comment.