Fix assembly of external id

Two tests for the master-branch of the cfoauth-plugin failed:

- testParseAccessTokenResponse
- testGetAsAccessToken

Both tests showed the same ComparisonFailure:

  expected:<external[:]marissa> but was:<external[]marissa>

Since Commit 744d2b89 in Gerrit the scheme for external auth is defined
without the trailing ':'. The colon however was expected by the cfoauth
plugin, causing false assembly of the external id.

This change adds the addition of a colon, when defining the external ID
in the plugin code.

Change-Id: If3d0cc52c0e64fb2b9cf3ce0a4b0774e9533da56
2 files changed
tree: 9ae25b82335a2eaaf9a88b2b5127da554700153c
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK
  6. BUILD
  7. external_plugin_deps.bzl
  9. LICENSE-scribe

Cloud Foundry UAA OAuth 2.0 Authentication Provider

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