It is possible to authenticate through Scram-Sha-1 method.
It is important to authenticate to MongoDB databases as they contain critical user-related data.
- Edit the following file:
As antidot user
/usr/local/afs7/Fluid-Topics/conf/-/mongo.conf.json
- Add the following lines to the file:
As antidot user
{
"hosts": [
...
],
"authentication": {
"scramSha1": {
"username": "$USER_NAME",
"password": "$PASSWORD",
"database": "$DATABASE"
}
}
}
If $PASSWORD contains special characters, then it must be encoded in accordance with the following nomenclature: https://www.w3schools.com/tags/ref_urlencode.asp
For more information on the Mongo authentication mechanism, consult the official documentation.