Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Jun 10, 2024
1 parent 46f27a3 commit b5758f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/security-and-authentication/mongodb-aws-auth.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ In this example, the ``sample.AwsAssumeRoleCredentialProvider``
implementation class must be available on the classpath. Your
authentication provider reads the ARN you specify.

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

.. code-block:: java

Expand Down

0 comments on commit b5758f0

Please sign in to comment.