Skip to content

Commit

Permalink
Authentication refactor (mongodb#284) (mongodb#325)
Browse files Browse the repository at this point in the history
* Authentication refactor (mongodb#284)

Co-authored-by: Rea Rustagi <85902999+rustagir@users.noreply.github.com>
(cherry picked from commit bf67d80)
(cherry picked from commit 3999260)
  • Loading branch information
mongoKart committed Nov 27, 2024
1 parent 358a035 commit a162754
Show file tree
Hide file tree
Showing 14 changed files with 1,126 additions and 859 deletions.
3 changes: 3 additions & 0 deletions config/redirects
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ raw: ${prefix}/master -> ${base}/upcoming/
[*-master]: ${prefix}/${version}/fundamentals/data-formats/polymorphism/ -> ${base}/${version}/fundamentals/serialization/polymorphic-objects/
[*-master]: ${prefix}/${version}/fundamentals/data-formats/bson/ -> ${base}/${version}/fundamentals/bson/
[*-master]: ${prefix}/${version}/fundamentals/class-mapping/ -> ${base}/${version}/fundamentals/serialization/class-mapping/
[*-v2.30]: ${prefix}/${version}/upgrade/v2/ -> ${base}/${version}/upgrade/
[*-v2.30]: ${prefix}/${version}/upgrade/v3/ -> ${base}/${version}/upgrade/
[v3.0-*]: ${prefix}/${version}/fundamentals/enterprise-authentication/ -> ${base}/${version}/fundamentals/authentication/
4 changes: 1 addition & 3 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ toc_landing_pages = [
"/usage-examples",
"/fundamentals",
"/fundamentals/serialization",
<<<<<<< HEAD
=======
"/fundamentals/authentication",
"/upgrade",
"/fundamentals/database-collection"
>>>>>>> e4bcadc (DOCSP-45004: Run Command (#320))
]

intersphinx = [
Expand Down
23 changes: 1 addition & 22 deletions source/connection-troubleshooting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,28 +182,7 @@ the same machine doesn't require any authorization to connect.
X.509 Credential Error
~~~~~~~~~~~~~~~~~~~~~~

If you are using Windows as your operating system, you might encounter an issue in which the
{+driver-short+} is unable to locate an ``X.509`` authentication certificate in memory.
This error is raised with the following error message:

.. code-block:: none
:copyable: false

No credentials are available in the security package

The following section describes a method that may help resolve the issue.

Create and Store the Certificate On-Disk
----------------------------------------

Use the following code to generate any ``X.509`` certificates required by your application:

.. code-block:: csharp

using (X509Certificate2 certWithKey = certOnly.CopyWithPrivateKey(key))
{
return new X509Certificate2(certWithKey.Export(X509ContentType.Pkcs12));
}
.. include:: /includes/troubleshooting/x509.rst

Error Sending Message
~~~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 1 addition & 3 deletions source/fundamentals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Fundamentals
Atlas Search </fundamentals/atlas-search>
Stable API </fundamentals/stable-api>
Authentication </fundamentals/authentication>
Enterprise Authentication </fundamentals/enterprise-authentication>
Aggregation </fundamentals/aggregation>
LINQ </fundamentals/linq>
BSON Operations </fundamentals/bson>
Expand All @@ -39,7 +38,6 @@ Fundamentals
- :ref:`csharp-atlas-search`
- :ref:`csharp-stable-api`
- :ref:`csharp-authentication-mechanisms`
- :ref:`csharp-enterprise-authentication-mechanisms`
- :ref:`csharp-aggregation`
- :ref:`csharp-linq`
- :ref:`csharp-bson`
Expand All @@ -51,4 +49,4 @@ Fundamentals
- :ref:`csharp-time-series`
- :ref:`Encrypt Fields <csharp-fle>`
- :ref:`csharp-geo`
- :ref:`csharp-read-write-config`
- :ref:`csharp-read-write-config`
Loading

0 comments on commit a162754

Please sign in to comment.