IMAP Authentication Strategy for Passport.js
Clone or download
Latest commit 60e3b4f Sep 13, 2013
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/passport-imap Added success callback Sep 13, 2013
node_modules/pkginfo Added Passport IMAP module files Sep 8, 2013
.gitignore Initial commit Aug 22, 2013
LICENSE Added Passport IMAP module files Sep 8, 2013 Updated Sep 8, 2013
package.json Updating version Sep 8, 2013


Passport strategy for authenticating with imap

This module serves the purpose of authenticating a user using email login credentials in Node.js/Sails.js application. This can be unobtrusively integrated with any Node.js application using passport for authentication


$ npm install passport-imap


Configure Strategy

The imap authentication strategy authenticates users using imap login information. The strategy requires some options like imap host name, port and tls

passport.use(new ImapStrategy({host: '', port : 993, tls : true}));

Authenticate Requests

Use passport.authenticate(), specifying the 'imap' strategy, to authenticate requests.

For example, as route middleware in an Express application:'/login', 
  passport.authenticate('imap', { failureRedirect: '/login' }),
  function(req, res) {


Copyright (c) NetTantra Technologies