From 99633371f4a843a252e095dd2bcc7c9bcce05410 Mon Sep 17 00:00:00 2001 From: Stephen Bussey Date: Sat, 11 Oct 2014 13:50:35 -0700 Subject: [PATCH] Replace the query access token method with headers Tokens are not a reliable way to communicate the token with SFDC. Randomly, connection will be dropped because of this. --- lib/omniauth/strategies/salesforce.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/omniauth/strategies/salesforce.rb b/lib/omniauth/strategies/salesforce.rb index 1668d72..f2d811a 100755 --- a/lib/omniauth/strategies/salesforce.rb +++ b/lib/omniauth/strategies/salesforce.rb @@ -66,8 +66,7 @@ def auth_hash end def raw_info - access_token.options[:mode] = :query - access_token.options[:param_name] = :oauth_token + access_token.options[:mode] = :header @raw_info ||= access_token.post(access_token['id']).parsed end