{"_id":"passport-flickr","_rev":"11-53c99c1da0d465e78de56a8f256b91b3","name":"passport-flickr","description":"Flickr authentication strategy for Passport.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"passport-flickr","version":"0.1.0","description":"Flickr authentication strategy for Passport.","author":{"name":"Johnny Halife","email":"johnny.halife@me.com","url":"http://johnny.io/"},"repository":{"type":"git","url":"git://github.com/johnnyhalife/passport-flickr.git"},"main":"./lib/passport-oauth","dependencies":{"passport-oauth":">= 0.1.0"},"engines":{"node":">= 0.4.0"},"keywords":["passport","flickr","auth","authn","authentication","identity"],"_npmUser":{"name":"johnnyhalife","email":"johnny.halife@me.com"},"_id":"passport-flickr@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"5f9a51fce5bf87ddd3e1307c04aee46bcaef98d4","tarball":"https://registry.npmjs.org/passport-flickr/-/passport-flickr-0.1.0.tgz","integrity":"sha512-UP1Bv79yz+AoIlSfpdy1ClEchzQx6u+DZxO1Ur60FVTW3Xj/arTKNqdvmV9eH7e1LKHih6qkFODRi5sYk1qvlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEM2Xgy3cJ9/pwaQBZeB3fexViE//a1LCJRFAsApLhSrAiEAtuybD2M9/zcmpSKa0sa9m/H44TKOPeRFBAANatwRswM="}]},"maintainers":[{"name":"johnnyhalife","email":"johnny.halife@me.com"}]},"0.1.1":{"name":"passport-flickr","version":"0.1.1","description":"Flickr authentication strategy for Passport.","author":{"name":"Johnny Halife","email":"johnny.halife@me.com","url":"http://johnny.io/"},"repository":{"type":"git","url":"git://github.com/johnnyhalife/passport-flickr.git"},"main":"./lib/passport-flickr","dependencies":{"passport-oauth":">= 0.1.0"},"engines":{"node":">= 0.4.0"},"keywords":["passport","flickr","auth","authn","authentication","identity"],"_npmUser":{"name":"johnnyhalife","email":"johnny.halife@me.com"},"_id":"passport-flickr@0.1.1","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"64a06383bb696e071db0122d00ab48e764b293b9","tarball":"https://registry.npmjs.org/passport-flickr/-/passport-flickr-0.1.1.tgz","integrity":"sha512-8AGMaKGFDdTaSyY+69fC1X3JnbajYdRKSrUIYdDHSx3V82V6HbG0FT/yw7WOMkJYmEWmZeCU0c6Y/7v3ipNlRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF22+enSx6jZpgCFAkAbNx1sNNilmUlvW6p5mDVLqSNAAiEAp4L4QNDhZrDulAAkB06z5VYbke8xLlVFBpnEdAyU7oU="}]},"maintainers":[{"name":"johnnyhalife","email":"johnny.halife@me.com"}]},"0.2.0":{"name":"passport-flickr","version":"0.2.0","description":"Flickr authentication strategy for Passport.","author":{"name":"Johnny Halife","email":"johnny.halife@me.com","url":"http://johnny.io/"},"repository":{"type":"git","url":"http://github.com/johnnyhalife/passport-flickr.git"},"main":"./lib/passport-flickr","dependencies":{"passport-oauth":">= 0.1.0"},"engines":{"node":">= 0.4.0"},"keywords":["passport","flickr","auth","authn","authentication","identity"],"bugs":{"url":"https://github.com/johnnyhalife/passport-flickr/issues"},"_id":"passport-flickr@0.2.0","dist":{"shasum":"9f3a77eac4b48a9e2109df12e544114b42960c5c","tarball":"https://registry.npmjs.org/passport-flickr/-/passport-flickr-0.2.0.tgz","integrity":"sha512-6sekM7mPfS/5QewpxnS+x+CB7AREn8KabUJMFRfBpXviWf0btZpLYhKFL34+/Jo+enoF5CJIkFBqZ5VPYy8Zug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIeKEBrny3dvxji6Avbn1GcNKWJ8Dd7acnMMPuBJIpFAiAmWJyz0KRw5s13Mxv/ELhTdjUHzrEo+OkK7IgYXjw3Nw=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"johnnyhalife","email":"johnny.halife@me.com"},"maintainers":[{"name":"johnnyhalife","email":"johnny.halife@me.com"}]}},"readme":"# Passport-Flickr\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith Flickr using the OAuth 1.0a API.\n\n## Installation\n\n    $ npm install passport-flickr\n\n## Usage\n\n#### Configure Strategy\n\nThe Flickr authentication strategy authenticates users using a Flickr account and\nOAuth tokens.  The strategy requires a `verify` callback, which accepts these\ncredentials and calls `done` providing a user, as well as `options` specifying a\nconsumer key, consumer secret, and callback URL.\n\n    passport.use(new FlickrStrategy({\n        consumerKey: FLICKR_CONSUMER_KEY,\n        consumerSecret: FLICKR_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/flickr/callback\"\n      },\n      function(token, tokenSecret, profile, done) {\n        User.findOrCreate({ flickrId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'flickr'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/flickr',\n      passport.authenticate('flickr'),\n      function(req, res){\n        // The request will be redirected to Flickr for authentication, so this\n        // function will not be called.\n      });\n    \n    app.get('/auth/flickr/callback', \n      passport.authenticate('flickr', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Credits\n  - [Johnny Halife](http://github.com/johnnyhalife)\n","maintainers":[{"name":"johnnyhalife","email":"johnny.halife@me.com"}],"time":{"modified":"2022-06-23T12:37:45.507Z","created":"2011-12-13T03:33:46.483Z","0.1.0":"2011-12-13T03:33:50.291Z","0.1.1":"2011-12-13T03:48:03.515Z","0.2.0":"2014-03-12T23:09:47.133Z"},"author":{"name":"Johnny Halife","email":"johnny.halife@me.com","url":"http://johnny.io/"},"repository":{"type":"git","url":"http://github.com/johnnyhalife/passport-flickr.git"},"keywords":["passport","flickr","auth","authn","authentication","identity"],"readmeFilename":"README.md","bugs":{"url":"https://github.com/johnnyhalife/passport-flickr/issues"}}