New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

passport-app

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-app

Facebook iframe app autorization

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
14
27.27%
Maintainers
1
Weekly downloads
 
Created
Source

Passport-App

Passport strategy for FA app authentication.

Installation

$ npm install passport-app

Usage

Configure Strategy

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'});
  }
));

Authenticate Requests

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

For example, as route middleware in an Express application:

app.post('/login', 
  passport.authenticate('app', { failureRedirect: '/login' }),
  function(req, res) {
    res.redirect('/');
  });

License

(The MIT License)

Keywords

passport

FAQs

Package last updated on 09 Apr 2012

Did you know?

Socket

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.

Install

Related posts