in your /etc/hosts add an entry for embed.demo.com
127.0.0.1 embed.demo.com
create an ssl cert pair named cert.pem and cert.key and place them under the /ssl folder
I found this process worked for me on mac, with the latest browser updates.
Link to Tutorial
Green SSL is required for events
ensure https://embed.demo.com:3000 is added to your looker's embed domain whitelist
at <<yourlooker>>.cloud.looker.com/admin/embed
I left a config.ini.example
with values in it to make it as clear as possible (avoiding little issues like trailing slashes)
rename it to config.ini and put in your real values
(highly reccomended to use a virtual environment)
pip install -r requirements.txt
It's linked up into a single command, this starts the front and backend servers:
python main.py
Now you should be redirected to https://embed.demo.com:3000 where you should see an embeded dashboard with an event that triggered a simple 'Successfully Loaded!' message
User: Since in your real application, the URL will need to be sensitive to the logged in user this demonstrates how the frontend's request will change what the user sees via the userToken passed in the headers. On frontend/src/components/dashboard.js you can change URL generation method: the /auth route uses local cryptography to produce the magic URL /auth2 uses an API call to looker you can change these routes in the init call on the page as an experiment