Skip to content

Commit 7d69d98

Browse files
committed
Converted note blocks in docs
1 parent 7be2b8f commit 7d69d98

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

docs/reference/content/reference/connecting/authenticating.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ title = "Authenticating"
99

1010
# Authenticating
1111

12-
The Java driver supports all MongoDB [authentication mechanisms](http://docs.mongodb.org/manual/core/authentication/), including those
12+
The Java driver supports all MongoDB [authentication mechanisms](http://docs.mongodb.org/manual/core/authentication/), including those
1313
only available in the MongoDB [Enterprise Edition](http://docs.mongodb.org/manual/administration/install-enterprise/).
1414

15-
An authentication credential is represented as an instance of the
16-
[MongoCredential](http://api.mongodb.org/java/current/com/mongodb/MongoCredential.html) class, which includes static factory methods for
15+
An authentication credential is represented as an instance of the
16+
[MongoCredential](http://api.mongodb.org/java/current/com/mongodb/MongoCredential.html) class, which includes static factory methods for
1717
each of the supported authentication mechanisms. A list of these instances must be passed to the driver via one of several
1818
[MongoClient](http://api.mongodb.org/java/current/com/mongodb/MongoCredential.html) constructors that take a
19-
parameter of type `List<MongoCredential>`.
19+
parameter of type `List<MongoCredential>`.
2020

21-
> Given the flexibility of role-based access control in MongoDB, it is usually sufficient to authenticate with a single user, but, for
22-
completeness, the driver accepts a list of credentials.
21+
{{% note %}}
22+
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.
23+
{{% /note %}}
2324

2425
## Default authentication mechanism
2526

@@ -129,8 +130,9 @@ or with a connection string:
129130
MongoClientURI uri = new MongoClientURI("mongodb://username%40REALM.com@host1/?authMechanism=GSSAPI");
130131
```
131132

132-
> The method refers to the `GSSAPI` authentication mechanism instead of `Kerberos` because technically the driver is authenticating
133-
via the [GSSAPI](https://tools.ietf.org/html/rfc4752) SASL mechanism.
133+
{{% note %}}
134+
The method refers to the `GSSAPI` authentication mechanism instead of `Kerberos` because technically the driver is authenticating via the [GSSAPI](https://tools.ietf.org/html/rfc4752) SASL mechanism.
135+
{{% /note %}}
134136

135137
To successfully authenticate via Kerberos, the application typically must specify several system properties so that the underlying GSSAPI
136138
Java libraries can acquire a Kerberos ticket:
@@ -158,5 +160,6 @@ or with a connection string:
158160
MongoClientURI uri = new MongoClientURI("mongodb://user1@host1/?authSource=$external&authMechanism=PLAIN");
159161
```
160162

161-
> The method refers to the `plain` authentication mechanism instead of `LDAP` because technically the driver is authenticating
162-
via the [PLAIN](https://www.ietf.org/rfc/rfc4616.txt) SASL mechanism.
163+
{{% note %}}
164+
The method refers to the `plain` authentication mechanism instead of `LDAP` because technically the driver is authenticating via the [PLAIN](https://www.ietf.org/rfc/rfc4616.txt) SASL mechanism.
165+
{{% /note %}}

docs/reference/content/reference/connecting/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ mongodb://host:27017/mydb
4343

4444
Above, the database by the name of "mydb" is where the credentials are stored for the application.
4545

46-
> Note that some drivers utilize the database component to indicate which database to work with by default. The Java driver, while it
47-
parses the database component, does not use the database component for anything other than authentication.
46+
{{% note %}}
47+
Some drivers utilize the database component to indicate which database to work with by default. The Java driver, while it parses the database component, does not use the database component for anything other than authentication.
48+
{{% /note %}}
4849

4950
#### Options
5051

0 commit comments

Comments
 (0)