pass authentication params to couchdb if specified