- changed version to 0.7.x
Oauth with access token
The documentation http://gentlero.bitbucket.org/bitbucket-api/examples/authentication.html explains Oauth via Custumer Key and secret, What is the config is i want to authorise a user by access_token
Thanks.
Comments (13)
-
reporter -
reporter I figured it out,
$oauth_params = array( 'oauth_consumer_key' => 'mVjq4uZzXpasQrEggG3', 'oauth_consumer_secret' => '3SuqwYwTPURGsx54cZeCasxvvfLvTQ', 'oauth_token' => $token['token'], 'oauth_token_secret' => $token['secret'], ); $oauth = new \Bitbucket\API\Http\Listener\OAuthListener($oauth_params);
And it works. Please add this in the documentation.
-
reporter - changed status to resolved
Its not an issue anymore! :)
-
I'm trying to do the same at the moment. Can you tell me what steps you took to get your Consumer values and Token values?
-
reporter You will get the consumer data from https://bitbucket.org/account/user/<username>/api Which is your app the user connects to, & token/secret is fetched from the user login.
-
Hi, Thanks for responding. I have my Consumer data from creating an App within Bitbucket. I don't know where/how to get the Token/Secret upon login though, can you point me in the right direction?
-
reporter Hey Gordon, I've used this php library for Oauth logins https://github.com/thephpleague/oauth2-client I hope it helps, it has an easy to understand docs too, and also, "thephpleague/oauth2-client" does not have Bitbucket support right out of the box, So have to add this lib to support it, https://github.com/stevenmaguire/oauth2-bitbucket
-
Hi Boniface, great, thank you. I knew I could use 3rd party libraries to create the Tokens, I thought I was missing a method to do it with this particular library though.
-
- changed milestone to 0.7.0
- changed component to Docs
- changed version to 0.6.x
- marked as enhancement
- marked as trivial
Yes, this should be included in the documentation.
-
- changed status to open
-
[DOCS] OAuth1 3-legged example
Added example on how to use this library in combination with a 3rd party OAuth1 client in a 3-legged flow.
Ref:
#33→ <<cset f951f6e455bd>>
-
- changed status to resolved
Fixed in 0.7.0.
-
- removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment