Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
clever-auth
Advanced tools
This CleverStack Module provides users & authentication for the node-seed, it works with either the Object Relational Mapper (clever-orm) AND the Object Document Mapper (clever-odm) Module's.Out of the box you can use this module with MongoDB, MySQL, MariaDB, PostgreSQL or SQLite! And because this module uses Redis for session storage it's also scalable.
See cleverstack.io for more detailed information on the Node seed or visit the Getting Started Guide
You can use this module with either the clever-orm (ORM) or clever-odm (ODM) modules, simply add the following config to your /config/local.json (or into your global.json for all environments, or in whatever environment you are using).
grunt prompt:cleverAuthConfig
can be used to generate your config for any environment you wantgrunt prompt:cleverAuthSeed
can be used to add/edit users inside your seed data// For ODM
"clever-auth": {
"driver": "ODM"
}
// For ORM
"clever-auth": {
"driver": "ORM"
}
// Using In-Memory Session Storage
"clever-auth": {
"sessionStoreDriver": "in-memory"
}
// Using Redis for Session Storage
"clever-auth": {
"sessionStoreDriver": "redis",
"redis": {
"host": "localhost",
"port": "6379",
"prefix": "",
"key": ""
}
}
// Using Memcache for Session Storage
"clever-auth": {
"sessionStoreDriver": "redis",
"memcache": {
"host": "localhost",
"port": "11211",
"prefix": ""
}
}
clever install clever-auth
and follow the promptsclever serve
to start your application.grunt prompt:cleverAuthConfig
and fill in your configuration options.grunt prompt:cleverAuthSeed
and create your default user.grunt db
to rebase and seed the data.grunt server
to start your application.grunt db:rebaseOrm
will rebase your ORM database (delete and completely replace all tables)grunt db:seedOrm
will seed data into your ORM databasegrunt db:orm
will perform both of the above tasksNote: You can just run grunt db
, grunt db:rebase
and grunt db:seed
but if the ODM module is installed it will perform these operations on that DB as well (which might be exactly what your looking for)
username: test@cleverstack.io
password: clever
See our LICENSE
FAQs
CleverStack Authentication Module
The npm package clever-auth receives a total of 49 weekly downloads. As such, clever-auth popularity was classified as not popular.
We found that clever-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.