Skip to content

Commit 323d056

Browse files
committed
feedback
1 parent 2c386d9 commit 323d056

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/fundamentals/authentication.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,15 @@ Identity and Access Management (AWS IAM) credentials to authenticate a user to M
158158

159159
To use AWS authentication, first perform the following steps:
160160

161-
- Add the ``MongoDB.Driver.Authentication.AWS`` NuGet package to your project.
161+
- Add the `MongoDB.Driver.Authentication.AWS <https://www.nuget.org/packages/MongoDB.Driver.Authentication.AWS>`__
162+
NuGet package to your project.
162163
- Add the following line of code to your application's bootstrap code to register the
163164
AWS authentication provider:
164165

165166
.. code-block:: csharp
167+
:copyable: true
166168

167-
MongoAuthentication.RegisterAwsAuthenticationProvider();
169+
MongoClientSettings.Extensions.AddAWSAuthentication();
168170

169171
After you register the AWS authentication provider, you can either specify the AWS IAM
170172
credentials explicitly or instruct the driver to retrieve them automatically from an

0 commit comments

Comments
 (0)