Skip to content

PHPC-1538: authSource in URI string no longer requires credentials #1248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LIBMONGOC_VERSION_CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.1-20210804+git230369cd07
1.19.0
2 changes: 1 addition & 1 deletion src/libmongoc
Submodule libmongoc updated 110 files
7 changes: 1 addition & 6 deletions tests/manager/manager-ctor-auth_mechanism-error-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ echo throws(function() {
create_test_manager('mongodb://localhost:27017/', ['password' => 'password', 'authMechanism' => 'MONGODB-X509']);
}, "MongoDB\Driver\Exception\InvalidArgumentException"), "\n";

echo throws(function() {
create_test_manager('mongodb://localhost:27017/?authSource=foo');
}, "MongoDB\Driver\Exception\InvalidArgumentException"), "\n";

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