Skip to content

Commit

Permalink
MID-8842 ninja - authentication name/identifier processor + test (imp…
Browse files Browse the repository at this point in the history
…rovement)
  • Loading branch information
1azyman committed Jul 26, 2023
1 parent 528ad16 commit c06670c
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,25 @@ public boolean process(PrismObject<SecurityPolicyType> object, ItemPath path) th
Object parent = getItemParent(object, path);
if (parent instanceof AuthenticationSequenceType) {
AuthenticationSequenceType auth = (AuthenticationSequenceType) parent;
auth.setIdentifier(auth.getName());
if (auth.getIdentifier() == null) {
auth.setIdentifier(auth.getName());
}
return true;
}

if (parent instanceof AuthenticationSequenceModuleType) {
AuthenticationSequenceModuleType module = (AuthenticationSequenceModuleType) parent;
module.setIdentifier(module.getName());
if (module.getIdentifier() == null) {
module.setIdentifier(module.getName());
}
return true;
}

if (parent instanceof AbstractAuthenticationModuleType) {
AbstractAuthenticationModuleType module = (AbstractAuthenticationModuleType) parent;
module.setIdentifier(module.getName());
if (module.getIdentifier() == null) {
module.setIdentifier(module.getName());
}
return true;
}

Expand Down

0 comments on commit c06670c

Please sign in to comment.