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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.0.0-rc1, 3.0.0, 2.5.10
    • 2.5.9
    • Security
    • 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

            Unassigned Unassigned
            adam.wojs@ibexa.co Adam Wójs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: