jenkinsci / jenkinsci/git-client-plugin

[JENKINS-70897] Add support for http.extraHeader for bearer token authentication

Open
#1,667 7 comments 0 reactions 0 assignees View on GitHub
component:git-client-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
152
Forks
402
Avg merge
6h 47m
Merged PRs (30d)
4

Description

Bearer Tokens are sometimes very useful to connect to git repositories. From principle what is needed here is a smart integration from the git plugin with a secret (secret text for instance) to achieve a git call with

-c "http.extraHeader=Authorization: Bearer ..."

Bitbucket documentation for HTTP access tokens:

https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html

Azure DevOps documentation for "Use personal access tokens":

https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#use-a-pat

---
Originally reported by mguillem, imported from: Add support for http.extraHeader for bearer token authentication


  • status: In Progress
  • priority: Minor
  • component(s): git-client-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 8
  • imported: 20251211-071809

Raw content of original issue

Bearer Tokens are sometimes very useful to connect to git repositories. From principle what is needed here is a smart integration from the git plugin with a secret (secret text for instance) to achieve a git call with



-c "http.extraHeader=Authorization: Bearer ..."


Bitbucket documentation for HTTP access tokens:
https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html

Azure DevOps documentation for "Use personal access tokens":
https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#use-a-pat

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.