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

Is Client Credentials Grant Type supported by Bitbucket cloud?

Jason Brackins Aug 01, 2016

I have a CLI tool that needs to manipulate Bitbucket cloud repos. I can't figure out how to do it with Authorization code grant or Implicit grant, because there's no browser. I'm new to OAuth, but it looks like the Client Credentials Grant Type is the way to go. But there's no documentation.

Is it supported?

If not, does anybody know how to do browser based OAuth from the command line?

1 answer

2 votes
Abhin Chhabra Aug 01, 2016

Hi Jason,

Yes, the Client Credentials grant type is supported by Bitbucket. Read about it here.

Bitbucket also supports app passwords. Perhaps that might be a more suitable option for your use-case (I'm only guessing your use-case, so I could be wrong). You can create a temporary password for your account and also set scopes for it. 

Let me know if this works out for you.

Jason Brackins Aug 01, 2016

Oh, that documentation is nice. It'd be cool if you could do a direct link to it from https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html, or even combine them.

But app passwords might work better. Is there documentation about them somewhere?

Abhin Chhabra Aug 01, 2016

Hi Jason,

I'll be sure to ping one of our IX people and let them know about this inconsistency.

We released app passwords recently and the documentation for them lives here.

Daniel Stevens Atlassian Team Aug 01, 2016

Hey Jason,

I'm in the process of updating much of this documentation and moving some of it to our new API docs area. I'm working on a new authentication section which also includes app passwords. It's still in a pretty early state but we are working on improvements.

Happy coding,

Dan

 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
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...

3,092 views 1 20
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