commit | f45c596896cd6cebf011e3a971a00e8a72188b9e | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Thu Jun 06 04:08:31 2024 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Thu Jun 06 04:50:06 2024 +0200 |
tree | b43f38d5c6572ad8cb08a3f9fc4c7e6ce147ed7e | |
parent | 2e4362bfd000147eb090354bd2defff0945dcd5e [diff] |
Bazel: Fix standalone build Update Bazel to the latest release 7.2.0rc3, and update bazlets to the latest version. Also upgrade python interpreter to python3. Change-Id: I228aa6e760fe2b9a9f0af4a340eda9d36befedd4
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