Refactor basic_auth to insert in templates