Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-881

Disabling token based authentication breaks Page Builder

    XMLWordPrintable

Details

    • eZ Platform Enterprise, Ibexa Experience

    Description

      Steps to reproduce

      1. Use clean 2.5.22 Ez Platform installation
      2. Disable Token based authentication by setting:
        # in /app/config/security.yml: remove the following lines 
        simple_preauth
        authenticator: 'EzSystems\EzPlatformPageBuilder\Security\EditorialMode\TokenAuthenticator'
        
        # in /app/config/config.yml: change setting  to
        page_builder.token_authenticator.enabled: false
      1. Clear cache using command line:
        php bin/console cache:clear

      Result:
      Error message is thrown:

      In DefinitionErrorExceptionPass.php line 37:
      Cannot autowire service "EzSystems\EzPlatformPageBuilder\Event\Subscriber\SetPreAuthCookieSubscriber": argument "$tokenManager" of method "__construct()" references class "EzSystems\EzPlatformPageBuilder\ Security\EditorialMode\TokenManager" but no such service exists. Try changing the type-hint to "Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface" instead.
      

      Expected:
      System should work as before - just not using token based authentication.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              thorsten.reiter@ibexa.co Thorsten Reiter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: