If the authentication database is different from the database in which to execute the import / export, then Mongonaut will always fail to connect. You either provide the credentials, in which case it fails outright, or you don't provide credentials, in which case it seems like it succeeds, but success output is a MongoDB message saying you don't have authorisation to execute the command.
Attempting to set the authenticationDatabase option in any way will cause Spawngo to fail:
.../node_modules/spawngo/index.js:28
this.config[args[0]] = args[1]
^
TypeError: Can't add property authenticationDatabase, object is not extensible
If the authentication database is different from the database in which to execute the import / export, then Mongonaut will always fail to connect. You either provide the credentials, in which case it fails outright, or you don't provide credentials, in which case it seems like it succeeds, but success output is a MongoDB message saying you don't have authorisation to execute the command.
Attempting to set the
authenticationDatabaseoption in any way will cause Spawngo to fail: