Skip to content

Commit

Permalink
edits and remove monospace from titles
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseymoore committed Dec 13, 2024
1 parent f63841e commit 8674488
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/fundamentals/authentication/enterprise-mechanisms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ In this guide, you can find sample code for connection to MongoDB with each
authentication mechanism available in the MongoDB Enterprise Edition:
``Kerberos (GSSAPI/SSPI)``, ``LDAP (PLAIN)``, and ``MONGODB-OIDC``.

``Kerberos (GSSAPI/SSPI)``
--------------------------
Kerberos (GSSAPI/SSPI)
----------------------

.. note::
The Node.js driver supports Kerberos on UNIX using the MIT Kerberos library
Expand Down Expand Up @@ -102,8 +102,8 @@ The following code sample authenticates to Kerberos for UNIX using ``GSSAPI``.
`GSSAPI RFC-4652 <https://tools.ietf.org/html/rfc4752>`_, the SASL
mechanism.

``LDAP (PLAIN)``
----------------
LDAP (PLAIN)
------------

The ``PLAIN`` authentication mechanism uses your username and password to
authenticate to a Lightweight Directory Access Protocol (LDAP) server.
Expand Down Expand Up @@ -241,11 +241,12 @@ options in your connection string:
The following code example shows how to set the preceding connection options:

.. code-block:: js
:emphasize-lines: 3-4

const { MongoClient } = require("mongodb");

const uri = "mongodb://<hostname>:<port>/?authMechanism=MONGODB-OIDC" +
"&authMechanismProperties=ENVIRONMENT:k8s";
const uri = "mongodb://<hostname>:<port>/?authMechanism=MONGODB-OIDC"
+ "&authMechanismProperties=ENVIRONMENT:k8s";
const client = new MongoClient(uri);

Custom Callback
Expand Down

0 comments on commit 8674488

Please sign in to comment.