commit | 5e69fff12bba91331a26daedca7f0c0c821fb983 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sun Dec 11 09:52:30 2016 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Mon Feb 06 22:40:43 2017 +0100 |
tree | 8ebe36c8926fd3f46b940b08b4ba7842991fa209 | |
parent | b1f579218a8be0a5f1b673d5988083f9ba430549 [diff] |
Bazel: Add workspace file for in gerrit tree build Append the content of WORKSPACE.in_gerrit_tree file to WORKSPACE file in gerrit tree to build this plugin in gerrit tree mode: cd plugins/ ln -s ../../gerrit-oauth-provider . cat ../gerrit-oauth-provider/WORKSPACE.in_gerrit_tree >> WORKSPACE bazel build plugins/gerrit-oauth-provider INFO: Found 1 target... Target //plugins/gerrit-oauth-provider:gerrit-oauth-provider up-to-date: bazel-genfiles/plugins/gerrit-oauth-provider/gerrit-oauth-provider.jar INFO: Elapsed time: 0.652s, Critical Path: 0.52s Change-Id: Ie351478dfb7846659f161d9c8de672319cb3fa47
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 gerrit-oauth-provider
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