Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

single sign on for multiple nodejs applications

We have 3 nodejs web application running on same domain name on same vps with multiple subdomains and implementing passport authentication for each. We wanted single user be able to access all application with single account and for that we have added accounts.example.com as fourth application solely for purpose of account management. The requirement is - once user is authenticated in accounts.example.com, how to enable user to access rest of the three web application with that session.

like image 994
user3121480 Avatar asked Oct 03 '22 02:10

user3121480


1 Answers

you can share your session in redis-server.if you use express,you can try to use connect-redis https://github.com/visionmedia/connect-redis

like image 63
Nelson.li Avatar answered Oct 13 '22 10:10

Nelson.li