You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
Cloudant (python-cloudant) version(s) that are affected by this issue.
$ pip list | grep cloudant
cloudant (2.8.1)
Python version
$ python --version
Python 3.6.5
A small code sample that demonstrates the issue.
# This works
import requests
import json
auth = ('admin', '31sf13b3r!')
get_url = "http://127.0.0.1:5984/_session".format(auth[0])
r = requests.get(get_url, auth=auth)
print(json.dumps(r.json(), indent=1))
# This doesn't work
from cloudant import CouchDB
db = CouchDB(*auth, url='http://127.0.0.1:5984')
db.connect()
print(db.all_dbs())
The text was updated successfully, but these errors were encountered:
Cookie auth (_session) and require_valid_user isn't a supported combination. Our focus is on building a client for the Cloudant service, where require_valid_user is off and cannot be turned on.
That said, you are welcome to raise a PR with the above diff and we will be inclined to accept it providing all of our tests pass.
I want to connect to a CouchDB instance (example code below) with the configuration parameter
this gives a
A hot fix for cookie based authentication would be:
The text was updated successfully, but these errors were encountered: