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

ezuser does not support multiple sso handlers

    XMLWordPrintable

Details

    Description

      even though you can register multiple single sign on handlers in the INI (via UserSettings / SingleSignOnHandlerArray )

      only the last registered handler is effective. The bad code is in ezuser.php:

      foreach ( $ssoHandlerArray as $ssoHandler )
      {
          // ... no exits from the loop ...
      }
      

      One solution is:

      foreach ( $ssoHandlerArray as $ssoHandler )
      {
          // ... no exits from the loop ...
      
          if( $ssoUser !== false )
          {
              break;
          }
      }
      
      Steps to reproduce

      some effort to accomplish ...

      setup site.ini with 2 sso handlers
      create 2 sso handlers
      have the first one succeed
      have the second one fail

      notice that you will not be logged in even if the first handler should have successfully logged you in

      Attachments

        Activity

          People

            unknown unknown
            2a3cd272-1c15-4d3a-b59d-1cc0bab847d8@accounts.ibexa.co Doug Plant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: