Skip to content

Commit ade00a5

Browse files
committed
vale
1 parent b5758f0 commit ade00a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/security-and-authentication/mongodb-aws-auth.txt

+6-5
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ properties:
9292
class name of the implementation class
9393

9494
Depending on the design of your implementation class, you might also
95-
need to set the ``mongodbaws.auth.mechanism.roleArn`` property, which
95+
set the ``mongodbaws.auth.mechanism.roleArn`` property, which
9696
provides the Amazon Resource Name (ARN).
9797

9898
Example
@@ -114,14 +114,15 @@ provider:
114114
mongodbaws.auth.mechanism.roleArn=arn:aws:iam::<account ID>:role/<role name>
115115

116116
In this example, the ``sample.AwsAssumeRoleCredentialProvider``
117-
implementation class must be available on the classpath. Your
118-
authentication provider reads the ARN you specify.
117+
implementation class must be available on the classpath. The
118+
authentication provider class reads the ARN you specify in the
119+
``roleArn`` property.
119120

120121
The ``AwsAssumeRoleCredentialProvider`` class defines ``init()`` and
121122
``validate()`` methods that are called when the connector initializes.
122123
It returns an object of type ``com.mongodb.MongoCredential`` that is
123-
used by the ``MongoClient``. The following code provides a sample
124-
implementation of a custom authentication provider:
124+
used by the ``MongoClient``. The following code defines the custom
125+
authentication provider:
125126

126127
.. code-block:: java
127128

0 commit comments

Comments
 (0)