Added support for basic auth credentials.