@@ -331,7 +331,7 @@ see the corresponding syntax.
331331 options in your connection string:
332332
333333 - ``authMechanism``: Set to ``MONGODB-OIDC``.
334- - ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s ``.
334+ - ``authMechanismProperties``: Set to ``ENVIRONMENT:azure ``.
335335
336336 Replace the ``<percent-encoded audience>`` placeholder in the
337337 following code with the percent-encoded value of the audience server
@@ -396,7 +396,7 @@ see the corresponding syntax.
396396 options in your connection string:
397397
398398 - ``authMechanism``: Set to ``MONGODB-OIDC``.
399- - ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s ``.
399+ - ``authMechanismProperties``: Set to ``ENVIRONMENT:gcp ``.
400400
401401 Replace the ``<percent-encoded audience>`` placeholder in the
402402 following code with the percent-encoded value of the audience server
@@ -423,7 +423,7 @@ see the corresponding syntax.
423423
424424 .. code-block:: java
425425
426- MongoCredential credential = MongoCredential.createOidcCredential()
426+ MongoCredential credential = MongoCredential.createOidcCredential(null )
427427 .withMechanismProperty("ENVIRONMENT", "gcp")
428428 .withMechanismProperty("TOKEN_RESOURCE", "<audience>");
429429
@@ -469,7 +469,7 @@ see the corresponding syntax.
469469
470470 .. code-block:: java
471471
472- MongoCredential credential = MongoCredential.createOidcCredential()
472+ MongoCredential credential = MongoCredential.createOidcCredential(null )
473473 .withMechanismProperty("ENVIRONMENT", "k8s");
474474
475475 MongoClient mongoClient = MongoClients.create(
0 commit comments