nettantra / passport-imap Goto Github PK
View Code? Open in Web Editor NEWIMAP Authentication Strategy for Passport.js
License: MIT License
IMAP Authentication Strategy for Passport.js
License: MIT License
» npm install passport-imap
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/passport-imap
npm http 404 https://registry.npmjs.org/passport-imap
npm ERR! 404 'passport-imap' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.14.0-gentoo
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "passport-imap"
npm ERR! cwd /home/none/dev/proto2.dev
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/none/dev/proto2.dev/npm-debug.log
npm ERR! not ok code 0
Hello,
sorry for such a stupid question, but I'm new to passport (and node.js too). I'm trying to implement an imap authentication strategy, I believe I'm doing a successful login but I'm not redirected to my app, the warning I see is "Success fallback is required to generate the user".
How should I provide my success callback? My login function is now:
app.post('/login',
passport.authenticate('imap', { failureRedirect: '/login' }),
function(req, res) {
res.redirect('/app');
});
Thanks for any help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.