lib/exvo_auth/autonomous/provider.rb in exvo-auth-0.7.1 vs lib/exvo_auth/autonomous/provider.rb in exvo-auth-0.7.2

- old
+ new

@@ -9,15 +9,10 @@ scopes! end end def scopes! - response = httparty.get("/apps/provider/authorizations/#{URI.escape(params[:consumer_id])}.json", - :base_uri => params[:site], - :basic_auth => { - :username => params[:client_id], - :password => params[:client_secret] - }, + response = auth.get("/apps/provider/authorizations/#{URI.escape(params[:consumer_id])}.json", :query => { :access_token => params[:access_token] } ) if scope = response["scope"] @@cache.write(params, scope.split)