Add basic auth support to connection