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

Repository authentication provider cannot be used with custom user classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.09.1, 5.4.5
    • Fix Version/s: 2015.11, 5.4.6
    • Component/s: None
    • Labels:
      None

      Description

      I have a custom provider which uses a custom User class with DOES NOT extend eZ\Publish\Core\MVC\Symfony\Security\User class, but it DOES implement eZ\Publish\Core\MVC\Symfony\Security\UserInterface.

      Since I want to use eZ repository to check for user authentication, this combination is not possible since eZ Publish RepositoryAuthenticationProvider explicitly checks if user is an instance of eZ\Publish\Core\MVC\Symfony\Security\User class instead of checking for eZ\Publish\Core\MVC\Symfony\Security\UserInterface.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            edi.modric Edi Modrić
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: