Skip to content

Commit 88dcfce

Browse files
authored
PHPC-1538: authSource in URI string no longer requires credentials (mongodb#1248)
Bump libmongoc 1.19.0 to pull in changes from CDRIVER-3502. Unfortunately, the restriction is still in place for authSource in the URI options array (pending PHPC-1950).
1 parent 659b6e5 commit 88dcfce

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/LIBMONGOC_VERSION_CURRENT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.1-20210804+git230369cd07
1+
1.19.0

src/libmongoc

Submodule libmongoc updated 110 files

tests/manager/manager-ctor-auth_mechanism-error-001.phpt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ echo throws(function() {
3333
create_test_manager('mongodb://localhost:27017/', ['password' => 'password', 'authMechanism' => 'MONGODB-X509']);
3434
}, "MongoDB\Driver\Exception\InvalidArgumentException"), "\n";
3535

36-
echo throws(function() {
37-
create_test_manager('mongodb://localhost:27017/?authSource=foo');
38-
}, "MongoDB\Driver\Exception\InvalidArgumentException"), "\n";
39-
36+
// TODO: This test case should be removed by PHPC-1950
4037
echo throws(function() {
4138
create_test_manager('mongodb://localhost:27017/', ['authSource' => 'foo']);
4239
}, "MongoDB\Driver\Exception\InvalidArgumentException"), "\n";
@@ -60,7 +57,5 @@ Failed to parse URI options: 'SCRAM-SHA-1' authentication mechanism requires use
6057
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6158
Failed to parse URI options: X509 authentication mechanism does not accept a password.
6259
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
63-
Failed to parse MongoDB URI: 'mongodb://localhost:27017/?authSource=foo'. Default authentication mechanism requires username.
64-
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
6560
Failed to parse URI options: Default authentication mechanism requires username.
6661
===DONE===

0 commit comments

Comments
 (0)