Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-85657

SAML Login with multiple sites and virtual hosts not working correctly

    Details

      Description

      Steps to reproduce :

      1. Deploy Liferay Connector to SAML 2.0.lpkg (Version: 3.1.1)
      2. Configure Liferay as Service Provider
      3. Create new blank site named test (/test)
      4. Create a private page say home in test site (/group/test/home)
      5. Set virtual host for test site private pages (http://local.test.com)
      6. Create new blank site named test (/test2)
      7. Create a private page say private test in test site (/group/test2/test-home)
      8. Set virtual host for test site private pages (http://local2.test.com)
      9. Sign out from Liferay
      10. Go to URL http://local.test.com:8080, it will redirect you to IDP login page -> login with any of the IDP user
      11. After successful login you will be logged in and redirected back to http://local.test.com:8080, However according to company.default.home.url property in portal-ext.properties file you should be redirected to http://local.test.com:8080/group/test/home)
      12. Sign out from Liferay
      13. Login in Liferay using admin
      14. Update user created via SAML, assign him membership of test sites and admin role also.
      15. Repeat step 10, same result as in step 11
      16. Sign out from Liferay
      17. Go to URL http://test.local.com:8080, it will redirect you to IDP login page -> login with any of the IDP user
      18. After successful login you will be logged in and redirected back to http://local.test.com:8080, However according to company.default.home.url property in portal-ext.properties file you should be redirected to http:/local.test.com:8080/group/test/home)

      Current Behavior: When using SAML login, after successful login user is not redirecting to company.default.home.url configured in portal-ext.properties file
      Expected Behavior: When using SAML login, after successful login user should be redirected to company.default.home.url configured in portal-ext.properties file

        Attachments

          Activity

            People

            • Assignee:
              raven.song Raven Song
              Reporter:
              norbert.kocsis Norbert Kocsis
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 1 week, 4 days ago

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                Master