Mongodian authentication

How to use authentication with mongodb through official c # driver? I cannot find any API methods for authentication other than internal members.

+2
source share
1 answer

Authentication credentials must be specified in the connection string using the following connection string format:

mongodb://[username:password@]hostname[:port][/[database][?options]]

See here in the MongoDB C # Tutorial

+3
source

All Articles