put HTTP Auth in a temp var to satisfy if()