Giter Club home page Giter Club logo

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.

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

auth0-sso-sample's People

Contributors

aaguiarz avatar damieng avatar jerriep avatar mehreencs87 avatar mgonto avatar ntotten avatar twistedstream avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auth0-sso-sample's Issues

Sample does not work due to outdated URLs

Hi,

I have followed the provided instructions and tried to run the sample, but it does not work. I get this error when I try to log in:

Unknown host: auth0pnp.auth0.com

It looks like the URLs being called by the app are no longer valid.

Not connected between apps

Hi,

I've set up everything just like described but I never got connected to the other apps after a first connection on any of the apps.

Is there some config or code changing to make it work ?

Thanks

Auth0Lock v10

Hi,

Are there any plans to update this sample using Auth0 Lock v10? Thanks.

Regards,
John

Social login missing

Hi,

Could you please add social login to this example?.

Thanks in advance,
Hugo

auth0.js V8

Hi,

Are there any plans to update this sample using Auth0 V8? Thanks.

Regards,
John

Auth0 app3 example is not working properly

Is there any additional configuration I need to set up on Auth0 website? I tried running app3 but got the error page on 'Looks like something went wrong! There could be a misconfiguration in the system or a service outage.' I already filled the Allowed Callback URLs/Allowed Logout URLs/Allowed Web Origins with http://app3.com:3002/ but it still not working.

edit: resolved by changing clientID and Secret in .env

Log out implementation and updating the document link for SSO.

Hi,
I was able to set this up and it works nicely.
I have 2 questions.
How would the implementation of logout work? If I logout from 1 site it should logout from all the other sites.
The auth0 supporting doc link in the readme is dead. Is there another link that is available for fixing that?

Problem in starting server.js file in app3.com

app1.com and app2.com started successfully but there is a error in staring server.js file. I had used npm install, I had installed npm install -g express separately but I am facing issue in staring server.js file of app3.com. So please help me out.
Error SSO

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.