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

Provide a way to redirect to an unauthorized page when OAuth fail

    XMLWordPrintable

    Details

      Description

      There's currently no way for a OAuth2 plugin to redirect to the "unauthorized" page.
      This can happen for instance when a user restrict the scope : he'll be authenticated but the plugin won't be able to get his information.

      We should provide a org.sonar.api.server.authentication.UnauthorizedException for plugin.
      This exception must NOT generate a stacktrace.

      When this exception is generated, we'll display the message to the user.

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            julien.lancelot Julien Lancelot
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: