We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a1c88 commit b69d2e3Copy full SHA for b69d2e3
source/reference/method/db.auth.txt
@@ -219,6 +219,17 @@ prompt the user to enter their password:
219
use test
220
db.auth( "myTestDBUser" )
221
222
+Starting in MongoDB 5.0, if your connection specifies the
223
+:option:`--apiStrict` option, you may not use the :method:`db.auth()`
224
+method to:
225
+
226
+ - Authenticate again as the same user on the same database.
227
+ - Authenticate as a different user when previously authenticated
228
+ on the same database.
229
+ - Authenticate with a new database when previously authenticated on a
230
+ different database.
231
232
233
Authenticate when Connecting to the Shell
234
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235
0 commit comments