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
22--------------
33
44Two 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
89Basic 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)
You can’t perform that action at this time.
0 commit comments