OAuth 2.0 authentication: grant_type=password stopped working

XMLWordPrintable

      Same issue as BCLOUD-16985

      Summary

      Resource Owner Password Credentials Grant (4.3) has stopped working recently.
      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   148  100    93  100    55     59     35  0:00:01  0:00:01 --:--:--    94{"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 a different grant type to proceed further:
      For example:

      #!CURL  
        
      curl -X POST -u "client_id:secret" \
        https://bitbucket.org/site/oauth2/access_token \
        -d grant_type=client_credential
      

              Assignee:
              Unassigned
              Reporter:
              Ronald C.
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: