Updated to use HTTP authentication