Implementation of Dash app behind auth0.
This is one of the ways you can require authentication before accessing a dash dashboard.
pip install -r requirements.txt
Go create an auth0 account https://auth0.com/ and create a new project, then fill in these values in auth/auth0.py
To create a new project, go to Applications in the sidebar, and create a new "Regular Web Application" In the settings, grab the values you need to fill out the below. These things will be in the "Basic Information" section under settings of the project you just created.
secret_dict = {
"AUTH0_DOMAIN": "",
"APP_SECRET_KEY": "xixieieidmmcnskadsfvb", # should probably actually generate a real key in prod...
"AUTH0_CLIENT_ID": "",
"AUTH0_CLIENT_SECRET": "",
}
In the same place you got the above from, you will need to add these urls to the "allowed callback urls" field and so on:
Allowed callback urls: http://127.0.0.1:3000/login/callback
Allowed logout urls: http://127.0.0.1:3000/logout, http://127.0.0.1:3000/
Allowed web origins: http://127.0.0.1:3000