Skip to content

Commit 05136f1

Browse files
authored
Merge branch 'master' into secbug-304-rce
2 parents 45578ef + dd333de commit 05136f1

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed

.github/workflows/add-netlify-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
appendContentOnMatchOnly: true
5656
regexFlags: is
5757
content: "<!-- start insert-links -->\n${{ steps.build_page_links.outputs.staging_links }}\n<!-- end insert-links -->"
58-
token: ${{ secrets.GITHUB_TOKEN }}
58+
token: ${{ secrets.GITHUB_TOKEN }}

source/fundamentals/authentication.txt

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,26 @@ MONGODB-AWS
153153
The ``MONGODB-AWS`` authentication mechanism is available only for
154154
MongoDB deployments on MongoDB Atlas.
155155

156-
The ``MONGODB-AWS`` authentication mechanism uses your Amazon Web Services
157-
Identity and Access Management (AWS IAM) credentials to authenticate your
158-
user. You can either specify your credentials explicitly
159-
or instruct the driver to retrieve them automatically from an external source.
156+
The ``MONGODB-AWS`` authentication mechanism uses Amazon Web Services
157+
Identity and Access Management (AWS IAM) credentials to authenticate a user to MongoDB.
160158

161-
The following sections contain code examples that use the following placeholders:
159+
To use AWS authentication, first perform the following steps:
160+
161+
- Add the `MongoDB.Driver.Authentication.AWS <https://www.nuget.org/packages/MongoDB.Driver.Authentication.AWS>`__
162+
NuGet package to your project.
163+
- Add the following line of code to your application's bootstrap code to register the
164+
AWS authentication provider:
165+
166+
.. code-block:: csharp
167+
:copyable: true
168+
169+
MongoClientSettings.Extensions.AddAWSAuthentication();
170+
171+
After you register the AWS authentication provider, you can either specify the AWS IAM
172+
credentials explicitly or instruct the driver to retrieve them automatically from an
173+
external source. The following sections describe both of these methods.
174+
175+
The code examples in these sections use the following placeholders:
162176

163177
- ``<awsKeyId>`` - value of the AWS access key ID
164178
- ``<awsSecretKey>`` - value of the AWS secret access key

source/upgrade/v3.txt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,28 @@ Version 3.0 Breaking Changes
150150
- The ``MongoClient`` constructor accepts only one ``Credential`` object instead of an
151151
array.
152152

153+
- To use Amazon Web Services (AWS) authentication, you must add the
154+
``MongoDB.Driver.Authentication.AWS`` package to your project and register the
155+
authentication provider in your application's bootstrap code. To learn more about
156+
using AWS authentication with the {+driver-short+}, see :ref:`csharp-mongodb-aws`.
157+
153158
- If you try to serialize or deserialize a floating-point
154159
``Infinity`` or ``NaN`` value to an integral representation, the driver throws an
155160
``OverflowException``. To learn more about floating-point ``Infinity`` and ``NaN``
156161
values, see
157162
`Double.NaN, <https://learn.microsoft.com/en-us/dotnet/api/system.double.nan?view=net-8.0#system-double-nan>`__
158163
`Double.PositiveInfinity, <https://learn.microsoft.com/en-us/dotnet/api/system.double.positiveinfinity?view=net-8.0#system-double-positiveinfinity>`__
159164
and `Double.NegativeInfinity. <https://learn.microsoft.com/en-us/dotnet/api/system.double.negativeinfinity?view=net-8.0#system-double-negativeinfinity>`__
160-
on MSDN.
165+
on MSDN.
166+
167+
- The driver includes the following changes to the ``BsonValue`` class:
168+
169+
- Removes the ``[Obsolete]`` attribute from the ``AsLocalTime`` and
170+
``AsUniversalTime`` properties.
171+
- Adds the `AsNullableLocalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableLocalTime.html#MongoDB_Bson_BsonValue_AsNullableLocalTime>`__
172+
and `AsNullableUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__
173+
properties.
174+
- Removes the ``AsDateTime`` property. Use the `AsUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsUniversalTime.html#MongoDB_Bson_BsonValue_AsUniversalTime>`__
175+
property instead.
176+
- Removes the ``AsNullableDateTime`` property. Use the `AsNullableUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__
177+
property instead.

0 commit comments

Comments
 (0)