I copy-pasted exactly same code from here (Authentication | Dash for Python Documentation | Plotly) for Basic Auth. When I hit the application at http://localhost:8050/, it does not prompt for username/password and just displays html message " Login Required".
I am running it on RedHat Linux. This is how the pip list output look like -
Brotli (1.0.9)
certifi (2021.10.8)
charset-normalizer (2.0.12)
click (8.0.4)
dash (2.0.0)
dash-auth (1.3.2)
dash-core-components (2.0.0)
dash-html-components (2.0.0)
dash-table (5.0.0)
dataclasses (0.8)
Flask (2.0.3)
Flask-Compress (1.10.1)
Flask-SeaSurf (0.3.1)
idna (3.3)
importlib-metadata (4.8.3)
itsdangerous (2.0.1)
Jinja2 (3.0.3)
MarkupSafe (2.0.1)
pip (9.0.1)
plotly (5.6.0)
requests (2.27.1)
retrying (1.3.3)
setuptools (36.5.0)
six (1.16.0)
tenacity (8.0.1)
typing-extensions (4.1.1)
ua-parser (0.10.0)
urllib3 (1.26.8)
Werkzeug (2.0.3)
zipp (3.6.0)
Could anyone please help ?