Shows how to perform Federated cross-site single sign-in (SSO) and single sign-out (SLO) in Auth0.
Cross Domain Single Sign On
![federated sso](https://camo.githubusercontent.com/4a22a201bda64c2655619219412690e8d9cb95caa1713bbca897ed2b0384934f/68747470733a2f2f7261776769742e636f6d2f6162626173706f75722f6665646572617465642d73736f2f6d61737465722f7365712f73736f2e706e67)
Cross Domain Single Log Out
![federated sso](https://camo.githubusercontent.com/46f2775f5cf74e281ade7617df657e3e0c6f3928c9433755d61c9fc85039e2fc/68747470733a2f2f7261776769742e636f6d2f6162626173706f75722f6665646572617465642d73736f2f6d61737465722f7365712f736c6f2e706e67)
cat /etc/hosts | grep app
127.0.0.1 app1.com app2.com app3.com
Create two Auth0 applications:
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 |
Edit spa.html
and update the following variables.
Config |
Value |
AUTH0_DOMAIN |
AUTH0 TENANT |
AUTH0_CLIENT_ID |
App3 client ID |