
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
passport-ubuntu
Advanced tools
Passport strategy for authenticating with Ubuntu using OpenID.
$ npm install --save passport-ubuntu
passport.use(new UbuntuStrategy({
returnURL: 'https://example.com/auth/ubuntu/return',
realm: 'https://example.com',
stateless: true,
},
function(identifier, profile, done) {
User.findOne({identifier: identifier}, function(err, user) {
if (err) {
done(err);
}
else {
done(null, user);
}
});
}));
app.post('/auth/ubuntu', passport.authenticate('ubuntu'));
app.get('/auth/ubuntu/return', passport.authenticate('ubuntu', {
successRedirect: '/auth/me',
failureRedirect: '/auth/login'
}));
app.post('/auth/ubuntu/return', passport.authenticate('ubuntu', {
successRedirect: '/auth/me',
failureRedirect: '/auth/login'
}));
app.get('/auth/login', function(req, res) {
res.send('<form action="/auth/ubuntu" method="post"><div><input type="submit" value="Sign In"/></div></form>');
});
app.get('/auth/me', function(req, res) {
res.send(req.user);
});
app.get('/auth/logout', function(req, res){
req.logout();
res.redirect('/');
});
Copyright (C) 2017 Brian Douglass
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
FAQs
Ubuntu OpenID authentication strategy for Passport
We found that passport-ubuntu 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.