Skip to content

Commit

Permalink
fix for identity recovery flow
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Aug 24, 2023
1 parent f3f66dd commit 2ccbcaf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Authentication doAuthenticate(

if (owner != null) {
correlationModuleAuthentication.addOwner(owner);
return createAuthenticationToken(owner, focusType);
return authentication;
} else if (correlationModuleAuthentication.isLastCorrelator()) {
if (candidateOwnerExist(correlationResult)) {
writeCandidatesToOwners(correlationResult.getCandidateOwnersMap(), correlationModuleAuthentication);
Expand All @@ -87,7 +87,8 @@ public Authentication doAuthenticate(

correlationModuleAuthentication.setPreFocus(correlationVerificationToken.getPreFocus(focusType,
correlationModuleAuthentication.getProcessedAttributes()));
return createAuthenticationToken(correlationModuleAuthentication.getOwners().get(0), focusType); //todo FIXME

return authentication;
}

CandidateOwnersMap ownersMap = correlationResult.getCandidateOwnersMap();
Expand Down

0 comments on commit 2ccbcaf

Please sign in to comment.