Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth token/secret #82

Open
replay111 opened this issue Apr 2, 2017 · 4 comments
Open

OAuth token/secret #82

replay111 opened this issue Apr 2, 2017 · 4 comments

Comments

@replay111
Copy link

Hi, I'm trying to connect to my BitBucket repos:

bb = BitBucket.new do |config|
    config.oauth_token   = ''
    config.oauth_secret  = ''
    config.client_id     = '*********'
    config.client_secret = '**************************'
    config.adapter       = :net_http
end

I've generated consumer key:secret pair, but how I can get oauth token:secret pair?

Without them I am not able to connect to API :(

@zeroedin
Copy link

+1

Would be nice to have an example to follow to get started. The assumption I'm making is that you have to roll your own to by going through the process of OAuth get the token/secret first.

@replay111
Copy link
Author

Ok, but how to do this? How to generate from web/script those pairs of keys?
On the bitbucket interface I was able to generate client id and secret... I didn't find any place to generate token/secret :(

@zeroedin
Copy link

I could figure it out either assumption didn't pan out the way I thought. Just as lost as you are at this point :)

@vongrippen
Copy link
Member

Back when I first put this together, I used omniauth-bitbucket (via devise) to do an OAuth flow to get the tokens. When BitBucket redirects the request back to your endpoint during the OAuth flow, it will include the token for that user that you combine with the secret you already have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants