Closed FDR123 closed 6 years ago
I think it's expected to connect to MongoDB using no authentication if there is no password specified.
However, is this solution not very consistent. If you don't use authentication, then you don't want to specify an user either.
So I think the best solution to this is to put user and password into another nested property.
twasi.yml with authentication will look like this:
database:
type: MongoDB
hostname: localhost
port: 27017
database: twasidb
authentication:
user: twasi
password: mySecurePassword
And without like this:
database:
type: MongoDB
hostname: localhost
port: 27017
database: twasidb
authentication: none
NPE:
example twasi.yml