It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

Have same problem

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,100 views 4 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you