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
Copy file name to clipboardExpand all lines: docs/reference/content/driver-async/reference/connecting/authenticating.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,12 @@ only available in the MongoDB [Enterprise Edition](http://docs.mongodb.org/manua
15
15
16
16
An authentication credential is represented as an instance of the
17
17
[`MongoCredential`]({{< apiref "com/mongodb/MongoCredential" >}}) class, which includes static factory methods for
18
-
each of the supported authentication mechanisms. A list of these instances must be passed to the driver via one of several
19
-
[`MongoClient`]({{< apiref "com/mongodb/MongoClient" >}}) constructors that take either a
20
-
parameter of type `List<MongoCredential>`. Alternatively, a single [`MongoCredential`]({{< apiref "com/mongodb/MongoCredential" >}})
21
-
can be created implicity via a
22
-
[`MongoClientURI`]({{< apiref "com/mongodb/MongoClientURI" >}}) and passed to a [`MongoClient`]({{< apiref "com/mongodb/MongoClient" >}})
23
-
constructor that takes a `[`MongoClientURI`]({{< apiref "com/mongodb/MongoClientURI" >}}) parameter.
18
+
each of the supported authentication mechanisms. A list of these instances must be passed to the driver via a
19
+
[`MongoClients`]({{< apiref "com/mongodb/async/client/MongoClients" >}}) static factory method that takes a
20
+
[`MongoClientSettings`]({{< apiref "com/mongodb/async/client/MongoClientSettings" >}}) parameter. Alternatively, a single
21
+
`MongoCredential`can be created implicity via a
22
+
[`ConnectionString`]({{< apiref "com/mongodb/ConnectionString" >}}) and passed to a
23
+
`MongoClients` static factory method that takes a `ConnectionString` parameter.
24
24
25
25
{{% note %}}
26
26
Given the flexibility of role-based access control in MongoDB, it is usually sufficient to authenticate with a single user, but, for completeness, the driver accepts a list of credentials.
0 commit comments