Isn't this what the below include of basic-auth.j2 does?