commit | d349594bb485cf456e8262061998b81f680c4019 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sat Jan 15 11:40:06 2022 +0100 |
committer | David Ostrovsky <david@ostrovsky.org> | Mon Jan 17 19:22:57 2022 +0100 |
tree | e27b3cdd4991312e7742973a0dec38249a048deb | |
parent | f5f87e04bef4d5dfd1748c7161663b17338fec29 [diff] |
CasOAuthService: Format using google-java-format Change-Id: I951032dfc9f868f15bba9c52a38c8b57214f7e9b
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