Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

zeroturnaround/sonar-auth-google

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonar-auth-google

Google Authentication for SonarQube 5.4, forked from sonar-auth-github.

It uses Google OAuth2 and Google API (oauth2.info) to sign in users.

Motivation

We (ZeroTurnaround) are using Sonar and when we upgraded to Sonar 5.4, we discovered that the old OAuth plugin no longer works for us.

We tried to get it working but in the end, gave up and implemented this plugin.

Status

The plugin is working for our needs and we do not plan any further changes to it.

Similar projects

After we had already implemented our plugin, we discovered that there is already a fork with similar functionality. That project may or may not have more features than our plugin -- feel free to try.

Configuration

sonar.properties:

sonar.core.serverBaseURL=set https there! SonarQube requires HTTPS in production
sonar.auth.google.clientId=Google ClientID
sonar.auth.google.secret=Google Client Secret
sonar.auth.google.hd=Optional Hosted Domain
sonar.auth.google.enabled=true
sonar.auth.google.allowUsersToSignUp=true

NB! In Google auth configuration allow the callback url https://your-host-path/oauth2/callback/google E.g. https://my-domain/mySonar/oauth2/callback/google

About

Google Authentication for SonarQube

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%