commit | c3444c6f775c067fad3fea513845539d33e743ae | [log] [tgz] |
---|---|---|
author | Maulik Jodhani <maulik.jodhani@softnautics.com> | Mon Jan 08 15:27:57 2018 +0530 |
committer | David Ostrovsky <david@ostrovsky.org> | Wed Jan 24 07:48:17 2018 +0100 |
tree | 86cd4a014e288128eff4ccfa8ccecec4518e2193 | |
parent | c288e695fa44dce83e537c13e957f6f7790f23cd [diff] |
Add support for Office365 OAuth 2.0 Reference from: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-code Change-Id: Ic9e1268c588f425ab872b7d55750cab9d320cd38 Signed-off-by: Maulik Jodhani <maulik.jodhani@softnautics.com>
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.
The plugin can be bulit with Buck and Bazel. To build the plugin with Buck, install Buck and run the following:
git clone --recursive https://github.com/davido/gerrit-oauth-provider.git cd gerrit-oauth-provider && buck build plugin
To build the plugin with Bazel, install Bazel and run the following:
bazel build oauth
Copy the buck-out/gen/gerrit-oauth-provider.jar
wenn built with Buck or bazel-genfiles/gerrit-oauth-provider.jar
wenn built with Bazel to $gerit_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