Skip to content

Federated cross-domain single sign-on (SSO) and single logout (SLO) in Auth0

License

Notifications You must be signed in to change notification settings

abbaspour/federated-sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Federated cross-domain single sign-on (SSO) and single logout (SLO) in Auth0

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published