{"_id":"passport-bitbucket-oauth2","_rev":"7-9710b404bfff11018d9d15a48c8207d4","name":"passport-bitbucket-oauth2","description":"Bitbucket OAuth2 authentication strategy for Passport.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"passport-bitbucket-oauth2","version":"0.1.0","description":"Bitbucket OAuth2 authentication strategy for Passport.","keywords":["passport","bitbucket","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/bithound/passport-bitbucket-oauth2.git"},"bugs":{"url":"http://github.com/bithound/passport-bitbucket-oauth2/issues"},"author":{"name":"Gord Tanner","email":"gtanner@gmail.com","url":"http://bithound.io"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-bitbucket","dependencies":{"pkginfo":"0.2.x","passport-oauth2":"^1.1.2"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"gitHead":"652ea510fe26ed0adb88003c70115cd9f77388ca","homepage":"https://github.com/bithound/passport-bitbucket-oauth2#readme","_id":"passport-bitbucket-oauth2@0.1.0","_shasum":"f004afb3ddc8c1a44887fcf7e8d44d850a98b7f1","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.10.33","_npmUser":{"name":"gtanner","email":"gtanner@gmail.com"},"dist":{"shasum":"f004afb3ddc8c1a44887fcf7e8d44d850a98b7f1","tarball":"https://registry.npmjs.org/passport-bitbucket-oauth2/-/passport-bitbucket-oauth2-0.1.0.tgz","integrity":"sha512-PuOmNX3YDdIxA1WY3qdT1pp+JjhxpdA2Q5FjA+DLM0hejb3ddA0IqNg3NHIURg7BVDmr1SRitximQ+8ggOWpGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA35+zq8cinYGGn7oXYMxMC2ENRxZbjYupaB0Rc8IjEAAiEA1NuXfNdmN3IQx3efZL5dgM4L4LMFsWfpFvxf3hjoFhI="}]},"maintainers":[{"name":"gtanner","email":"gtanner@gmail.com"}]},"0.1.1":{"name":"passport-bitbucket-oauth2","version":"0.1.1","description":"Bitbucket OAuth2 authentication strategy for Passport.","keywords":["passport","bitbucket","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/bithound/passport-bitbucket-oauth2.git"},"bugs":{"url":"http://github.com/bithound/passport-bitbucket-oauth2/issues"},"author":{"name":"Gord Tanner","email":"gtanner@gmail.com","url":"http://bithound.io"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-bitbucket","dependencies":{"pkginfo":"0.2.x","passport-oauth2":"^1.1.2"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"gitHead":"c5ab96b2ac6408e4f7a107ce50762d7e53ccb9f9","homepage":"https://github.com/bithound/passport-bitbucket-oauth2#readme","_id":"passport-bitbucket-oauth2@0.1.1","_shasum":"432a437a3405959f0d91119d31aee32164b2027f","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.10.33","_npmUser":{"name":"gtanner","email":"gtanner@gmail.com"},"dist":{"shasum":"432a437a3405959f0d91119d31aee32164b2027f","tarball":"https://registry.npmjs.org/passport-bitbucket-oauth2/-/passport-bitbucket-oauth2-0.1.1.tgz","integrity":"sha512-YaX4WBUf4/Kt/9XKbZW87afOqECNwiC8qt9znh5Ge0nlXhGx0uusH+cHUvgvZl4jrTFgjZXeQRngOph23oDnkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdbHh4CeOnJPMtoZpX/g51yKoNPgoeNSdERDDvrVxSDQIgWDu2HUOmEqMnrBrIAK3AWZL5QC3SUt7MiTJ61H72IUQ="}]},"maintainers":[{"name":"gtanner","email":"gtanner@gmail.com"}]},"0.1.2":{"name":"passport-bitbucket-oauth2","version":"0.1.2","description":"Bitbucket OAuth2 authentication strategy for Passport.","keywords":["passport","bitbucket","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/bithound/passport-bitbucket-oauth2.git"},"bugs":{"url":"http://github.com/bithound/passport-bitbucket-oauth2/issues"},"author":{"name":"Gord Tanner","email":"gtanner@gmail.com","url":"http://bithound.io"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/passport-bitbucket","dependencies":{"pkginfo":"0.2.x","passport-oauth2":"^1.1.2"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"NODE_PATH=lib node_modules/.bin/vows test/*-test.js"},"engines":{"node":">= 0.4.0"},"gitHead":"dcd1145c821dc066f63a57ea7ffdc8217344a10c","homepage":"https://github.com/bithound/passport-bitbucket-oauth2#readme","_id":"passport-bitbucket-oauth2@0.1.2","_shasum":"eb3af5cdd0d06830adc49b76acae4ad82290693b","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"gtanner","email":"gtanner@gmail.com"},"dist":{"shasum":"eb3af5cdd0d06830adc49b76acae4ad82290693b","tarball":"https://registry.npmjs.org/passport-bitbucket-oauth2/-/passport-bitbucket-oauth2-0.1.2.tgz","integrity":"sha512-bE4eQuyK2U0bumRdxfZedfoBfkHzblhui6MElz64xptn70CIrJrEKon1Ui95ML3KsvOmGGoaSZcwXwAjWF6M0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnp0pRMmqYuJJ3zjVh6HAMjQfM+hb3ZzuUsqAMG18KCwIhAPNI6fd/+yAEuguPhdAvGrDdahUD/hDKVn1Rr+dLZMcQ"}]},"maintainers":[{"name":"gtanner","email":"gtanner@gmail.com"}]}},"readme":"# Passport-Bitbucket\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Bitbucket](https://bitbucket.org/) using the OAuth 2.0 API.\n\nThis module lets you authenticate using Bitbucket in your Node.js applications.\nBy plugging into Passport, Bitbucket 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-bitbucket-oauth2\n\n## Usage\n\n#### Configure Strategy\n\nThe Bitbucket authentication strategy authenticates users using a Bitbucket\naccount and OAuth tokens.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a consumer key, consumer secret, and callback URL.\n\n    passport.use(new BitbucketStrategy({\n        clientID: BITBUCKET_CLIENT_ID,\n        clientSecret: BITBUCKET_CLIENT_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/bitbucket/callback\"\n      },\n      function(accessToken, refreshToken, profile, done) {\n        User.findOrCreate({ bitbucketId: profile.username }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'bitbucket'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/bitbucket',\n      passport.authenticate('bitbucket'));\n\n    app.get('/auth/bitbucket/callback', \n      passport.authenticate('bitbucket', { 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/bithound/passport-bitbucket-oauth2/tree/master/examples/login).\n\n## Tests\n\n    $ npm install --dev\n    $ make test\n\n## Credits\n\n  - [Gord Tanner](http://github.com/gtanner)\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2012-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n","maintainers":[{"name":"gtanner","email":"gtanner@gmail.com"}],"time":{"modified":"2022-06-23T12:20:27.109Z","created":"2015-07-29T18:41:42.813Z","0.1.0":"2015-07-29T18:41:42.813Z","0.1.1":"2015-07-29T18:43:34.354Z","0.1.2":"2015-11-04T21:03:02.510Z"},"homepage":"https://github.com/bithound/passport-bitbucket-oauth2#readme","keywords":["passport","bitbucket","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/bithound/passport-bitbucket-oauth2.git"},"author":{"name":"Gord Tanner","email":"gtanner@gmail.com","url":"http://bithound.io"},"bugs":{"url":"http://github.com/bithound/passport-bitbucket-oauth2/issues"},"readmeFilename":"README.md","users":{"richiebres":true,"rocket0191":true}}