1
+ .. _golang-authentication-mechanisms:
2
+
1
3
=========================
2
4
Authentication Mechanisms
3
5
=========================
@@ -19,18 +21,18 @@ authentication mechanisms to confirm an identity and establish trust to
19
21
ensure security in the driver and server before connecting.
20
22
21
23
If you want to establish a connection to your MongoDB cluster without an
22
- authentication mechanism, see our :doc:`Connection Guide </fundamentals/ connection> `.
24
+ authentication mechanism, see :ref:`golang- connection-guide `.
23
25
24
26
Supported Mechanisms
25
27
--------------------
26
28
27
29
The Go driver supports the following authentication mechanisms:
28
30
29
- * :ref:`SCRAM-SHA-256 <go_sha_256 >`
30
- * :ref:`SCRAM-SHA-1 <go_sha_1 >`
31
- * :ref:`MONGODB-CR <go_mongodb_cr >`
32
- * :ref:`MongoDB-AWS <go_mongodb_aws >`
33
- * :ref:`X.509 <go_x509 >`
31
+ * :ref:`SCRAM-SHA-256 <golang_sha_256 >`
32
+ * :ref:`SCRAM-SHA-1 <golang-sha-1 >`
33
+ * :ref:`MONGODB-CR <golang-mongodb-cr >`
34
+ * :ref:`MongoDB-AWS <golang-mongodb-aws >`
35
+ * :ref:`X.509 <golang-x509 >`
34
36
35
37
The Go Driver establishes a connection with an authentication mechanism
36
38
through a `Client <{+api+}/mongo#Client>`__
@@ -58,7 +60,7 @@ Each authentication mechanism contains the following placeholders:
58
60
authentication data. If you omit this option, the driver uses the
59
61
default value ``admin``.
60
62
61
- .. _default -auth-mechanism:
63
+ .. _golang-default -auth-mechanism:
62
64
63
65
Default
64
66
~~~~~~~
@@ -102,7 +104,7 @@ For more information on the challenge-response (CR) and salted
102
104
challenge-response authentication mechanisms (SCRAM) that MongoDB supports,
103
105
see the :manual:`SCRAM </core/security-scram/>` section of the server manual.
104
106
105
- .. _go_sha_256 :
107
+ .. _golang_sha_256 :
106
108
107
109
``SCRAM-SHA-256``
108
110
~~~~~~~~~~~~~~~~~
@@ -133,8 +135,8 @@ To specify the ``SCRAM-SHA-256`` authentication mechanism, assign the
133
135
134
136
client, err := mongo.Connect(context.TODO(), clientOpts)
135
137
136
- .. _scram -sha-1-auth-mechanism:
137
- .. _go_sha_1 :
138
+ .. _golang-scram -sha-1-auth-mechanism:
139
+ .. _golang-sha-1 :
138
140
139
141
``SCRAM-SHA-1``
140
142
~~~~~~~~~~~~~~~
@@ -165,7 +167,7 @@ To specify the ``SCRAM-SHA-1`` authentication mechanism, assign the
165
167
166
168
client, err := mongo.Connect(context.TODO(), clientOpts)
167
169
168
- .. _go_mongodb_cr :
170
+ .. _golang-mongodb-cr :
169
171
170
172
``MONGODB-CR``
171
173
~~~~~~~~~~~~~~
@@ -178,7 +180,7 @@ username and password to authenticate your user.
178
180
This authentication mechanism was deprecated starting in MongoDB 3.6
179
181
and is no longer supported as of MongoDB 4.0.
180
182
181
- .. _go_mongodb_aws :
183
+ .. _golang-mongodb-aws :
182
184
183
185
``MONGODB-AWS``
184
186
~~~~~~~~~~~~~~~
@@ -239,7 +241,7 @@ option the value of your ``sessionToken``:
239
241
assumeRoleClient, err := mongo.Connect(context.TODO(),
240
242
options.Client().SetAuth(assumeRoleCredential))
241
243
242
- .. _go_x509 :
244
+ .. _golang-x509 :
243
245
244
246
``X.509``
245
247
~~~~~~~~~
@@ -277,5 +279,5 @@ following:
277
279
278
280
..
279
281
For more information on configuring your application to use
280
- certificates as well as TLS/SSL options, see our
281
- :doc:`TLS/SSL guide </fundamentals/connection/ tls> `.
282
+ certificates as well as TLS/SSL options, see
283
+ :ref:`golang- tls-ssl-guide `.
0 commit comments