| commit | 527b52384aaaf4f971a7826dc51be19cf9081eed | [log] [tgz] |
|---|---|---|
| author | Thomas Dräbing <thomas.draebing@sap.com> | Mon Jan 27 12:18:41 2025 +0100 |
| committer | Thomas Dräbing <thomas.draebing@sap.com> | Tue Sep 30 11:24:42 2025 +0200 |
| tree | 556fdff7d281a195f01295f5e1965c6c4b7a79a1 | |
| parent | 74475759a21c1a47c7b4339de358b7894756ac1d [diff] |
[SAP IAS] Optionally allow the Resource Owner Password Flow Change-Id: If8a57ac4d487fece946b76a49fddeba3d63bc192
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