Closed starsheriff closed 7 years ago
The reason is that Github (sometimes?) doesn't return the user email, and Jingo needs to be instructed to deal with this case. From the README:
emptyEmailMatches
allows access when remote authentication providers do not provide an email address as part of user data. It defaults tofalse
, but will usually need to be set totrue
for GitHub authentication (GitHub only returns email addresses that have been made public on users' GitHub accounts).
Thank you, that resolved the issue. I would not have found that solution on my own I guess. May I suggest to update the documentation a little bit to highlight this? One sentence in the Github oAuth section would suffice and probably help others as well.
I've updated the README with a more explicit warning :)
I tried to set up authentication with github. As far as I can tell the authentication works until I am sent to /auth/done, where I get a 403 forbidden response.
from the logs:
I can provide more information if needed.