Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31457

There is no user provider for user "eZ\Publish\Core\MVC\Symfony\Security\UserWrapped"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.5.9
    • Fix Version/s: 3.0.0-rc1, 3.0.0, 2.5.10
    • Component/s: Security
    • Labels:
      None

      Description

      Issue related to https://github.com/symfony/symfony/pull/35065

      Steps to reproduce

      1. Configure multiple user providers e.g.

      security: 
          encoders: 
              # this internal class is used by Symfony to represent in-memory users
              Symfony\Component\Security\Core\User\User: 'plaintext'
      
          # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
          providers: 
              chain_provider: 
                  chain: 
                      providers: [ezpublish, in_memory]
              ezpublish: 
                  id: ezpublish.security.user_provider
              in_memory: 
                  memory: 
                      users: 
                          example: { password: 'password', roles: ['ROLE_ADMIN'] }
      

       
      2. Login as "example" user

      Actual result

      A runtime exception is thrown with error "There is no user provider for user "eZ\Publish\Core\MVC\Symfony\Security\UserWrapped". Shouldn't the "supportsClass()" method of your user provider return true for this classname?"

      Expected result

      User is logged in

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            adam.wojs@ez.no Adam Wójs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: