File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
source/security/authentication Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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
306306You 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
You can’t perform that action at this time.
0 commit comments