File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ Authentication
2
2
--------------
3
3
4
4
Two HTTP authentication methods are supported out of the box:
5
- - basic username and password authentication
6
- - JSON Web Tokens (JWT)
5
+
6
+ 1. Basic username and password authentication
7
+ 2. JSON Web Tokens (JWT)
7
8
8
9
Basic Authentication
9
10
====================
@@ -27,10 +28,10 @@ This is the default authentication method.
27
28
28
29
# Connect to "test" database as root user.
29
30
db = await client.db(
30
- " test" , # database name
31
+ " test" , # database name
31
32
auth_method = " basic" , # use basic authentication (default)
32
- auth = auth, # authentication details
33
- verify = True , # verify the connection (optional)
33
+ auth = auth, # authentication details
34
+ verify = True , # verify the connection (optional)
34
35
)
35
36
36
37
JSON Web Tokens (JWT)
You can’t perform that action at this time.
0 commit comments