Skip to content

Commit

Permalink
Merge pull request #25 from meatherly/master
Browse files Browse the repository at this point in the history
Adding the ability to use Oauth if you supply the token consumer key and...
  • Loading branch information
vongrippen committed Nov 13, 2013
2 parents 124d41d + 2098997 commit 9c95bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bitbucket_rest_api/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def default_middleware(options={})
#builder.use BitBucket::Request::Jsonize
builder.use Faraday::Request::Multipart
builder.use Faraday::Request::UrlEncoded
builder.use FaradayMiddleware::OAuth, {:consumer_key => client_id, :consumer_secret => client_secret, :token => oauth_token, :token_secret => oauth_secret} if oauth_token? and oauth_secret?
builder.use FaradayMiddleware::OAuth, {:consumer_key => client_id, :consumer_secret => client_secret, :token => oauth_token, :token_secret => oauth_secret} if client_id? and client_secret?
builder.use BitBucket::Request::BasicAuth, authentication if basic_authed?
builder.use FaradayMiddleware::EncodeJson

Expand Down

0 comments on commit 9c95bfa

Please sign in to comment.