Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update for latest version of oauth2 gem

  • Loading branch information...
commit f92ceeb780092193f29126e8f89b95db0f6990a4 1 parent 30c94a1
@kookster kookster authored
View
4 lib/oauth/models/consumers/services/oauth2_token.rb
@@ -12,11 +12,11 @@ def self.create_consumer(options={})
def self.authorize_url(callback_url)
options = {:redirect_uri=>callback_url}
options[:scope] = credentials[:scope] if credentials[:scope].present?
- consumer.web_server.authorize_url(options)
+ consumer.auth_code.authorize_url(options)
end
def self.access_token(user, code, redirect_uri)
- access_token = consumer.web_server.get_access_token(code, :redirect_uri => redirect_uri)
+ access_token = consumer.auth_code.get_token(code, :redirect_uri => redirect_uri)
find_or_create_from_access_token user, access_token
end
View
2  oauth-plugin.gemspec
@@ -34,6 +34,6 @@ Gem::Specification.new do |s|
s.add_dependency "multi_json"
s.add_dependency("oauth", ["~> 0.4.4"])
s.add_dependency("rack")
- s.add_dependency("oauth2")
+ s.add_dependency("oauth2", '>= 0.5.0')
end
Please sign in to comment.
Something went wrong with that request. Please try again.