Skip to content

Commit

Permalink
Add credentials params
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed May 24, 2011
1 parent 0e07f3f commit 1bfab1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oa-oauth/lib/omniauth/strategies/mixi.rb
Expand Up @@ -43,15 +43,16 @@ def user_info
{
'nickname' => user_data['entry']['displayName'],
'image' => user_data['entry']['thumbnailUrl'],
'urls' => {:profile => user_data['entry']['profileUrl']}
'urls' => {:profile => user_data['entry']['profileUrl']},
}
end

def auth_hash
OmniAuth::Utils.deep_merge(super, {
'uid' => user_data['entry']['id'],
'user_info' => user_info,
'extra' => {'user_hash' => user_data['entry']}
'credentials' => {'refresh_token' => @access_token.refresh_token},
'extra' => {'user_hash' => user_data['entry']},
})
end
end
Expand Down

0 comments on commit 1bfab1e

Please sign in to comment.