File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,13 +158,15 @@ Identity and Access Management (AWS IAM) credentials to authenticate a user to M
158158
159159To 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
169171After you register the AWS authentication provider, you can either specify the AWS IAM
170172credentials explicitly or instruct the driver to retrieve them automatically from an
You can’t perform that action at this time.
0 commit comments