Add bearer token to the git fetch.

Implement org.eclipse.jgit.transport.TransportHttpWithBearerToken as a
hack to allow git operations over http/https with Bearer Token
Authentication. The package org.eclipse.jgit.transport has been created
in pull-replication plugin in order to provide access to protected instance variables, methods and classes in the jgit module.

Add TransportProvider to intantiate transparently git transport client.

Filter git upload pack request in BearerAuthenticationFilter.

Bug: Issue 15605
Change-Id: Iba5e33e9674d97abd386e4d3060d0acc2d8e5c21
11 files changed
tree: 52fd63d95c67135195edef13c3fa1d79021fa15d
  1. src/
  2. BUILD
  3. Jenkinsfile
  4. LICENSE