Python pymongo Authentication Password

Hello I have noticed a weird behaviour in my Python programm.

this is my Code fragment that makes me worry:

client = pymongo.MongoClient("mongodb+srv://LOGIN:WRONGPASSWORD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!@sandbox.g4tdz.mongodb.net/myFirstDatabase?retryWrites=true&w=majority")

Basically with the right login name i can get access to the dabatabase with the wrong password. Literally any non-zero String works.

I dont understand how or why

Hi @Bogdan_Narusavicius

All you have there is a connection. If you try an operation you’ll get an Exception if authentication is enabled(which it is on Atlas).