commit | 4537459046092e784f479e179947a8d567171902 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sun Feb 23 10:10:41 2020 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Sun Feb 23 16:12:32 2020 +0100 |
tree | ec9b4389df07a6f5c18dcf5573f27083bc8e6faa | |
parent | c62494d6aa01cfeac884d7510c1fd1a6e26050df [diff] |
Extract root URL check in own method Change-Id: I77132bd0ba76d51c6ee1903ab0834311473961f1
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