this is a website created with node & express, using pug (updated jade) for templating. the goal is to connect to auth0.com for user authentication.
export DESIRED_VERSION=HEAD
git clone https://github.com/pegasus-io/the-cors-tester
cd ./the-cors-tester
git checkout ${DESIRED_VERSION}
# the domain
export AUTH0_DOMAIN=auth0.pegasusio.io
# the clientID
export AUTH0_CLIENT_ID=pegasustest
# the clientSecret
export AUTH0_CLIENT_SECRET=ver7S3cr3t
# callbackURL
export AUTH0_CALLBACK_URL=https://someservice.pegasusio.io:8459/ether
npm i && npm run dev
Auth0
Account, for the created aplication settings :# .env
export AUTH0_CLIENT_ID=N9Sa4YRY8hLnxLcTFqQM3Bfo32cQMMOY
export AUTH0_DOMAIN=pegasusio.eu.auth0.com
export AUTH0_CLIENT_SECRET=YOUR_CLIENT_SECRET
# the domain name depends on where you deployed and made available your app
export AUTH0_CALLBACK_URL=http://2886795290-8000-cykoria04.environments.katacoda.com/callback
echo ''
echo " -- finally, and **very important** : "
echo " -- you must configure the Auth0 _Application_ you created, to allow one callback url, of value "
echo " -- the exact value of [${AUHT0_CALLBACK}]"
echo ''
Auth0
Application you created, to allow one callback url, the exact value of ${AUHT0_CALLBACK}
Auth0
needs a fix, but it's not what we care about :
sub.domain1.com
and sub.domain2.com
GET
POST
PUT
PATCH
DELETE
.<img href="https://randomuser.me/api/portraits/med/women/18.jpg">a beautiful cross origin image</img>