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:
Родитель
7e7478cd0d
Коммит
4e4c361b10
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче