Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.1, dev-master
-
None
Description
In eZ Publish 5.4, following the documentation for the multiple user providers feature (see https://doc.ez.no/display/EZP/How+to+authenticate+a+user+with+multiple+user+providers) results in an critical exception:
request.CRITICAL: Uncaught PHP Exception RuntimeException: "No encoder has been configured for account "Symfony\Component\Security\Core\User\User"." at /var/www/ezp54/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Encoder/EncoderFactory.php line 51 {"exception":"[object] (RuntimeException: No encoder has been configured for account \"Symfony\\Component\\Security\\Core\\User\\User\". at /var/www/ezp54/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Encoder/EncoderFactory.php:51)"} []
It seems the issue is a missing 'encoders' config in security.yml:
security: ... encoders: Symfony\Component\Security\Core\User\User: plaintext