lib/omniauth/strategies/salesforce.rb in omniauth-salesforce-1.0.1 vs lib/omniauth/strategies/salesforce.rb in omniauth-salesforce-1.0.2

- old
+ new

@@ -44,9 +44,16 @@ 'phone' => '', 'urls' => raw_info['urls'] } end + credentials do + hash = {'token' => access_token.token} + hash.merge!('instance_url' => access_token.params["instance_url"]) + hash.merge!('refresh_token' => access_token.refresh_token) if access_token.refresh_token + hash + end + def raw_info access_token.options[:mode] = :query access_token.options[:param_name] = :oauth_token @raw_info ||= access_token.post(access_token['id']).parsed end