commit | b5362070eca79a76547d906da2e0508956c6c57c | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed Jul 18 09:18:51 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Wed Jul 18 09:19:56 2018 +0900 |
tree | 6349cbeb439c5d3385db73c08b8e3dca7ad8e410 | |
parent | d80a5ce94e60f9c3f39cad356b336999bdb2f2f2 [diff] |
Upgrade bazlets to latest stable-2.14 and use released 2.14.10 API - Format .bzl files with buildifier version 0.12.0 - Update API to 2.14.10 - Set snapshot version to 2.14.11-SNAPSHOT - Upgrade API version to 2.14.9 - Adjust names of prolog dependencies Change-Id: I2151ed681d73a3044588bd009d0cd4fc8f649f65
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.
The plugin can be bulit with Buck and Bazel. To build the plugin with Buck, install Buck and run the following:
git clone --recursive https://github.com/davido/gerrit-oauth-provider.git cd gerrit-oauth-provider && buck build plugin
To build the plugin with Bazel, install Bazel and run the following:
bazel build oauth
Copy the buck-out/gen/gerrit-oauth-provider.jar
wenn built with Buck or bazel-genfiles/gerrit-oauth-provider.jar
wenn built with Bazel to $gerit_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