lib/exvo_auth/autonomous/provider.rb in exvo-auth-0.9.8 vs lib/exvo_auth/autonomous/provider.rb in exvo-auth-0.9.9
- old
+ new
@@ -1,18 +1,18 @@
class ExvoAuth::Autonomous::Provider < ExvoAuth::Autonomous::Base
def initialize(params = {})
super
- validate_params!(:consumer_id, :access_token)
+ validate_params!(:app_id, :access_token)
end
def scopes
@@cache.fetch(params) do
scopes!
end
end
def scopes!
- response = auth.get("/apps/provider/authorizations/#{URI.escape(params[:consumer_id])}.json",
+ response = auth.get("/apps/provider/authorizations/#{URI.escape(params[:app_id])}.json",
:query => { :access_token => params[:access_token] }
)
if scope = response["scope"]
@@cache.write(params, scope.split)