{"_id":"passport-smugmug","_rev":"9-8237918dc0b977db0e5adc999d08c3a3","name":"passport-smugmug","description":"SmugMug authentication strategy for Passport.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"passport-smugmug","version":"0.1.0","description":"SmugMug authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-smugmug.git"},"main":"./lib/passport-smugmug","dependencies":{"passport-oauth":">= 0.1.0"},"engines":{"node":">= 0.4.0"},"keywords":["passport","smugmug","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-smugmug@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"a64ac177778982972a16e864037dabf0d54b298e","tarball":"https://registry.npmjs.org/passport-smugmug/-/passport-smugmug-0.1.0.tgz","integrity":"sha512-5WijaB6sxrBDoRB/k3bbH0gdxIKtQsiBCIL+YAdhpH0UjyJy9Yp1K+7hpiZtqzm988hQfu7bSDuyKrsPuKsQ4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC+IJsTErezb6IK/fFckLDHO545frZdEHviZHu9254oAIhAKN+aEQmHhEohDFJO4pCeoLtXMMBR0VLsCOwDubwdBoP"}]},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.1":{"name":"passport-smugmug","version":"0.1.1","description":"SmugMug authentication strategy for Passport.","author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-smugmug.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-smugmug/issues"},"main":"./lib/passport-smugmug","dependencies":{"pkginfo":"0.2.x","passport-oauth":"0.1.x"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"keywords":["passport","smugmug","auth","authn","authentication","identity"],"_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"_id":"passport-smugmug@0.1.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"f9fbfa075e4464c9fb740024565d384badda1f48","tarball":"https://registry.npmjs.org/passport-smugmug/-/passport-smugmug-0.1.1.tgz","integrity":"sha512-3gI5wiAYtOE2Tw6rl04dZFdqK7q85bn/Til13ku6CPKufkdki8ldFMY/AW8wdHUjYOejkGoL7aUK/mQso6u1hA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHx+AhqxiOI1V+WUVbn2GVYVfvLaUmeU+lFkDHLGokzoCICeiQeuH6restjkPp1gL2kdwZuIx0+o80o9b2/eLxlgG"}]},"readme":"","maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]},"0.1.2":{"name":"passport-smugmug","version":"0.1.2","description":"SmugMug authentication strategy for Passport.","keywords":["passport","smugmug","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-smugmug.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-smugmug/issues"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-smugmug","dependencies":{"pkginfo":"0.2.x","passport-oauth":"0.1.x"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"readme":"# Passport-SmugMug\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [SmugMug](http://www.smugmug.com/) using the OAuth 1.0a API.\n\nThis module lets you authenticate using Dwolla in your Node.js applications.\nBy plugging into Passport, SmugMug authentication can be easily and\nunobtrusively integrated into any application or framework that supports\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\n[Express](http://expressjs.com/).\n\n## Install\n\n    $ npm install passport-smugmug\n\n## Usage\n\n#### Configure Strategy\n\nThe SmugMug authentication strategy authenticates users using a SmugMug account\nand OAuth tokens.  The strategy requires a `verify` callback, which accepts\nthese credentials and calls `done` providing a user, as well as `options`\nspecifying a consumer key, consumer secret, and callback URL.\n\n    passport.use(new SmugMugStrategy({\n        consumerKey: SMUGMUG_KEY,\n        consumerSecret: SMUGMUG_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/smugmug/callback\"\n      },\n      function(token, tokenSecret, profile, done) {\n        User.findOrCreate({ smugmugId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'smugmug'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/smugmug',\n      passport.authenticate('smugmug'));\n    \n    app.get('/auth/smugmug/callback', \n      passport.authenticate('smugmug', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Examples\n\nFor a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-smugmug/tree/master/examples/login).\n\n## Tests\n\n    $ npm install --dev\n    $ make test\n\n[![Build Status](https://secure.travis-ci.org/jaredhanson/passport-smugmug.png)](http://travis-ci.org/jaredhanson/passport-smugmug)\n\n## Credits\n\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n","_id":"passport-smugmug@0.1.2","dist":{"shasum":"608e34429c7275a9916134c35a70c06d692c37ab","tarball":"https://registry.npmjs.org/passport-smugmug/-/passport-smugmug-0.1.2.tgz","integrity":"sha512-U0LFekdOYJWmhBa1AKj7z+/e53MogDpraja6O9HtB+zjZmLWK2rUD0dN1p6qVrnUkFdsvEfSOKc06JE9/K1Q6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIHPRyiAF/LF3PEdJYDKndDR/wPdd5JAwtZ08vJp68AqWAh9Z6JcoVgWdmj4qahCX4HNo4p4iuW3FkzZRdNdMm9Nb"}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jaredhanson","email":"jaredhanson@gmail.com"},"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}]}},"readme":null,"maintainers":[{"name":"jaredhanson","email":"jaredhanson@gmail.com"}],"time":{"modified":"2022-06-23T13:30:52.432Z","created":"2011-12-07T06:25:24.054Z","0.1.0":"2011-12-07T06:25:24.671Z","0.1.1":"2012-02-23T06:14:00.679Z","0.1.2":"2013-02-09T21:02:07.946Z"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-smugmug.git"}}