datacite / omniauth-orcid

ORCID Strategy for OmniAuth
MIT License
9 stars 9 forks source link

add email to raw_info #8

Closed nicolasfranck closed 8 years ago

nicolasfranck commented 8 years ago

The return value of the authorize path can return someone his email, so this should be included in the raw_info if provided. For the moment I only add the email that is "PUBLIC" and "current".

mfenner commented 8 years ago

Thank you! Not many accounts will have a public email address, but we should be able to fetch the email if they expose this information.