Added support for basic auth