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

The SSO config intercepts all requests having an Authorization header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.5
    • 2.0.4
    • None
    • None

      Steps to reproduce

      1. Define a custom REST endpoint and a dedicated ContainerRequestFilter to handle the authentication over JWT through the Authorization header
      2. Allow anonymous access on that endpoint to bypass the Magnolia login process

      Expected results

      The request hits directly the ContainerRequestFilter, which will take care of the Authorization.

      Actual results

      The SSO filter intercepts the request and stops it as the passed token has not been signed by the IDP configured in the SSO config.

      Workaround

      As mentioned in the Slack thread by Nguyen Phung, we could extend the SSO module and remove the Header matcher defined here
      https://git.magnolia-cms.com/projects/ENTERPRISE/repos/magnolia-sso/browse/magnolia-sso[…]agnolia/sso/SsoModule.java?at=refs%2Fheads%2Frelease%2F2.0

      But that'll require customizing the module which is not ideal.

      Development notes

        Acceptance criteria

              nguyen.phung Nguyen Phung Chi
              amanzoni Adrien Manzoni
              AdminX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 0.5d
                    0.5d