commit | b60fe5e788e0954bc5aa5cb6b4e688ec90f1358c | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sun Jun 07 10:43:56 2020 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Sun Jun 07 10:51:01 2020 +0200 |
tree | 2b52743ddc01775033a3d530a65a583dd59919c7 | |
parent | 1bdae74ca0455972e26b9b69fdf07f6688965ddd [diff] |
Prevent NPE in Cas service Bug: https://github.com/davido/gerrit-oauth-provider/issues/143 Change-Id: I4e170b1c3f2d4980d04d752687fe490c52e06cfb
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