Skip to content

Commit 49906a0

Browse files
committed
edits
1 parent 8429a70 commit 49906a0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

source/security/enterprise-auth.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ see the corresponding syntax.
326326

327327
.. tab:: Connection String
328328
:tabid: mongodb-azure-imds-connection-string
329+
330+
To specify Kubernetes OIDC as the authentication mechanism, set the following
331+
options in your connection string:
332+
333+
- ``authMechanism``: Set to ``MONGODB-OIDC``.
334+
- ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s``.
329335

330336
Replace the ``<percent-encoded audience>`` placeholder in the
331337
following code with the percent-encoded value of the audience server
@@ -385,6 +391,12 @@ see the corresponding syntax.
385391

386392
.. tab:: Connection String
387393
:tabid: mongodb-gcp-imds-connection-string
394+
395+
To specify Kubernetes OIDC as the authentication mechanism, set the following
396+
options in your connection string:
397+
398+
- ``authMechanism``: Set to ``MONGODB-OIDC``.
399+
- ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s``.
388400

389401
Replace the ``<percent-encoded audience>`` placeholder in the
390402
following code with the percent-encoded value of the audience server
@@ -436,6 +448,12 @@ see the corresponding syntax.
436448
.. tab:: Connection String
437449
:tabid: mongodb-kubernetes-connection-string
438450

451+
To specify Kubernetes OIDC as the authentication mechanism, set the following
452+
options in your connection string:
453+
454+
- ``authMechanism``: Set to ``MONGODB-OIDC``.
455+
- ``authMechanismProperties``: Set to ``ENVIRONMENT:k8s``.
456+
439457
.. code-block:: java
440458

441459
MongoClient mongoClient = MongoClients.create(
@@ -446,6 +464,9 @@ see the corresponding syntax.
446464
.. tab:: MongoCredential
447465
:tabid: mongodb-kubernetes-mongo-credential
448466

467+
Replace the ``hostname`` and ``port`` with the network address and port
468+
number of your MongoDB deployment.
469+
449470
.. code-block:: java
450471

451472
MongoCredential credential = MongoCredential.createOidcCredential()

0 commit comments

Comments
 (0)