commit | 891392bb7d2594a531892a0634a503d662435a17 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Tue Feb 11 08:34:45 2020 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Sat Feb 22 15:05:10 2020 +0100 |
tree | 1f5a81ef5c4be43bc93d287ecc32a49f8b612503 | |
parent | a95ce828306ec968d50407364c02b850ffc2c0fd [diff] | |
parent | 23db10ad33ba8a6997d6077739fa0771c7c217d5 [diff] |
Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Bump scribe version to 6.9.0 Add support for GitHub Enterprise OAuth Remove dependency on Mockito and dependant libraries because they are exposed in acceptance-framework artifact in stable-3.0 branch. Change-Id: I2b6c90a0c8c0701bfef9d08c2744834791f3cece
With this plugin Gerrit can use OAuth2 protocol for authentication. Supported OAuth providers:
See the Wiki what it can do for you.
Prebuilt binary artifacts are available on release page. Make sure to pick the right JAR for your Gerrit version.
To build the plugin with Bazel, install Bazel and run the following:
git clone https://gerrit.googlesource.com/plugins/oauth cd oauth && bazel build oauth
Copy the bazel-bin/oauth.jar
to $gerrit_site/plugins
and re-run init to configure it:
java -jar gerrit.war init -d <site> [...] *** OAuth Authentication Provider *** Use Bitbucket OAuth provider for Gerrit login ? [Y/n]? n Use Google OAuth provider for Gerrit login ? [Y/n]? Application client id : <client-id> Application client secret : confirm password : Link to OpenID accounts? [true]: Use GitHub OAuth provider for Gerrit login ? [Y/n]? n
Make sure to read the FAQ before reporting issues.
Apache License 2.0