SSO on Node.js server
Make sure you have git, node, and npm installed. Clone this repository locally. Add 127.0.0.1 site1.demo.localhost to your local hosts file. Add 127.0.0.1 site2.demo.localhost to your local hosts file.
Install node package dependencies:
npm install
Execute index.js from the root directory of the repository.
node index.js
Open site1.demo.localhost:3000 in your browser and login. Open site2.demo.localhost:3000 to verify authentication.