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

ezpublish_legacy_sso causes infinite redirect loop on /login

    XMLWordPrintable

Details

    • Pollux Core S5

    Description

      When using the legacy_sso_handler feature, described in https://doc.ez.no/display/EZP/Authentication in eZ Publish 5.4, the login will not work as expected:

      • Returning a valid user in the legacy sso handler will result in authentication failure ( "A valid username and password is required to login.")
      • Returning a false result in the sso handler will result in an infinite redirect loop. After this it is necessary to remove the session cookie, otherwise any page will result in a redirect loop.
      Steps to reproduce:
      • enable ezpublish_legacy_sso in security.yml:
        security:
            firewalls:
                ezpublish_front:
                    pattern: ^/
                    anonymous: ~
                    # Adding the following entry will activate the use of old SSO handlers.
                    ezpublish_legacy_sso: ~
        
      • Implement a simple sso_handler, such as the example in http://share.ez.no/learn/ez-publish/using-a-sso-in-ez-publish
      Note:

      This appears to be a regression of some sort, as the behavior in eZ Publish 5.3 is correct.

      Attachments

        1. isGranted-normal.html
          12 kB
          Gunnstein Lye
        2. isGranted-sso.html
          7 kB
          Gunnstein Lye

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 4 days, 1 hour, 35 minutes Remaining Estimate - 1 day, 6 hours, 30 minutes
                1d 6h 30m
                Logged:
                Time Spent - 4 days, 1 hour, 35 minutes Remaining Estimate - 1 day, 6 hours, 30 minutes
                4d 1h 35m