Topic-icon Github, retrieve the email of the user

Active Subscriptions:

None
11 years 2 months ago #52078 by michellotto
Hi,
Is there a way to retrieve the user's email by authenticate the client with Github? If yes, how can we do it?
Thanks
The topic has been locked.
Support Specialist
11 years 2 months ago #52081 by mel
Unfortunately Github is one of the social network providers that does not return email addresses as part of the user profile data. We have no control of this.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #52094 by michellotto
Hi Melissa,

And thank you for your quick reply. According to the Github documentation, retrieving the user's email should be possible:
---
developer.github.com/v3/oauth/
---

Thanks,
/Jérôme
The topic has been locked.
Support Specialist
11 years 2 months ago #52096 by mel
Could you do the following for me:
1. Log into Github. Edit your user profile and make sure the 'Public Email Address' is marked to a valid email address instead of 'Don't show my email address'
2. If you have the Automatic Registration setting enabled in JFBConnect, please set it to No.
3. Click the Github login button (from SCLogin module, etc).

Does the email address get populated for you? I realized the profile I was testing with had the public email address to Don't show. When I switched it, the value was pulled in.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #52100 by michellotto
Hi Melissa,

You have right. By setting a public email address, it works!

Thank for your support,
Regards,
/Jérôme
The topic has been locked.
Support Specialist
11 years 2 months ago #52104 by mel
Great, glad to hear that it was that simple.
The topic has been locked.