-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
Problem
Bitbucket Data Center does not provide Basic Authentication for tokens at the Project / Repository Level to authenticate against Git Repositories. Same for OAuth tokens as well.
Summary
For HTTP access tokens on a project and repository level, Bearer authentication seems to be the only working authentication method. While basic authentication works for user HTTP access tokens HTTP basic auth is not working for these project / repository HTTP access tokens. Similarly, git CLI / basic authentication does not work for OAuth tokens as well.
Suggestion
We want to implement a feature similar to Bitbucket Cloud for Using Repository Access Tokens for auth in Git CLI using Basic Auth and for Using OAuth tokens along with the user x-token-auth as basic authentication for git operations
We can have a unique user like the x-token-auth which allows to authenticate these access tokens at the project or repository level.
git clone https://x-token-auth:{repository_access_token}@dunemirror/scm/gam/gameoflife.git
git clone https://x-token-auth:{repository_OAuth_access_token}@dunemirror/scm/gam/gameoflife.git
Application
This will be very helpful for CICD systems such as Argo CD which presently do not support bearer authentication for Git-over-HTTP.
https://github.com/argoproj/argo-cd/issues/9667