Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-10906

Errors when requesting an OAuth token

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Hello,

      I am the lead developer at a premium WordPress plugin development agency, and we're currently working on an integration with BitBucket. The first problem, however, is that I am unable to even request a token so that the user can authenticate access to their BitBucket account. This is the url that I am attempting to browse to:

      https://bitbucket.org/api/1.0/oauth/request_token?oauth_version=1.0&oauth_nonce=d799ffdce7ffaa13f8239a406875e081&oauth_timestamp=

      {timestamp}

      &oauth_consumer_key=

      {key}

      &oauth_signature_method=HMAC-SHA1&oauth_signature=

      {secret}

      &oauth_callback=http%3A%2F%2Flocalhost%2Ftest%2F

      The url was generated using the testing site recommended on the BitBucket documentation page here: https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+bitbucket

      It's also worth pointing out that the testing site recommended on the document listed above doesn't allow requesting an initial request token, because it doesn't send an oauth_callback parameter. Therefore, the BitBucket API just returns an error every time you attempt to use it.

      I have tried every permutation of the url above that I can think of, using PLAINTEXT, generating a new APP with new keys/secrets, generating new timestamps. Nothing has worked.

      My goal with this plugin is to allow users to download tags as zip files from private and public repos. I'm thinking that I can do something like:

      https://bitbucket.org/

      {user}

      /

      {repo}

      /get/

      {branch,tag}

      .

      {zip,tar.gz,tar.bz}

      and pass the authentaicated OAuth token as a parameter to access the zip file.

      We have been working on this integration for a few weeks, and we would like to get this plugin into the hands of our users as quickly as possible.

      Thank you very much for the time.

      If you need more information from me, please let me know.

      Attachments

        Activity

          People

            Unassigned Unassigned
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: