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

Unable to login after enabling basic http auth for rest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: 1.7.2, 1.8.1, 1.9.0
    • Fix Version/s: QA tracked issues
    • Component/s: Platform > REST API v2
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.30-0+deb8u1
      Database and version: Mysql 5.5.54-0+deb8u1
      Browser (and version): Firefox 52
      Env: Prod

      Description

      Steps to reproduce

      -Enable basic http auth for Rest in security.yml
      go to app/config/security.yml and uncomment the ezpublish_rest block

              ezpublish_rest:
                  pattern: ^/api/ezp/v2
                  stateless: true
                  ezpublish_http_basic:
                      realm: eZ Publish REST API
      

      -Go to login page in backoffice
      -Try to login as admin

      We have an "An unexpected error occurred" and are unable to login
      In response we have

      {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":500,"errorMessage":"Internal Server Error","errorDescription":"A Token was not found in the TokenStorage."}}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: