MongoDB Authentication plugin for Verdaccio. Current stable version is 1.2.0. This plugin enables Verdaccio to use MongoDB or compatible databases (e.g., AWS DocumentDB) as the user store, supporting bcrypt password encryption, custom field mappings, group-based access control, and optional activity counting. It is an alternative to Verdaccio's built-in htpasswd storage and other database-backed plugins like verdaccio-sqlite. The plugin has been in maintenance mode with infrequent updates; its dependency chain includes MongoDB driver interfaces.
npm install verdaccio-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Verdaccio to use MongoDB for authentication and package access control with custom field mappings and rights.
Consider upgrading Node.js or using a maintained Node.js LTS version.
Ensure your configuration uses milliseconds (e.g., 300000 for 5 minutes).
Always set encryption to 'bcrypt' unless you understand the security implications.
Set adminGroup explicitly to avoid relying on defaults.
If you need activity counting, ensure 'collections.packages' is defined.
Consider forking or using an alternative plugin like verdaccio-sqlite or verdaccio-ldap.
Check the 'uri' field in config.yaml; ensure username/password are correct and URL-encoded if special characters.
Add 'uri' under 'auth.mongodb' in config.yaml.
Install bcrypt globally: npm install -g bcrypt
Verify the user exists in MongoDB collection and the password is hashed correctly (bcrypt).
Add 'fields.username' to config.yaml or remove the 'fields' section to use defaults.