Fixed EZP-18520 - eZ Flow cannot handle sso logins
(cherry picked from commit e6bde50bdb3c915cd4fd80ebc6f02821a8c7cb54)