From 87316aad89b3ba8093807d641be57174819f35f7 Mon Sep 17 00:00:00 2001 From: Roberto Quintanilla Date: Sun, 16 Feb 2020 01:06:48 -0600 Subject: [PATCH] Added missing fields --- lib/omniauth/strategies/icalia.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/omniauth/strategies/icalia.rb b/lib/omniauth/strategies/icalia.rb index db48972..e1fc5ab 100644 --- a/lib/omniauth/strategies/icalia.rb +++ b/lib/omniauth/strategies/icalia.rb @@ -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