lib/omniauth/strategies/dailycred.rb in dailycred-0.1.26 vs lib/omniauth/strategies/dailycred.rb in dailycred-0.1.27
- old
+ new
@@ -54,10 +54,10 @@
private
# This is the phase where the gem calls me.json, which returns information about the user
def user
return @duser if !@duser.nil?
- connection = Faraday::Connection.new options.client_options[:site], options.client_options[:ssl]
+ connection = Faraday::Connection.new options.client_options[:site], :ssl => options.client_options[:ssl]
response = connection.get("/graph/me.json?access_token=#{access_token.token}")
json = JSON.parse(response.body)
# pp json
@duser = {'token' => access_token.token}
@duser['provider'] = 'dailycred'
\ No newline at end of file