
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
life_star-auth
Advanced tools
Authentication and authorization for Lively Web servers.
LivelyKernel/core/lively/localconfig.js
lively.Config.userAuthEnabled = true;
lively.Config.usersFile = "user-db.json";
lively.Config.authRequireLogin = false;
{
"users": [{"name": "test-user", "email": "", "password": "xxx"}],
"accessRules": [
"function(userDB, user, req, callback) { if (user && user.name === 'test-user') callback(null, 'allow'); else callback(null, req.method === 'PUT' ? 'deny' : 'allow'); }"
]
}
user-db.json
can be modified while the server is running, it will be
automatically updated.
accessRules
can be functions returning 'allow'
, 'deny'
or a falsy value
(undecided) via the callback. If request is denied a 403 response is send.
user
objects can have the fields:
name
: String
email
: String
password
: String
(optional, will be replaced with a password hash once the server starts! No passwords are stored.)User objects are automatically created when a user registers but can be added and modified by changing user-db.json
.
FAQs
Authentication and authorization for Lively Web servers
The npm package life_star-auth receives a total of 1 weekly downloads. As such, life_star-auth popularity was classified as not popular.
We found that life_star-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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.