Skip to content

Commit

Permalink
Authentication refactor (mongodb#284)
Browse files Browse the repository at this point in the history
Co-authored-by: Rea Rustagi <85902999+rustagir@users.noreply.github.com>
  • Loading branch information
mongoKart and rustagir authored Nov 27, 2024
1 parent 606a34c commit bf67d80
Show file tree
Hide file tree
Showing 14 changed files with 1,124 additions and 863 deletions.
3 changes: 2 additions & 1 deletion config/redirects
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ raw: ${prefix}/master -> ${base}/upcoming/
[*-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/
[*-v2.30]: ${prefix}/${version}/upgrade/v3/ -> ${base}/${version}/upgrade/
[v3.0-*]: ${prefix}/${version}/fundamentals/enterprise-authentication/ -> ${base}/${version}/fundamentals/authentication/
1 change: 1 addition & 0 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ toc_landing_pages = [
"/usage-examples",
"/fundamentals",
"/fundamentals/serialization",
"/fundamentals/authentication",
"/upgrade",
"/fundamentals/database-collection"
]
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
2 changes: 0 additions & 2 deletions source/fundamentals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Fundamentals
/fundamentals/atlas-search
/fundamentals/stable-api
/fundamentals/authentication
/fundamentals/enterprise-authentication
/fundamentals/aggregation
/fundamentals/linq
/fundamentals/bson
Expand Down Expand Up @@ -62,7 +61,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 Down
Loading

0 comments on commit bf67d80

Please sign in to comment.