commit | 92eb31eee83ee52ba8ec84b950aa5f72b933a1bf | [log] [tgz] |
---|---|---|
author | Dag Bertelsen <dag.lennart.bertelsen@storebrand.no> | Tue Nov 17 11:30:33 2020 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Fri Jan 08 20:21:14 2021 +0100 |
tree | df2657f1da186e3fcfd39d9fc9f453f96dfc93db | |
parent | 32a93b1ae3c990d6b4a4c86c4012d3d13ac5332a [diff] |
Using MicrosoftAzureActiveDirectory20Api from scribejava-apis * Using MicrosoftAzureActiveDirectory20Api from scribejava-apis, this is intended to be used with Microsoft Azure oauth v2. * If Google OAuth plugin is set to use a tenant other than common, organizations or consumers the token will be validated that they are originating from the same tenant that is configured in the Gerrit OAuth plugin. Change-Id: Id293be463281fc8fa34af5edf61e774b207dcc21
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