Closed patmagee closed 9 years ago
Credentials can now be added in one of two ways
once the project is build all Constants and config options are kept in the lib/conf/constants.json file. To add credentials to this file simply change the lines saying:
AUTH_USER:null,
AUTH_PASSWD:null
to
AUTH_USER:<username>,
AUTH_PASSWD:<password>
You can also send the credentials once via the command to start the server:
~$ node webapp.js -A [user]
Using authenticated MongoDB login
USERNAME: [user]
PASSWORD: [insert password]
You will be prompted to provide the appropriate password credentials with this command (which will be hidden and stored in memory, never saved).
At the moment, the database is connecting strictly to a local instance of mongoDB, which may not always be the case, additionally in order to ensure for increased security for patient data, there must be a method included for passing using credentials to the database.