Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How does the client credentials OAuth flow work in BitBucket cloud?

donovan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2018

I am trying to implement a client_credentials flow against Bitbucket cloud.  Per the instructions at https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html,  I created a consumer key in my account settings, but when I attempt to exchange my credentials for an access token, I get an error:

curl -XPOST -v -u '<consumer_key>:<consumer_secret>' https://bitbucket.org/site/oauth2/access_token -d grant_type=client_credentials

I get back a 400 Bad Request:

{"error_description": "No callback uri defined for the OAuth client.", "error": "invalid_request"}

 Everything I've read so far suggests this should work.

1 answer

0 votes
Igor Bronovskyi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2018

Have same problem

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events