Skip to content

Commit a236a80

Browse files
authored
Merge pull request #79 from GluuFederation/issues_2417
fix(oxtrust): saml1 and saml2 get save on update
2 parents 7ace93b + 74802f8 commit a236a80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

oxTrust/server/src/main/java/org/gluu/oxtrust/action/UpdateAttributeAction.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ public String saveImpl() {
279279
return OxTrustConstants.RESULT_VALIDATION_ERROR;
280280
}
281281

282+
if (attribute.getSaml1Uri() == null || attribute.getSaml1Uri().equals("")) {
283+
attribute.setSaml1Uri("urn:gluu:dir:attribute-def:" + attributeName);
284+
}
285+
if (attribute.getSaml2Uri() == null || attribute.getSaml2Uri().equals("")) {
286+
attribute.setSaml2Uri("urn:oid:" + attributeName);
287+
}
288+
282289
attributeService.updateAttribute(this.attribute);
283290
oxTrustAuditService.audit(
284291
"ATTRIBUTE " + this.attribute.getInum() + " **" + this.attribute.getDisplayName()

0 commit comments

Comments
 (0)