emqx / mongodb-erlang

MongoDB driver for Erlang
Apache License 2.0
9 stars 14 forks source link

How to pass an Authentication Database option? #44

Open Vkutovoy92 opened 3 months ago

Vkutovoy92 commented 3 months ago

Hi! I tried to connect and got <<"code">> => 18,<<"codeName">> => <<"AuthenticationFailed">>,<<"errmsg">> => <<"Authentication failed.">> We checked logs on server and saw the error Could not find user \"afsts_user\" for db \"admin\"" But I no see the option to change default Authentication Mechanism? Does it exist in the driver?

Erlang@25 {mongodb, {git, "https://github.com/emqx/mongodb-erlang.git", {tag, "v3.0.23"}}},