Salesforce provides additional fields namely issued_at & signature that are to be returned. access_token post authorization is always perishable. Hence the need to obtain refresh_token.

This commit is contained in:
Sai Lavu 2011-08-27 19:37:06 -03:00
Родитель 7e7478cd0d
Коммит 4e4c361b10
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -18,7 +18,10 @@ module OmniAuth
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,