Uploaded image for project: 'Single Sign On'
  1. Single Sign On
  2. MGNLSSO-162

The SSO module doesn't consider the context path ot the default base URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.0, 2.0.6
    • 2.0.5
    • None
    • None

      Steps to reproduce

      1. Configure a base URL with a context path (ie: https://dev.parkwood.magnolia-platform.com/author)
      2. In the config.yml, define the callbackURL relative (ie: /.auth)
      3. The module will build a full callback url like 
        https://dev.parkwood.magnolia-platform.com/.auth
        instead of https://dev.parkwood.magnolia-platform.com/author/.auth

      Expected results

      https://dev.parkwood.magnolia-platform.com/author/.auth

      Actual results

      https://dev.parkwood.magnolia-platform.com/.auth

      Workaround

      Use the absolute URL to define the callbackURL but that makes the yaml file environment dependent

      Development notes

      Line of code : https://git.magnolia-cms.com/projects/ENTERPRISE/repos/magnolia-sso/browse/magnolia-sso/src/main/java/info/magnolia/sso/Pac4jConfigProvider.java#330

        Acceptance criteria

              mgeljic Mikaël Geljić
              amanzoni Adrien Manzoni
              AdminX
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD