Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8413

Context path is not taken into account during authentication error

    Details

      Description

      Use case

      When using a Identity Provider (for instance with GitHub Authentication Plugin), the context path is not taken into account when a functional error is generated.

      For instance, if the Sonarqube URL is http://<myhost>/sonar, when a new user wants to authenticate and the "Allow to sign in" feature is disabled, the user is redirect to :

      http://<myhost>/sessions/unauthorized?message=%27bitbucket%27+users+are+not+allowed+to+sign+up
      

      instead of :

      http://<myhost>/sonar/sessions/unauthorized?message=%27bitbucket%27+users+are+not+allowed+to+sign+up
      

      Technical details

      org.sonar.server.authentication.AuthenticationError#handleUnauthorizedError() should add the context path to the path.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.lancelot Julien Lancelot
                Reporter:
                julien.lancelot Julien Lancelot
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: