You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
It looks like everyauth is relying on some state which is not stored in the session store and thus I can't make it work in an environment where nginx is load balancing several node.js instances.
I'm using connect-redis as a session store.
Here're the steps to reproduce (without the complexity of running it behind nginx):
I start the server (e.g. node server.js)
I navigate to my page with the authentication options (e.g. /home)
I navigate to the google authentication option (e.g. /auth/google)
When the google login page shows (I've logged out from google in advance) I restart my node server
When I login into google I'm redirected to "/auth/google/callback?code=....." but the everyauth code stops somewhere after "starting step - getAccessToken" and the page timeouts.
Any help on the matter will be highly appreciated.
Thanks!
P.S. Just wanted to add that this issue is reproducible both with Google and Facebook but Yahoo seems to work fine (at least it worked when I tested it once. maybe I have to try again).
The text was updated successfully, but these errors were encountered:
Just to chime in, you might want to do simple round robin balancing via hash/mod. This way you know some user u will always be diverted to the same box b. Not completely stateless when all is said and done, but it works. Nginx has the capability via conf file or plug-in.
Hello,
It looks like everyauth is relying on some state which is not stored in the session store and thus I can't make it work in an environment where nginx is load balancing several node.js instances.
I'm using connect-redis as a session store.
Here're the steps to reproduce (without the complexity of running it behind nginx):
Any help on the matter will be highly appreciated.
Thanks!
P.S. Just wanted to add that this issue is reproducible both with Google and Facebook but Yahoo seems to work fine (at least it worked when I tested it once. maybe I have to try again).
The text was updated successfully, but these errors were encountered: