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

Allow both basic and session auth at the same time

    Details

      Description

      It should be possible to have both basic auth and session auth working at the same time on the REST API.

      If a request contains basic auth, the user is authentified this way. If auth fails, the request fails.

      If a request doesn't contain basic, we look for a session cookie. We check the session's validity if we find one, and the request fails if the session ain't valid.

      If the requests has no basic auth header nor session cookie, we log in the anonymous user if allowed.

        Issue Links

          Activity

          Hide
          Gaetano Giunta (Inactive) added a comment -

          And don't forget oauth (and maybe saml).

          Either that, or allow the rest API to be registered under many different prefixes using different auth schemes for each (it is possible to do that in general in Symfony, but far from easy - at least I managed to get it working on a project).

          NB: this will be a blocker as soon as we deliver the new Editing Interface based on REST-API, as everyone will need to have session-based auth for the rest api, and 50% of users will want basic auth / oauth as well for other clients

          Show
          Gaetano Giunta (Inactive) added a comment - And don't forget oauth (and maybe saml). Either that, or allow the rest API to be registered under many different prefixes using different auth schemes for each (it is possible to do that in general in Symfony, but far from easy - at least I managed to get it working on a project). NB: this will be a blocker as soon as we deliver the new Editing Interface based on REST-API, as everyone will need to have session-based auth for the rest api, and 50% of users will want basic auth / oauth as well for other clients

            People

            • Assignee:
              Unassigned
              Reporter:
              Bertrand Dunogier
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: