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

Support GitLab Authentication

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Description

      SQ will implement OAuth2 authentication for GitLab. More information at https://docs.gitlab.com/12.1/ee/topics/authentication/index.html.

      This feature will not be available as a plugin but will be a built-in one.  

      Settings

      Here are the following settings that will be available in the Security domain : 

      Key Name Description
      sonar.auth.gitlab.enabled Enabled Enable GitLab users to login. Value is ignored if URL, Application ID, and Secret are not set.
      sonar.auth.gitlab.url GitLab URL URL to access GitLab.
      sonar.auth.gitlab.applicationId Application ID Application ID provided by GitLab when registering the application.
      sonar.auth.gitlab.secret Secret Token of the user who can make reports on the project, either global or per project.
      sonar.auth.gitlab.allowUsersToSignUp Allow users to sign-up Allow new users to authenticate. When set to 'false', only existing users will be able to authenticate to the server.
      sonar.auth.gitlab.groupsSync Synchronize groups  For each GitLab group he belongs to, the user will be associated to a group with the same name (if it exists) in SonarQube. 

      Usage of community plugin

      The [community plugin|https://github.com/gabrie-allaigre/sonar-auth-gitlab-plugin] is no more compatible with SonarQube 8.0, even if same setting keys have been used in order to ensure a smooth transition.

      If still trying to start SonarQube with the plugin, the server will fail with a explicit error about the situation.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: