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

Unable to login after enabling basic http auth for rest

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High 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."}}
      

        Issue Links

          Activity

          Hide
          Paulo Nunes (Inactive) added a comment -

          At current time, there is not possible to use basic http auth for rest along with session auth, being that session auth is needed for UI
          See EZP-22192 - "Allow both basic and session auth at the same time"

          I'll close the current issue as invalid.

          Show
          Paulo Nunes (Inactive) added a comment - At current time, there is not possible to use basic http auth for rest along with session auth, being that session auth is needed for UI See EZP-22192 - "Allow both basic and session auth at the same time" I'll close the current issue as invalid.
          Hide
          Yannick Roger (Inactive) added a comment -

          I created EZP-27222 to add a comment on top of the config.

          Show
          Yannick Roger (Inactive) added a comment - I created EZP-27222 to add a comment on top of the config.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: