Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
passport-kerberos
Advanced tools
Kerberos 5 username and password authentication strategy for Passport.
Kerberos authentication strategy for Passport.
Passport strategy for authenticating with a username and password against a kerberos server.
This module lets you authenticate using a username and password in your Node.js applications. By plugging into Passport, kerberos authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.
sudo apt-get install libkrb5-dev
$ npm install passport-kerberos
The kerberos authentication strategy authenticates users using a username and
password. The strategy requires a verify
callback, which accepts these
credentials and calls done
providing a user.
// The realm used for kerberos authentication.
var REALM="EXAMPLE.COM"
passport.use(new KerberosStrategy(
function(username, done) {
User.findOne({ username: username }, function (err, user) {
if (err) { return done(err); }
if (!user) { return done(null, false); }
return done(null, user, REALM);
});
}
));
Use passport.authenticate()
, specifying the 'kerberos'
strategy, to
authenticate requests.
For example, as route middleware in an Express application:
app.post('/login',
passport.authenticate('kerberos', { failureRedirect: '/login' }),
function(req, res) {
res.redirect('/');
});
(To be added.)
The MIT License passport-kerberos - Copyright (c) 2013 Joshua Heiks Passport-Local - Copyright (c) 2011-2013 Jared Hanson <http://jaredhanson.net/>
FAQs
Kerberos 5 username and password authentication strategy for Passport.
We found that passport-kerberos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.