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
304
304
{+driver-short+}'s built-in Kubernetes support.
305
305
306
306
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.
308
309
309
310
.. tabs::
310
311
311
312
.. tab:: MongoClient
312
313
:tabid: mongoclient
313
314
314
- The following example shows how to configure your ``MongoClient`` to authenticate
315
- to MongoDB by using Kubernetes:
316
-
317
315
.. literalinclude:: /includes/authentication/kubernetes-mongoclient.py
318
316
:language: python
319
317
:copyable: true
@@ -323,9 +321,6 @@ You can configure OIDC for Kubernetes in two ways: by passing arguments to the
323
321
.. tab:: Connection String
324
322
:tabid: connectionstring
325
323
326
- The following example shows how to configure your connection string to authenticate
327
- to MongoDB by using Kubernetes:
328
-
329
324
.. literalinclude:: /includes/authentication/kubernetes-connection-string.py
330
325
:language: python
331
326
:copyable: true
You can’t perform that action at this time.
0 commit comments