Skip to content

Commit

Permalink
Update to oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
iconnor committed Dec 11, 2015
1 parent 506ae7a commit 9fda1bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions lib/omniauth/strategies/bitbucket.rb
@@ -1,15 +1,14 @@
require 'omniauth-oauth'
require 'omniauth-oauth2'

module OmniAuth
module Strategies
class Bitbucket < OmniAuth::Strategies::OAuth
class Bitbucket < OmniAuth::Strategies::OAuth2
# This is where you pass the options you would pass when
# initializing your consumer from the OAuth gem.
option :client_options, {
:site => 'https://bitbucket.org',
:request_token_path => '/api/1.0/oauth/request_token',
:authorize_path => '/api/1.0/oauth/authenticate',
:access_token_path => '/api/1.0/oauth/access_token'
:authorize_url => 'https://bitbucket.org/site/oauth2/authorize',
:token_url => 'https://bitbucket.org/site/oauth2/access_token'
}

# These are called after authentication has succeeded. If
Expand Down
2 changes: 1 addition & 1 deletion omniauth-bitbucket.gemspec
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|

# specify any dependencies here; for example:
s.add_dependency 'omniauth', '~> 1.1'
s.add_dependency 'omniauth-oauth', '~> 1.0'
s.add_dependency 'omniauth-oauth2', '>= 1.1.1', '< 2.0'
s.add_dependency 'multi_json', '~> 1.7'

s.add_development_dependency 'rspec', '~> 2.7'
Expand Down

0 comments on commit 9fda1bc

Please sign in to comment.