commit | ae0a0a1f27a1e546145c519504fc2dbed56d17af | [log] [tgz] |
---|---|---|
author | Dag Bertelsen <dag.lennart.bertelsen@storebrand.no> | Tue Nov 17 07:01:02 2020 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Fri Jan 08 18:52:52 2021 +0100 |
tree | 18732b181f230874986896ac728cff52f2c4b63c | |
parent | 204a1494301b27cb77edb6c8dd68452a22fd7719 [diff] |
Office365 OAuth: Add support for specifying a tenant * Added new InitOauth parameter 'tenant'. * If the parameter 'tenant' is not set it will default to the tenant 'organizations'. * If the parameter 'tenant' is set it will use a specific AD to authenticate the users. Change-Id: Id4c9e659b238dda2ad417901ddf6462f82324da0
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