Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-19606

Using HTTP Access tokens at Project / Repository Level as Basic Auth

XMLWordPrintable

    • 7
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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

              dkjellin Daniel
              8c8205d742ae Priyata Waje
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: