py-couchdb icon indicating copy to clipboard operation
py-couchdb copied to clipboard

Feature Request: Create a Server connection with seperate authentication tuple

Open MarcelPa opened this issue 4 years ago • 0 comments

Hey everyone,

in order to authenticate with a CouchDB server, you need to add the basic authentication to the url itself, where it is extracted afterwards. If I get username and password separately, I need to put in way to much work to cut the url and put it back together including the authentication details. Looking into the code, the authentication is extracted on the second step when creating a new Server connection. Would it be possible to provide the means to supply user and password separately?

Something like

couchdb = pycouchdb.Server(couch_uri, auth=("user", "pass"))

MarcelPa avatar Jun 29 '20 12:06 MarcelPa