Add support for basic auth.