Closed sarim closed 8 years ago
Good work! Thank you for your attention to detail :smile:
v1.1.5
What's odd is that it worked before... did the api change?
Ah, i think i know the cause for request re-execute. First node process did quit due to error, and i guess nginx passed the request to second process, which resulted in facebook auth code reuse :P
About Facebook api, It did change. They removed username, made userid app specific etc... I guess they changed other things too. Read the changelog for v2.0 to v2.3.
Now my users are complaining their picture aren't being fetched from facebook. I'll open another issue for that.
If you keep this work up, I just might make you maintainer for this SSO plugin :laughing:
Phew, took me one hour to finally nail the issue. The frontend shows a oauth error,
And i spend the whole hour trying to nail the oauth error, but actually it throws two error in log.
Another one
without
displayName
in requested profile fields in facebook request, name remains undefined, thus the error related totrim
. For some reason this causes the request to re-execute and thus the causing the "code already used" error from facebook auth.adding
displayName
to profileFields solves both errors. oAuth works properly and new user is created.