node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

passport-beatport authentication strategy for Passport.

Passport strategy for authenticating with Beatport using the OAuth 1.0 API.

$ npm install passport-beatport
var BeatportStartegy = require('passport-beatport').Strategy;

passport.use(new BeatportStartegy({
    consumerKey: EXAMPLE_CONSUMER_KEY,
    consumerSecret: EXAMPLE_CONSUMER_SECRET, 
    callbackURL: ''
  function(token, tokenSecret, profile, done) {
    User.findOrCreate(..., function (err, user) {
      done(err, user);

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

For example, as route middleware in an Express application:


  passport.authenticate('beatport', { failureRedirect: '/login' }),
  function(req, res) {
    // Successful authentication, redirect home.

The MIT License

Copyright (c) 2013 Jakub Jelen