MongoDB calls fail when authentication is enabled

Description

When using authenticated access to MongoDB, database calls fail due to authentication errors. The existing code assumes that user credentials are in the *sitewhere * database, which for most users is not the case. Add ability to specify authentication database when using credentials for MongoDB.

Environment

None

Assignee

DerekA

Reporter

DerekA

Labels

None

Components

Fix versions

Priority

Major
Configure