commit | 2e4362bfd000147eb090354bd2defff0945dcd5e | [log] [tgz] |
---|---|---|
author | Ivan Nikolchev <ivan.nikolchev@bonial.com> | Sun Apr 14 18:07:43 2024 +0200 |
committer | Ivan Nikolchev <ivan.nikolchev@bonial.com> | Thu May 23 01:33:08 2024 +0200 |
tree | f51dacefce9d604671740ee4af6d78cd6d9566d2 | |
parent | b27cf3ea820eec2ddd22d217fc839261692ccdb0 [diff] |
Add Cognito OAuth provider This adds OAuth provider for AWS Cognito[1]. This was tested against a Cognito instance and authentication worked as expected. 1. https://aws.amazon.com/cognito/ Change-Id: Ieb1d014d5d2c40910641c8080a020ab980d997b4
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