@@ -331,7 +331,7 @@ see the corresponding syntax.
331
331
options in your connection string:
332
332
333
333
- ``authMechanism``: Set to ``MONGODB-OIDC``.
334
- - ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s ``.
334
+ - ``authMechanismProperties``: Set to ``ENVIRONMENT:azure ``.
335
335
336
336
Replace the ``<percent-encoded audience>`` placeholder in the
337
337
following code with the percent-encoded value of the audience server
@@ -396,7 +396,7 @@ see the corresponding syntax.
396
396
options in your connection string:
397
397
398
398
- ``authMechanism``: Set to ``MONGODB-OIDC``.
399
- - ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s ``.
399
+ - ``authMechanismProperties``: Set to ``ENVIRONMENT:gcp ``.
400
400
401
401
Replace the ``<percent-encoded audience>`` placeholder in the
402
402
following code with the percent-encoded value of the audience server
@@ -423,7 +423,7 @@ see the corresponding syntax.
423
423
424
424
.. code-block:: java
425
425
426
- MongoCredential credential = MongoCredential.createOidcCredential()
426
+ MongoCredential credential = MongoCredential.createOidcCredential(null )
427
427
.withMechanismProperty("ENVIRONMENT", "gcp")
428
428
.withMechanismProperty("TOKEN_RESOURCE", "<audience>");
429
429
@@ -469,7 +469,7 @@ see the corresponding syntax.
469
469
470
470
.. code-block:: java
471
471
472
- MongoCredential credential = MongoCredential.createOidcCredential()
472
+ MongoCredential credential = MongoCredential.createOidcCredential(null )
473
473
.withMechanismProperty("ENVIRONMENT", "k8s");
474
474
475
475
MongoClient mongoClient = MongoClients.create(
0 commit comments