Skip to content

Commit be0c2ff

Browse files
committed
elaborate_authentication_breaking_change_authsource
1 parent 23ab63c commit be0c2ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Changes in 0.24.0
4848
documents the extended functionality which is no longer supported. Rewrite
4949
the unsupported queries or fetch the whole result set and perform the count
5050
locally.
51+
- Pymongo 4 removed db.authenticate(), on which we were relying for authenticating
52+
with username/password. The migration involved switching to providing credentials to
53+
MongoClient BUT in case the authSource isn't provided, db.authenticate used to default to
54+
authSource=current-database and MongoClient defaults to authSource="admin". Long story short,
55+
if you observe authentication issue after migrating, make sure you provide the authSource
56+
explicitly. (see #2626)
5157

5258
Changes in 0.23.1
5359
=================

0 commit comments

Comments
 (0)