Skip to content

Commit de8c702

Browse files
committed
Minor fixes
1 parent c03acae commit de8c702

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/authentication.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ Authentication
22
--------------
33

44
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)
78

89
Basic Authentication
910
====================
@@ -27,10 +28,10 @@ This is the default authentication method.
2728
2829
# Connect to "test" database as root user.
2930
db = await client.db(
30-
"test", # database name
31+
"test", # database name
3132
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)
3435
)
3536
3637
JSON Web Tokens (JWT)

0 commit comments

Comments
 (0)