You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above will enable the same behavior of obtaining AWS credentials from the environment as is used for :ref:`MONGODB-AWS` authentication, including the
751
+
caching to avoid rate limiting.
752
+
753
+
An application using GCP credentials would look like::
754
+
755
+
from pymongo import MongoClient
756
+
from pymongo.encryption import ClientEncryption
757
+
client = MongoClient()
758
+
client_encryption = ClientEncryption(
759
+
# The empty dictionary enables on-demand credentials.
The driver will `acquire an access token <https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token>`_ from the Azure VM.
0 commit comments