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

OAuth 2.0 API Password Credentials Grant stopped working

    XMLWordPrintable

Details

    Description

      Summary

      Resource Owner Password Credentials Grant (4.3) has stopped working this month.
      https://developer.atlassian.com/cloud/bitbucket/oauth-2/

      Steps to reproduce:

      #!CURL
      
      $ curl -X POST -u "client_id:secret" \
             https://bitbucket.org/site/oauth2/access_token -d grant_type=password \
             -d username=my_username -d password=my_password
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   168  100    93  100    75     50     40  0:00:01  0:00:01 --:--:--    90{"error_description": "Invalid resource owner username/password", "error": "invalid_request"}
      

      Expected Results

      Password Credentials Grant Rest API should be working

      Actual Results

      Password Credentials Grant Rest API stopped working

      Workaround

      Use an App password as authentication for API calls.
      For example:

      #!CURL
      
      CURL https://api.bitbucket.org/2.0/repositories/username/repository_name -u usename:YOUR_APP_PASSWORD
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mcerezo Mark C
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: