Skip to content

Commit e5f6793

Browse files
author
Chris Cho
authored
DOCSP-11519: fixes to MONGODB-AWS auth presentation (#119)
1 parent f4f144a commit e5f6793

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

source/fundamentals/authentication.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ MongoDB Community Edition which includes:
2323
- ``SCRAM-SHA-256``
2424
- ``SCRAM-SHA-1``
2525
- ``MONGODB-CR``
26+
- ``MONGODB-AWS``
2627
- ``X.509``
2728

2829
The :doc:`Enterprise Authentication Mechanisms

source/fundamentals/authentication/mechanisms.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Authentication Mechanisms
1212

1313
In this guide, you can find sample code for connection to MongoDB with each
1414
authentication mechanism available in the MongoDB Community Edition:
15-
``DEFAULT``, ``SCRAM-SHA-256``, ``SCRAM-SHA-1``, ``MONGODB-CR``, and ``X.509``.
15+
``DEFAULT``, ``SCRAM-SHA-256``, ``SCRAM-SHA-1``, ``MONGODB-CR``,
16+
``MONGODB-AWS``, and ``X.509``.
1617

1718
``DEFAULT``
1819
-----------
@@ -147,6 +148,13 @@ The driver checks the following sources for your credentials in order:
147148
4. AWS EC2 endpoint. For more information, see `IAM Roles for Tasks
148149
<https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html>`_.
149150

151+
If you do not already have the `aws signature library <https://www.npmjs.com/package/aws4>`__,
152+
install it using the following ``npm`` command:
153+
154+
.. code-block:: console
155+
156+
npm install aws4
157+
150158
The following code shows an example of specifying the ``MONGODB-AWS``
151159
authentication mechanism and credentials in the connection string.
152160

0 commit comments

Comments
 (0)