Skip to content

Commit

Permalink
MID-8842 ninja - authentication name/identifier processor, test impro…
Browse files Browse the repository at this point in the history
…vement
  • Loading branch information
1azyman committed Jul 26, 2023
1 parent c06670c commit 7bf7ca8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public boolean process(PrismObject<SecurityPolicyType> object, ItemPath path) th
if (auth.getIdentifier() == null) {
auth.setIdentifier(auth.getName());
}
auth.setName(null);
return true;
}

Expand All @@ -62,6 +63,7 @@ public boolean process(PrismObject<SecurityPolicyType> object, ItemPath path) th
if (module.getIdentifier() == null) {
module.setIdentifier(module.getName());
}
module.setName(null);
return true;
}

Expand All @@ -70,6 +72,7 @@ public boolean process(PrismObject<SecurityPolicyType> object, ItemPath path) th
if (module.getIdentifier() == null) {
module.setIdentifier(module.getName());
}
module.setName(null);
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
<modules>
<saml2 id="1">
<identifier>deprecated items</identifier>
<name>deprecated items</name>
</saml2>
</modules>
<sequence id="2">
<identifier>sequencename</identifier>
<name>sequencename</name>
<module id="3">
<identifier>deprecated items</identifier>
<name>deprecated items</name>
</module>
<module id="4">
<identifier>unchanged</identifier>
</module>
</sequence>
</authentication>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<module id="3">
<name>deprecated items</name>
</module>
<module id="4">
<identifier>unchanged</identifier>
</module>
</sequence>
</authentication>
</securityPolicy>

0 comments on commit 7bf7ca8

Please sign in to comment.