Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-8218

API tokens are not compatible with Sourcetree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 4.2.12
    • Bitbucket, Git
    • None
    • Severity 2 - Major

      Issue Summary

      Steps to Reproduce

      1. Attempt to configure API Token in Settings > Accounts under either Basic Auth or API Token and click Save

      Expected Results

      • The API token is used successful for auth with Sourcetree

      Actual Results

      • Using API Token as the auth type requires email (which is incorrect) and does not let you click Save
      • Using Basic Auth as the auth type instead with your Bitbucket Cloud username as the username and the API Token as the password fails to authenticate with Login error: We couldn't connect to Bitbucket Cloud with your credentials
      • The format for URL's should be either of the following:
        https://username:APIToken@bitbucket.org/workspaceID/reposlug.git
        https://x-bitbucket-api-token-auth:APIToken@bitbucket.org/workspaceID/reposlug.git
        
      • Performing a git clone outside of Sourcetree (eg using a terminal) with either of the above URL formats works without issues

      Workaround

      • Use OAuth to connect your account, or use AppPassword up until the deprecation date
      • Alternatively, you can use a terminal to work with GIT

        1. screenshot-1.png
          screenshot-1.png
          266 kB
        2. screenshot-2.png
          screenshot-2.png
          288 kB
        3. screenshot-3.png
          screenshot-3.png
          332 kB
        4. API_Token_Testing_clean.mp4
          5.91 MB

              75e61816958e Pratap Guvvala
              57b7f67f3625 Ben
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: