• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

sonar-auth-gitlab-plugin: Use GitLab OAuth login in SonarQube login page

原作者: [db:作者] 来自: 网络 收藏 邀请

Sonar Auth GitLab Plugin

https://travis-ci.org/gabrie-allaigre/sonar-auth-gitlab-plugin

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

  • Change secret field to text field
  • Update sonar-plugin to 7.0

Version 1.3.2

  • Fix bug with group & ldap #20
  • Add option to ignore Certificate for access GitLab #18

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

  • Fix bug with sync #16

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

  • Add default v4 api
  • Add sync groups option with GitLab (use exception for not sync, example admin account)
  • Add custom groups for user

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

  • Add option to change scope for GitLab (since 9.2, scope is api)

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

Goal

Enables user authentication and Single Sign-On via GitLab.

Uses GitLab OAuth login in SonarQube login page.

Signin

Usage

For SonarQube >=5.6:

For SonarQube >=5.4:

Other Plugin: Add Reporting in GitLab commit

Configuration

Warning : In SonarQube, must have Server base URL with HTTPS

  • In GitLab, create Application OAuth : Admin Settings -> Application

Fill name SonarQube and fill redirect URI with 'https://mysonar.com/oauth2/callback/gitlab' (replace url).

Gitlab Add

Copy Application Id and Secret in Settings of Sonarqube.

Gitlab App

  • In SonarQube: Administration -> General Settings -> GitLab -> Authentication

Sonar Settings

VariableCommentType
sonar.auth.gitlab.enabledEnable GitLab users to login. Value is ignored if client ID and secret are not defined
sonar.auth.gitlab.urlURL to access GitLab
sonar.auth.gitlab.applicationIdApplication ID provided by GitLab when registering the application
sonar.auth.gitlab.secretToken of the user who can make reports on the project, either global or per project
sonar.auth.gitlab.allowUsersToSignUpAllow new users to authenticate. When set to 'false', only existing users will be able to authenticate to the server
sonar.auth.gitlab.scopeScope provided by GitLab when access user info, either global or per project, default read_user
sonar.auth.gitlab.groupsSet groups, use , for multi
sonar.auth.gitlab.sync_user_groupsEnable synchronization between GitLab and SonarQube groups. SonarQube users groups will be the same as GitLab's
sonar.auth.gitlab.groupsDefaults groups, which will be added to SonarQube default group and syncs groups if enabled
sonar.auth.gitlab.api_versionGitLab API version
sonar.auth.gitlab.user_exceptionsList of usernames to keep intact (e.g. admin list), use , for multi
sonar.auth.gitlab.ignore_certificateIgnore Certificate for access GitLab, use for auto-signing cert (default false)Administration, Variable

Sonarqube

https://sonarcloud.io/dashboard?id=com.talanlabs%3Asonar-auth-gitlab-plugin


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap