Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@nymdev/express-nymag-user
Advanced tools
Handles in-house user identification as middleware for express via a cookie
Volunteering user information for internal use. This is not authentication; It just looks for a plain-text, unsigned cookie that contains a username and LDAP groups.
All authorization logic is encapsulated in the implementation of isProtected.
NOTE: Use with care. It's the same as user's volunteering their own username, and is not auth. Temporary until OAuth.
If redirect_to does not retun valid url (e.g. if host is not defined) and the request should be blocked, the middleware protects via 403.
const express = require('express'),
app = express(),
expressNYMagUser = require('@nymdev/express-nymag-user'),
authServer = 'http://some_auth_server/login?redirect_to=';
app.use(expressNYMagUser({
redirectTo: function (originalUrl) {
return authServer + encodeURIComponent(originalUrl);
},
isProtected: function (req) {
return !!req.query.edit;
}
}));
npm install --save @nymdev/express-nymag-auth
FAQs
Handles in-house user identification as middleware for express via a cookie
The npm package @nymdev/express-nymag-user receives a total of 1 weekly downloads. As such, @nymdev/express-nymag-user popularity was classified as not popular.
We found that @nymdev/express-nymag-user demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.