Giter Site home page Giter Site logo

pkmsekar / auth0-sso-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from auth0-samples/auth0-sso-sample

0.0 2.0 0.0 155 KB

Doing Single Sign On between SPAs and Regular Web Apps

License: MIT License

CSS 24.60% JavaScript 49.65% HTML 25.75%

auth0-sso-sample's Introduction

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.

Structure

In this example, we have 3 applications:

  • app1.com (single page app)
  • app2.com (single page app)
  • app3.com (regular web app)

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

Running

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 app1.com, app2.com and app3.com all point to 127.0.0.1.

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.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1             localhost 
# ...
127.0.0.1 app1.com
127.0.0.1 app2.com
127.0.0.1 app3.com

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

Learning

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.