Fix not adding already authenticated IDP of an app. as a current authenticated IDP
@@ -289,6 +289,7 @@ public class DefaultStepHandler implements StepHandler {
AuthenticatedIdPData authenticatedIdPData = authenticatedIdPs.get(idp);
populateStepConfigWithAuthenticationDetails(stepConfig, authenticatedIdPData,
authenticatedStepIdps.get(idp));
+ context.getCurrentAuthenticatedIdPs().put(idp, authenticatedIdPData);
stepConfig.setCompleted(true);
request.setAttribute(
FrameworkConstants.RequestParams.FLOW_STATUS, AuthenticatorFlowStatus.SUCCESS_COMPLETED);
