{"_id":"@acceleratxr/passport-oauth1","_rev":"3-9258d2539420100b66c7dd8f13018f7d","name":"@acceleratxr/passport-oauth1","dist-tags":{"latest":"1.3.0"},"versions":{"1.2.0":{"name":"@acceleratxr/passport-oauth1","version":"1.2.0","description":"OAuth 1.0 authentication strategy for Passport.","keywords":["passport","auth","authn","authentication","authz","authorization","oauth"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-oauth1.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-oauth1/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/jaredhanson"},"license":"MIT","licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-strategy":"1.x.x","oauth":"0.9.x","utils-merge":"1.x.x"},"devDependencies":{"make-node":"0.4.6","mocha":"2.x.x","chai":"2.x.x","chai-passport-strategy":"1.x.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"make test"},"gitHead":"9f26de06b1a0f65f77fd96f4c8a37bea0e174655","homepage":"https://github.com/jaredhanson/passport-oauth1#readme","_id":"@acceleratxr/passport-oauth1@1.2.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-qUGpk610WSh2Onp7vlC4unxzTDPBmSqGiX/Nnt+6t/tEBLpFQwYbWmiBRM+hLKwWwQJmJxsmS3wl/OvhcEYOxQ==","shasum":"7cbee6fc046ec97480de7097a139323b7bb94dcb","tarball":"https://registry.npmjs.org/@acceleratxr/passport-oauth1/-/passport-oauth1-1.2.0.tgz","fileCount":11,"unpackedSize":30051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDCm0CRA9TVsSAnZWagAAUDIP/2HsDdEVz+L/z/W+ljWL\nGh5SiZxShf2MA0bdUaLu9gTeyMDfrsHubp7zhu6nsM3SknFp9XmvJKQS7u5s\n8nyLWIiZgRUnQyCTDz/tTydOdJnjT4p9k+AwljsSiDlBztldSIzAJgzubgxh\nyi2kBELHLwSJeZeIELwJw7lrx3QdMe9MBSAo6RuSesS/Yx6eGv/7Lpvg/HMz\nLSS9+LjgM0N67bTUZ3S9gNVK28TaAo+akpZ/AF/LB6XoG8Hv4puPhYO3jr0k\nEoEIM6F9VfBET5Gr8f1sK1y+JFdgsM0jnffsgxvUBNvq75XzCXl5c2zARszK\n390nPQsWTQjMTX8GCI8Wpo2c7/usdb1gRS/pz9trufG6r/kafN60H0tB1dAf\nlEY8i1RaGe7ThrPgLyERq0VM5XcJvMjnYVdI+FHrhhRJDq2uzAOwihYlQemH\np4dSUgCHIhIWxwwrgo24uUsf8w39TaGdhlwcukyZa1XXG7/1dYRAbwtt7E7J\nUa/kxJeppIJmHW3n3/IN4WolGa+oL9gl5IWfba4hoLWdYRUxcS2EsdJFcxtO\n5z1ZBNVH2IDY4Qx7Wh+9bm0ruY7tI4DmoIyzoCbVknDAlUjjEMH4TLRqf5pO\nxCf2nTta6Z8ouWv2wNwH7nZOAcZ86F0jmg7LMEERW3K1O7R0wamszTVeKOYA\ncn+E\r\n=JUfB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7+BcX5W6WsTzdlaHRNxTytN+FuyohvsPRAmDL8hULoAiEA+Fi6PfCsqdz0o4w05oxglgr+FeAnLnb0L2qtYLIB4C8="}]},"_npmUser":{"name":"acceleratxr","email":"admin@acceleratxr.com"},"directories":{},"maintainers":[{"name":"acceleratxr","email":"admin@acceleratxr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth1_1.2.0_1644964276102_0.2772429091547255"},"_hasShrinkwrap":false},"1.3.0":{"name":"@acceleratxr/passport-oauth1","version":"1.3.0","description":"OAuth 1.0 authentication strategy for Passport.","keywords":["passport","auth","authn","authentication","authz","authorization","oauth"],"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-oauth1.git"},"bugs":{"url":"http://github.com/jaredhanson/passport-oauth1/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/jaredhanson"},"license":"MIT","licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"./lib","dependencies":{"passport-strategy":"1.x.x","oauth":"0.9.x","utils-merge":"1.x.x"},"devDependencies":{"make-node":"0.4.6","mocha":"2.x.x","chai":"2.x.x","chai-passport-strategy":"1.x.x"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"make test"},"gitHead":"55dc93f47cac2d44954f14ddbb3dbbe46c1eaee3","homepage":"https://github.com/jaredhanson/passport-oauth1#readme","_id":"@acceleratxr/passport-oauth1@1.3.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-+s+ailOXj3YcOaD/r4H9jdEUh+dmmBfCZwV/azxl83ZNkTITpnqilwFarI/HqhMbEG0dVxAGZVWCIIMB01bsqw==","shasum":"496bffefec4bc8791da8f97283090839299fb509","tarball":"https://registry.npmjs.org/@acceleratxr/passport-oauth1/-/passport-oauth1-1.3.0.tgz","fileCount":11,"unpackedSize":29940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDDcvCRA9TVsSAnZWagAAAPAP/RVgIcW5BvO30/RPmzqE\nl0ZbrfNtCMatLsegvRRUXQs50uc0vCDJ5+Zu+DLFcmdJDSLtIkYD4WM5GoJT\nQZGwrvzfpCMJbyHp2MlafWafrapFKWi0R7RIQdNj/sEkJIvosFsu4Ww/ViYp\n3M4dxPxCNQBIkfVoY1adFpIzHiUj0qDfTzvQgB7XwPIhiYV5cD3YwqF/Cg7E\nTQv0AYhbrn6ty+TUCX+R3e3vNXNervncCmX7LmaiqNLvnKG8uhLZqlh5Mtru\njTjAWVLTG/hBKZz6y6X7Mg/ZuJLRTwPgeN7NgRcOvDJp/1+f/yiMSrGOZDDj\njUg06S4zaIpQJDsiVQmexdjRT6bzOg3Rlm/xzLh2YovJz7ML6pQmRumD0LLh\nLqvgseiCcydE2DYYZOCCbChPPmskKYngH+EBW5GXYnvgmN6ca457XzaoEZoQ\ngNPSY1o45KnCW88u6YvDkRCaF4kW4sbozZFmkPY6oy2NqFLHDQOYWtjKSgeM\n1AerFFK4Z1O4t2EB67oK7/lHUAdciDxg/89cg242oDSfeMH2UJl/kWWsISXU\n9Ps9syd9NZwh5BvULvMJgslZYKb3ef8yfd0MhXHYLuLNREM3uGz1Ggjdtlwa\n/hynzRryaZGNrGsaXmmEZk5Xij4s0MpQqT6ZskuV6D0aiGR0SNFgCppUuzb7\nfVfu\r\n=M3Lc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlHYtIGLdjJQKOj14KZvbNKN4klMXQ3wb11LGSsC0KxAiEA4CFlRKh+9dzqowIglxw97MetZwE2sGqOrxn/CbDXnjw="}]},"_npmUser":{"name":"acceleratxr","email":"admin@acceleratxr.com"},"directories":{},"maintainers":[{"name":"acceleratxr","email":"admin@acceleratxr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth1_1.3.0_1644967727253_0.8519974099477217"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-15T22:31:16.101Z","1.2.0":"2022-02-15T22:31:16.281Z","modified":"2022-04-04T11:06:41.472Z","1.3.0":"2022-02-15T23:28:47.664Z"},"maintainers":[{"name":"acceleratxr","email":"admin@acceleratxr.com"}],"description":"OAuth 1.0 authentication strategy for Passport.","homepage":"https://github.com/jaredhanson/passport-oauth1#readme","keywords":["passport","auth","authn","authentication","authz","authorization","oauth"],"repository":{"type":"git","url":"git://github.com/jaredhanson/passport-oauth1.git"},"author":{"name":"Jared Hanson","email":"jaredhanson@gmail.com","url":"http://www.jaredhanson.net/"},"bugs":{"url":"http://github.com/jaredhanson/passport-oauth1/issues"},"license":"MIT","readme":"# passport-oauth1\r\n\r\nGeneral-purpose OAuth 1.0 authentication strategy for [Passport](http://passportjs.org/).\r\n\r\nThis module lets you authenticate using OAuth in your Node.js applications.\r\nBy plugging into Passport, OAuth authentication can be easily and unobtrusively\r\nintegrated into any application or framework that supports\r\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\r\n[Express](http://expressjs.com/).\r\n\r\nNote that this strategy provides generic OAuth support.  In many cases, a\r\nprovider-specific strategy can be used instead, which cuts down on unnecessary\r\nconfiguration, and accommodates any provider-specific quirks.  See the\r\n[list](https://github.com/jaredhanson/passport/wiki/Strategies) for supported\r\nproviders.\r\n\r\nDevelopers who need to implement authentication against an OAuth provider that\r\nis not already supported are encouraged to sub-class this strategy.  If you\r\nchoose to open source the new provider-specific strategy, please add it to the\r\nlist so other people can find it.\r\n\r\n---\r\n\r\n<p align=\"center\">\r\n  <sup>Advertisement</sup>\r\n  <br>\r\n  <a href=\"https://click.linksynergy.com/link?id=D*o7yui4/NM&offerid=507388.380582&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Flearn-oauth-2%2F&u1=5I2riUEiNIRjPjdjxj6X4exznbT92nLNQKnhFoggiN\">Learn OAuth 2.0 - Get started as an API Security Expert</a><br>Just imagine what could happen to YOUR professional career if you had skills in OAuth > 8500 satisfied students\r\n</p>\r\n\r\n---\r\n\r\n[![npm](https://img.shields.io/npm/v/passport-oauth1.svg)](https://www.npmjs.com/package/passport-oauth1)\r\n[![build](https://img.shields.io/travis/jaredhanson/passport-oauth1.svg)](https://travis-ci.org/jaredhanson/passport-oauth1)\r\n[![coverage](https://img.shields.io/coveralls/jaredhanson/passport-oauth1.svg)](https://coveralls.io/github/jaredhanson/passport-oauth1)\r\n[...](https://github.com/jaredhanson/passport-oauth1/wiki/Status)\r\n\r\n## Install\r\n\r\n    $ npm install passport-oauth1\r\n\r\n## Usage\r\n\r\n#### Configure Strategy\r\n\r\nThe OAuth authentication strategy authenticates users using a third-party\r\naccount and OAuth tokens.  The provider's OAuth endpoints, as well as the\r\nconsumer key and secret, are specified as options.  The strategy requires a\r\n`verify` callback, which receives a token and profile, and calls `cb`\r\nproviding a user.\r\n\r\n    passport.use(new OAuth1Strategy({\r\n        requestTokenURL: 'https://www.example.com/oauth/request_token',\r\n        accessTokenURL: 'https://www.example.com/oauth/access_token',\r\n        userAuthorizationURL: 'https://www.example.com/oauth/authorize',\r\n        consumerKey: EXAMPLE_CONSUMER_KEY,\r\n        consumerSecret: EXAMPLE_CONSUMER_SECRET,\r\n        callbackURL: \"http://127.0.0.1:3000/auth/example/callback\",\r\n        signatureMethod: \"RSA-SHA1\"\r\n      },\r\n      function(token, tokenSecret, profile, cb) {\r\n        User.findOrCreate({ exampleId: profile.id }, function (err, user) {\r\n          return cb(err, user);\r\n        });\r\n      }\r\n    ));\r\n\r\n#### Authenticate Requests\r\n\r\nUse `passport.authenticate()`, specifying the `'oauth'` strategy, to\r\nauthenticate requests.\r\n\r\nFor example, as route middleware in an [Express](http://expressjs.com/)\r\napplication:\r\n\r\n    app.get('/auth/example',\r\n      passport.authenticate('oauth'));\r\n    \r\n    app.get('/auth/example/callback', \r\n      passport.authenticate('oauth', { failureRedirect: '/login' }),\r\n      function(req, res) {\r\n        // Successful authentication, redirect home.\r\n        res.redirect('/');\r\n      });\r\n\r\n## Related Modules\r\n\r\n- [passport-oauth2](https://github.com/jaredhanson/passport-oauth2) — OAuth 2.0 authentication strategy\r\n- [passport-http-oauth](https://github.com/jaredhanson/passport-http-oauth) — OAuth authentication strategy for APIs\r\n- [oauthorize](https://github.com/jaredhanson/oauthorize) — OAuth service provider toolkit\r\n\r\n## Contributing\r\n\r\n#### Tests\r\n\r\nThe test suite is located in the `test/` directory.  All new features are\r\nexpected to have corresponding test cases.  Ensure that the complete test suite\r\npasses by executing:\r\n\r\n```bash\r\n$ make test\r\n```\r\n\r\n#### Coverage\r\n\r\nAll new feature development is expected to have test coverage.  Patches that\r\nincrese test coverage are happily accepted.  Coverage reports can be viewed by\r\nexecuting:\r\n\r\n```bash\r\n$ make test-cov\r\n$ make view-cov\r\n```\r\n\r\n## License\r\n\r\n[The MIT License](http://opensource.org/licenses/MIT)\r\n\r\nCopyright (c) 2011-2016 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\r\n\r\n\r\n","readmeFilename":"README.md"}