Doing Single Sign On between SPAs and Regular Web Apps
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
aaguiarz Merge pull request #10 from ShayMe21/patch-1
fix to serve with a port command
Latest commit ea2b5fa Jul 5, 2018

SSO sample

This is the example for the SSO article. In here, you'll see how to implement SSO between Single Page Apps and Regular Web Apps using Auth0.


In this example, we have 3 applications:

  • (single page app)
  • (single page app)
  • (regular web app)

Each application has its own folder in this repository with its own instructions on how to run it.


In order to be able to test SSO correctly, each application must have its own domain. For that, you can edit your /etc/hosts and make, and all point to

For that, open /etc/hosts and edits as follows:

# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
## localhost broadcasthost
::1             localhost 
# ...

Once that's done, just run all 3 applications (See specific instructions on each README) and go to to start using the applications :).


To learn more about how this 3 apps work with SSO, please read the SSO article from our docs.