<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007eSw0NCASOkta Classic EngineSingle Sign-OnAnswered2024-04-17T10:09:41.000Z2022-05-18T16:56:35.000Z2022-05-19T16:18:54.000Z

1jig4 (1jig4) asked a question.

Unable to get GitHub email when adding GitHub as IdP

I'm trying to add "Login with GitHub" functionality to the login page following this documentation(https://developer.okta.com/docs/guides/social-login/github/main/).

 

I created a GitHub Identity Provider and added `user:email` scope which I believe it makes it available to read private email address from GitHub.

Image is not available

But finally, I got `Your request resulted in an error. The following required property is missing: 'email'.` error after authorizing app.

 

I don't wanna create an account with custom email address because users won't be able to receive emails because the email address doesn't exist.


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @1jig4 (1jig4)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some research on my end and it seems that the reason why you are receiving this error, might be because the users have their email address configured as private on their GitHub profile, but I couldn't find another workaround than the one provided in the documentation mentioned by you. (Generating email addresses for users)

     

    I'm assuming that user:email scope only provides access to read a user's email address as per the bellow article, but if the user has it marked as private on the Github end, then the app will still not provide that email.

     

    My advice would be to also leverage the Okta Developer forums for this type of questions and take advantage of their expertise.

    Expand Post
This question is closed.
Loading
Unable to get GitHub email when adding GitHub as IdP