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. .buckconfig
  2. .gitignore
  3. BUCK
  4. BUILD
  5. LICENSE
  6. LICENSE-scribe
  7. README.md
  8. VERSION
  9. external_plugin_deps.bzl
  10. lib/
  11. src/
README.md

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.

License

Apache License 2.0