{"id":21396831,"url":"https://github.com/posixpascal/st0rm-oauth1","last_synced_at":"2025-03-16T14:43:09.007Z","repository":{"id":142927100,"uuid":"71696935","full_name":"posixpascal/st0rm-oauth1","owner":"posixpascal","description":"A modified oauth provider for passport which allows user-transmitted app credentials.","archived":false,"fork":false,"pushed_at":"2016-10-23T10:53:40.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:39:52.416Z","etag":null,"topics":["oauth-provider","passport"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/posixpascal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-23T10:52:30.000Z","updated_at":"2016-10-23T10:52:57.000Z","dependencies_parsed_at":"2023-07-14T22:16:05.046Z","dependency_job_id":null,"html_url":"https://github.com/posixpascal/st0rm-oauth1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2Fst0rm-oauth1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2Fst0rm-oauth1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2Fst0rm-oauth1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2Fst0rm-oauth1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posixpascal","download_url":"https://codeload.github.com/posixpascal/st0rm-oauth1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885888,"owners_count":20363644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oauth-provider","passport"],"created_at":"2024-11-22T14:29:31.734Z","updated_at":"2025-03-16T14:43:08.980Z","avatar_url":"https://github.com/posixpascal.png","language":"JavaScript","funding_links":["https://paypal.me/jaredhanson"],"categories":[],"sub_categories":[],"readme":"# st0rm-oauth1\n\n[![Build](https://img.shields.io/travis/jaredhanson/passport-oauth1.svg)](https://travis-ci.org/jaredhanson/passport-oauth1)\n[![Coverage](https://img.shields.io/coveralls/jaredhanson/passport-oauth1.svg)](https://coveralls.io/r/jaredhanson/passport-oauth1)\n[![Quality](https://img.shields.io/codeclimate/github/jaredhanson/passport-oauth1.svg?label=quality)](https://codeclimate.com/github/jaredhanson/passport-oauth1)\n[![Dependencies](https://img.shields.io/david/jaredhanson/passport-oauth1.svg)](https://david-dm.org/jaredhanson/passport-oauth1)\n\n\nGeneral-purpose OAuth 1.0 authentication strategy for [Passport](http://passportjs.org/).\n\nThis module lets you authenticate using OAuth in your Node.js applications.\nBy plugging into Passport, OAuth authentication can be easily and unobtrusively\nintegrated into any application or framework that supports\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\n[Express](http://expressjs.com/).\n\nNote that this strategy provides generic OAuth support.  In many cases, a\nprovider-specific strategy can be used instead, which cuts down on unnecessary\nconfiguration, and accommodates any provider-specific quirks.  See the\n[list](https://github.com/jaredhanson/passport/wiki/Strategies) for supported\nproviders.\n\nDevelopers who need to implement authentication against an OAuth provider that\nis not already supported are encouraged to sub-class this strategy.  If you\nchoose to open source the new provider-specific strategy, please add it to the\nlist so other people can find it.\n\n## Install\n\n    $ npm install st0rm-oauth1\n\n## Usage\n\n#### Configure Strategy\n\nThe OAuth authentication strategy authenticates users using a third-party\naccount and OAuth tokens.  The provider's OAuth endpoints, as well as the\nconsumer key and secret, are specified as options.  The strategy requires a\n`verify` callback, which receives a token and profile, and calls `cb`\nproviding a user.\n\n    passport.use(new OAuth1Strategy({\n        requestTokenURL: 'https://www.example.com/oauth/request_token',\n        accessTokenURL: 'https://www.example.com/oauth/access_token',\n        userAuthorizationURL: 'https://www.example.com/oauth/authorize',\n        consumerKey: EXAMPLE_CONSUMER_KEY,\n        consumerSecret: EXAMPLE_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/example/callback\",\n        signatureMethod: \"RSA-SHA1\"\n      },\n      function(token, tokenSecret, profile, cb) {\n        User.findOrCreate({ exampleId: profile.id }, function (err, user) {\n          return cb(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'oauth'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/example',\n      passport.authenticate('oauth'));\n    \n    app.get('/auth/example/callback', \n      passport.authenticate('oauth', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Related Modules\n\n- [passport-oauth2](https://github.com/jaredhanson/passport-oauth2) — OAuth 2.0 authentication strategy\n- [passport-http-oauth](https://github.com/jaredhanson/passport-http-oauth) — OAuth authentication strategy for APIs\n- [oauthorize](https://github.com/jaredhanson/oauthorize) — OAuth service provider toolkit\n\n## Contributing\n\n#### Tests\n\nThe test suite is located in the `test/` directory.  All new features are\nexpected to have corresponding test cases.  Ensure that the complete test suite\npasses by executing:\n\n```bash\n$ make test\n```\n\n#### Coverage\n\nAll new feature development is expected to have test coverage.  Patches that\nincrese test coverage are happily accepted.  Coverage reports can be viewed by\nexecuting:\n\n```bash\n$ make test-cov\n$ make view-cov\n```\n\n## Support\n\n#### Funding\n\nThis software is provided to you as open source, free of charge.  The time and\neffort to develop and maintain this project is dedicated by [@jaredhanson](https://github.com/jaredhanson).\nIf you (or your employer) benefit from this project, please consider a financial\ncontribution.  Your contribution helps continue the efforts that produce this\nand other open source software.\n\nFunds are accepted via [PayPal](https://paypal.me/jaredhanson), [Venmo](https://venmo.com/jaredhanson),\nand [other](http://jaredhanson.net/pay) methods.  Any amount is appreciated.\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2016 Jared Hanson \u003c[http://jaredhanson.net/](http://jaredhanson.net/)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposixpascal%2Fst0rm-oauth1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposixpascal%2Fst0rm-oauth1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposixpascal%2Fst0rm-oauth1/lists"}