Inspired by https://github.com/SonarSource/sonar-auth-github
The version 1.3.2 is directly in the SonarQube update center
Version 1.4.0-SNAPSHOT
Version 1.3.2
Download 1.3.2 version https://github.com/gabrie-allaigre/sonar-auth-gitlab-plugin/releases/download/1.3.2/sonar-auth-gitlab-plugin-1.3.2.jar
Version 1.3.1
Download 1.3.1 version https://github.com/gabrie-allaigre/sonar-auth-gitlab-plugin/releases/download/1.3.1/sonar-auth-gitlab-plugin-1.3.1.jar
Version 1.3.0
Download 1.3.0 version https://github.com/gabrie-allaigre/sonar-auth-gitlab-plugin/releases/download/1.3.0/sonar-auth-gitlab-plugin-1.3.0.jar
Version 1.2.2
Download 1.2.2 version https://github.com/gabrie-allaigre/sonar-auth-gitlab-plugin/releases/download/1.2.2/sonar-auth-gitlab-plugin-1.2.2.jar
Enables user authentication and Single Sign-On via GitLab.
Uses GitLab OAuth login in SonarQube login page.
For SonarQube >=5.6:
SONARQUBE_HOME/extensions/plugins
For SonarQube >=5.4:
SONARQUBE_HOME/extensions/plugins
Other Plugin: Add Reporting in GitLab commit
Warning : In SonarQube, must have Server base URL
with HTTPS
Fill name SonarQube and fill redirect URI with 'https://mysonar.com/oauth2/callback/gitlab' (replace url).
Copy Application Id and Secret in Settings of Sonarqube.
Variable | Comment | Type |
---|---|---|
sonar.auth.gitlab.enabled | Enable GitLab users to login. Value is ignored if client ID and secret are not defined | |
sonar.auth.gitlab.url | URL to access GitLab | |
sonar.auth.gitlab.applicationId | Application ID provided by GitLab when registering the application | |
sonar.auth.gitlab.secret | Token of the user who can make reports on the project, either global or per project | |
sonar.auth.gitlab.allowUsersToSignUp | Allow new users to authenticate. When set to 'false', only existing users will be able to authenticate to the server | |
sonar.auth.gitlab.scope | Scope provided by GitLab when access user info, either global or per project, default read_user | |
sonar.auth.gitlab.groups | Set groups, use , for multi | |
sonar.auth.gitlab.sync_user_groups | Enable synchronization between GitLab and SonarQube groups. SonarQube users groups will be the same as GitLab's | |
sonar.auth.gitlab.groups | Defaults groups, which will be added to SonarQube default group and syncs groups if enabled | |
sonar.auth.gitlab.api_version | GitLab API version | |
sonar.auth.gitlab.user_exceptions | List of usernames to keep intact (e.g. admin list), use , for multi | |
sonar.auth.gitlab.ignore_certificate | Ignore Certificate for access GitLab, use for auto-signing cert (default false) | Administration, Variable |
https://sonarcloud.io/dashboard?id=com.talanlabs%3Asonar-auth-gitlab-plugin
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。