Oauth with access token

Issue #33 resolved
Boniface Pereira created an issue

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)

  1. Boniface Pereira 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.

  2. Gordon Murray

    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?

  3. Gordon Murray

    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?

  4. Gordon Murray

    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.

  5. Alexandru Guzinschi

    [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>>

  6. Log in to comment