|
358 | 358 | client = pymongo.MongoClient(uri) |
359 | 359 |
|
360 | 360 | To learn more about authenticating with Kerberos, see |
361 | | -:ref:`pymongo-kerberos` in the Authentication guide. |
| 361 | +:ref:`pymongo-kerberos` in the Enterprise Authentication guide. |
362 | 362 |
|
363 | 363 | Windows |
364 | 364 | ~~~~~~~ |
@@ -393,7 +393,7 @@ Windows |
393 | 393 | client = pymongo.MongoClient(uri) |
394 | 394 |
|
395 | 395 | To learn more about authenticating with Kerberos, see |
396 | | -:ref:`pymongo-kerberos` in the Authentication guide. |
| 396 | +:ref:`pymongo-kerberos` in the Enterprise Authentication guide. |
397 | 397 |
|
398 | 398 | PLAIN SASL |
399 | 399 | ---------- |
@@ -426,4 +426,95 @@ PLAIN SASL |
426 | 426 | client = pymongo.MongoClient(uri) |
427 | 427 |
|
428 | 428 | To learn more about authenticating with PLAIN SASL, see |
429 | | -:ref:`pymongo-sasl` in the Authentication guide. |
| 429 | +:ref:`pymongo-sasl` in the Enterprise Authentication guide. |
| 430 | + |
| 431 | +MONGODB-OIDC |
| 432 | +------------ |
| 433 | + |
| 434 | +Azure IMDS |
| 435 | +~~~~~~~~~~ |
| 436 | + |
| 437 | +.. tabs:: |
| 438 | + |
| 439 | + .. tab:: MongoClient |
| 440 | + :tabid: mongoclient |
| 441 | + |
| 442 | + .. literalinclude:: /includes/authentication/azure-imds-mongoclient.py |
| 443 | + :language: python |
| 444 | + :copyable: true |
| 445 | + |
| 446 | + .. tab:: Connection String |
| 447 | + :tabid: connectionstring |
| 448 | + |
| 449 | + .. literalinclude:: /includes/authentication/azure-imds-connection-string.py |
| 450 | + :language: python |
| 451 | + :copyable: true |
| 452 | + |
| 453 | +To learn more about authenticating with OIDC, see |
| 454 | +:ref:`pymongo-mongodb-oidc-azure-imds` in the Authentication guide. |
| 455 | + |
| 456 | +GCP IMDS |
| 457 | +~~~~~~~~ |
| 458 | + |
| 459 | +.. tabs:: |
| 460 | + |
| 461 | + .. tab:: MongoClient |
| 462 | + :tabid: mongoclient |
| 463 | + |
| 464 | + .. literalinclude:: /includes/authentication/gcp-imds-mongoclient.py |
| 465 | + :language: python |
| 466 | + :copyable: true |
| 467 | + |
| 468 | + .. tab:: Connection String |
| 469 | + :tabid: connectionstring |
| 470 | + |
| 471 | + .. literalinclude:: /includes/authentication/gcp-imds-connection-string.py |
| 472 | + :language: python |
| 473 | + :copyable: true |
| 474 | + |
| 475 | +To learn more about authenticating with OIDC, see |
| 476 | +:ref:`pymongo-mongodb-oidc-gcp-imds` in the Authentication guide. |
| 477 | + |
| 478 | +Other Azure Environments |
| 479 | +~~~~~~~~~~~~~~~~~~~~~~~~ |
| 480 | + |
| 481 | +.. tabs:: |
| 482 | + |
| 483 | + .. tab:: MongoClient |
| 484 | + :tabid: mongoclient |
| 485 | + |
| 486 | + .. literalinclude:: /includes/authentication/azure-envs-mongoclient.py |
| 487 | + :language: python |
| 488 | + :copyable: true |
| 489 | + |
| 490 | + .. tab:: Connection String |
| 491 | + :tabid: connectionstring |
| 492 | + |
| 493 | + .. literalinclude:: /includes/authentication/azure-envs-connection-string.py |
| 494 | + :language: python |
| 495 | + :copyable: true |
| 496 | + |
| 497 | +To learn more about authenticating with OIDC, see |
| 498 | +:ref:`pymongo-mongodb-oidc-azure-envs` in the Authentication guide. |
| 499 | + |
| 500 | +GCP GKE |
| 501 | +~~~~~~~ |
| 502 | + |
| 503 | +.. tabs:: |
| 504 | + |
| 505 | + .. tab:: MongoClient |
| 506 | + :tabid: mongoclient |
| 507 | + |
| 508 | + .. literalinclude:: /includes/authentication/gcp-gke-mongoclient.py |
| 509 | + :language: python |
| 510 | + :copyable: true |
| 511 | + |
| 512 | + .. tab:: Connection String |
| 513 | + :tabid: connectionstring |
| 514 | + |
| 515 | + .. literalinclude:: /includes/authentication/gcp-gke-connection-string.py |
| 516 | + :language: python |
| 517 | + :copyable: true |
| 518 | + |
| 519 | +To learn more about authenticating with OIDC, see |
| 520 | +:ref:`pymongo-mongodb-oidc-gcp-gke` in the Authentication guide. |
0 commit comments