Added support for basic authentication