commit | fd6f75c980b34a8c6f569e4ee1c19b3cd9eebf14 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sun Jun 28 06:37:10 2020 +0200 |
committer | David Ostrovsky <david.ostrovsky@gmail.com> | Tue Jun 30 05:28:12 2020 +0000 |
tree | 3e502514cd3f30071ca6e61317c5102149a21cb8 | |
parent | a34aff962ad1455d763b80d0da019a63cd4fb315 [diff] |
Office365OAuthService: Restore Accept header in user info request In update of scribe version change: I68717ebb988 Accept header was inadvertently removed. Restore the setting of Accept header to "*/*": request.addHeader("Accept", "*/*"); Bug: Issue https://github.com/davido/gerrit-oauth-provider/issues/144 Change-Id: I224f798c7fb37e24be7f4fecfc29e11932c51286
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