commit | 53d4933304787e1dbfed1d6d51a55650e3caf605 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sat Feb 08 10:18:35 2020 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Sat Feb 08 10:45:47 2020 +0100 |
tree | 2f22d335def970c405f4110b2932d21096312a41 | |
parent | d4781f2956bef34aab18c7fd5f91394aa5b8bc5d [diff] |
Init: Default to yes only for currently configured providers Default to yes in prompt for the "Use X OAuth provider" query only for currently configured OAuth providers, as suggested in: [1]. [1] https://github.com/davido/gerrit-oauth-provider/issues/136 Change-Id: I83f9271129964facf45460bd85c3eb3918954972
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