Giter Club home page Giter Club logo

federated-sso's Introduction

About

Shows how to perform Federated cross-site single sign-in (SSO) and single sign-out (SLO) in Auth0.

How Does it Work?

Cross Domain Single Sign On

federated sso

Cross Domain Single Log Out

federated sso

Setup

Hosts

cat /etc/hosts | grep app
127.0.0.1  app1.com app2.com app3.com

Auth0 Applications

Create two Auth0 applications:

Federated SSO - App1

Config Value
Type regular web app
Allowed Callback URLs http://app1.com/cb.php, http://app2.com/cb.php

Federated SSO - App2

Config Value
Type regular web app
Allowed Callback URLs http://app1.com/cb.php, http://app2.com/cb.php

Seamless SSO - App3

Config Value
Type SPA
Allowed Callback URLs http://app3.com/spa.html

Configuration

vars.php

Copy vars.php-TOBEMODIFIED to vars.php and update the following variables.

Config Value
$AUTH0_DOMAIN AUTH0 TENANT
$APP1_CLIENT_ID App1 client ID
$APP1_CLIENT_SECRET App1 client Secret
$APP2_CLIENT_ID App2 client ID
$APP2_CLIENT_SECRET App2 client Secret

spa.html

Edit spa.html and update the following variables.

Config Value
AUTH0_DOMAIN AUTH0 TENANT
AUTH0_CLIENT_ID App3 client ID

federated-sso's People

Contributors

abbaspour avatar sumanamalkapuram avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.