Permalink
Browse files

Salesforce provides additional fields namely issued_at & signature th…

…at are to be returned. access_token post authorization is always perishable. Hence the need to obtain refresh_token.
  • Loading branch information...
1 parent 7e7478c commit 4e4c361b10b302b1b23a94462b9ed890e526cede @sailavu sailavu committed Aug 27, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 oa-oauth/lib/omniauth/strategies/oauth2/salesforce.rb
@@ -18,7 +18,10 @@ def auth_hash
super, {
'uid' => @access_token['id'],
'credentials' => {
+ 'issued_at' => @access_token['issued_at'],
+ 'refresh_token' => @access_token.refresh_token,
'instance_url' => @access_token['instance_url'],
+ 'signature' => @access_token['signature'],
},
'extra' => {
'user_hash' => data,

0 comments on commit 4e4c361

Please sign in to comment.