Setting up authorization in Linux
Connect to the MongoDB shell:
Switch to the admin database:
Create a user by changing the Login (user) and Password (pwd) of the user:
In MongoDB, you cannot use the characters .,@,$,:,%,",',/,\,| in usernames and passwords, as this can cause issues with connection of the application server to MongoDB
You need to edit the MongoDB config file to enable authorisation, run the following commands in the shell to get the location:
Edit the resulting configuration file by adding a line:
Save the changes and restart the MongoDB service:
To test, connect to the shell with authorisation:
You need to edit the [mongo] section of Passwork configuration file at /<passwork>/conf/keys/config.ini and specify the login and password of the created user:
Save the changes and refresh the Passwork page to test the connection with MongoDB authorisation.