Basic Auth example code does not work

Tip for anyone trying to deploy to AWS EB

You will need to enable authentication on the web-server, as the headers come back as None and will cause abort of the login.

See this post: How do I deploy Dash to Elastic Beanstalk with Basic Authentication