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

rest api: session always created even for anon users

    XMLWordPrintable

Details

    Description

      When the RequireAuthentication setting is set to disabled, eZ will always use a fixed user account for rest calls.

      Since this is rest, we're supposed not to use sessions at all.

      But the current code will try to create a session anyway: in ezpRestAuthConfiguration::filter(), if the auth filter returns a user account, the setCurrentlyLoggedInUser() function is called, which creates a session.

      A small fix could be to avoid the call to setCurrentlyLoggedInUser if the user id of the user account corresponds to the user id of the current account - that would be the case when eg RequireAuthentication has been set to disabled and the default user to be used for rest calls is the anon user

      Attachments

        Activity

          People

            e8318ba6-e4ae-477c-9116-36c073bd11a3@accounts.ibexa.co Patrick Allaert
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: