commit | f7d640c33c04af6294c0e53c7434bc11670b35fa | [log] [tgz] |
---|---|---|
author | Ishan Badgainya <ishan2796@gmail.com> | Sun Apr 13 14:31:21 2025 +0530 |
committer | ishan <ishan2796@gmail.com> | Wed Jul 16 06:18:03 2025 -0700 |
tree | d6e9b603079ae651659d4ad324b4861ac3bb9cd0 | |
parent | a8f67c80b446760cf080e0d0e0467ba629147ac6 [diff] |
[Cognito OAuth]Support for link-to-existing-gerrit-accounts This adds support for link-to-existing-gerrit-accounts to Cognito service in OAuth plugin. This adds a configuration option named link-to-existing-gerrit-accounts that can be set to true to migrate to this provider from existing LDAP accounts by linking them with externalIDs instead of trying to create new accounts. Change-Id: I9724cf13efe7026f6959b5e585b9c465063cdf82
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