Handle getSubject for already authenticated sessions
Resolves
@@ -97,8 +97,13 @@ public class JsStep extends AbstractJSContextMemberObject {
if (authenticatedIdp != null) {
AuthenticatedIdPData idPData = getContext().getCurrentAuthenticatedIdPs().get(authenticatedIdp);
+ if (idPData == null) {
+ idPData = getContext().getPreviousAuthenticatedIdPs().get(authenticatedIdp);
+ }
+ if (idPData != null) {
return idPData.getUser();
}
+ }
return null;
}
