Facebook iframe app autorization


Passport strategy for FA app authentication.

$ npm install passport-app

The dummy authentication strategy authenticates or denies all requests based on the 'allow' option passed to it.

passport.use(new AppStrategy(
  function(done) {
    return done(null, {username: 'dummy'});

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

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

(The MIT License)