Skip to content

Commit 6998c0e

Browse files
committed
Fix
1 parent f877719 commit 6998c0e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

source/security/authentication/oidc.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,16 +304,14 @@ If your application runs on a Kubernetes cluster, you can authenticate to MongoD
304304
{+driver-short+}'s built-in Kubernetes support.
305305

306306
You can configure OIDC for Kubernetes in two ways: by passing arguments to the
307-
``MongoClient`` constructor or through parameters in your connection string.
307+
``MongoClient`` constructor or through parameters in your connection string. Select from
308+
the following tabs to see how to enable Kubernetes authentication for your application.
308309

309310
.. tabs::
310311

311312
.. tab:: MongoClient
312313
:tabid: mongoclient
313314

314-
The following example shows how to configure your ``MongoClient`` to authenticate
315-
to MongoDB by using Kubernetes:
316-
317315
.. literalinclude:: /includes/authentication/kubernetes-mongoclient.py
318316
:language: python
319317
:copyable: true
@@ -323,9 +321,6 @@ You can configure OIDC for Kubernetes in two ways: by passing arguments to the
323321
.. tab:: Connection String
324322
:tabid: connectionstring
325323

326-
The following example shows how to configure your connection string to authenticate
327-
to MongoDB by using Kubernetes:
328-
329324
.. literalinclude:: /includes/authentication/kubernetes-connection-string.py
330325
:language: python
331326
:copyable: true

0 commit comments

Comments
 (0)