Basic authentication

Problem

Solution

Create a python file containing the code below and start the script.
When you enter the url http://localhost:8080/ you will be redirected
to the url http://localhost:8080/login.
When you are successfully authenticated, you will be redirected to the
index page.