Skip to content

Commit

Permalink
Added missing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
vovimayhem committed Feb 16, 2020
1 parent 56c809a commit 87316aa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/omniauth/strategies/icalia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ def authorize_params
uid { raw_info.resource_owner.id.to_s }

info do
{ 'name' => raw_info.resource_owner.name }
personal_info = raw_info.resource_owner
{
'full_name' => personal_info.full_name,
'given_name' => personal_info.given_name,
'family_name' => personal_info.family_name,
'gender_type' => personal_info.gender_type,
'custom_gender' => personal_info.custom_gender,
'date_of_birth' => personal_info.date_of_birth
}
end

extra do
Expand Down

0 comments on commit 87316aa

Please sign in to comment.