|author||Thomas Draebing <email@example.com>||Wed Feb 06 17:39:21 2019 +0100|
|committer||Thomas Dräbing <firstname.lastname@example.org>||Mon Feb 11 15:22:40 2019 +0000|
Fix conversion from AccessToken to OAuthToken The login via UAA failed with "Server Error", when using the cfoauth plugin with Gerrit stable-2.16, because OAuthToken-constructor provided by the oauth extension of Gerrit does now require the 'secret'- and the 'raw'-parameter not to be null. This change adds the raw response of the UAA server to the AccessToken object, which is then handed to the OAuth extension point of Gerrit instead of null. Since UAA uses OAuth 2.0, no token secret is used. Since the Gerrit OAuth extension point expects a token secret to be sent, an empty string will be used instead. This follows the approach used by the scribe-java library, which is used in the OAuth implementation of Gerrit and this plugin. Change-Id: I4e36b2a651951aff1cf08932b2902fa86905976e
With this plugin Gerrit can use OAuth2 protocol to authenticate users accessing Gerrit's Web UI with a CloudFoundry User Account and Authentication (UAA) server. The
Sign In link will redirect the user to the UAA login screen.
For Git-over-HTTP communication users still need to generate and use an HTTP password.
Apache License 2.0