{"id":28076764,"url":"https://github.com/jaredhanson/passport-yahoo-oauth","last_synced_at":"2025-05-13T01:50:18.178Z","repository":{"id":2237809,"uuid":"3191908","full_name":"jaredhanson/passport-yahoo-oauth","owner":"jaredhanson","description":"Yahoo! (OAuth) authentication strategy for Passport and Node.js.","archived":false,"fork":false,"pushed_at":"2022-10-12T02:39:03.000Z","size":22,"stargazers_count":19,"open_issues_count":9,"forks_count":41,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-13T01:50:11.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jaredhanson.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}},"created_at":"2012-01-16T16:32:42.000Z","updated_at":"2020-05-06T08:49:12.000Z","dependencies_parsed_at":"2022-08-26T01:10:43.815Z","dependency_job_id":null,"html_url":"https://github.com/jaredhanson/passport-yahoo-oauth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-yahoo-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-yahoo-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-yahoo-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-yahoo-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredhanson","download_url":"https://codeload.github.com/jaredhanson/passport-yahoo-oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253856616,"owners_count":21974576,"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":[],"created_at":"2025-05-13T01:50:17.625Z","updated_at":"2025-05-13T01:50:18.165Z","avatar_url":"https://github.com/jaredhanson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Passport-Yahoo-OAuth\n\n[Passport](http://passportjs.org/) strategies for authenticating with [Yahoo!](http://www.yahoo.com/)\nusing the OAuth 1.0a API.\n\nThis module lets you authenticate using Yahoo! in your Node.js applications.\nBy plugging into Passport, Yahoo! 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## Installation\n\n    $ npm install passport-yahoo-oauth\n\n## Usage\n\n#### Configure Strategy\n\nThe Yahoo authentication strategy authenticates users using a Yahoo 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 YahooStrategy({\n        consumerKey: YAHOO_CONSUMER_KEY,\n        consumerSecret: YAHOO_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/yahoo/callback\"\n      },\n      function(token, tokenSecret, profile, done) {\n        User.findOrCreate({ yahooId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'yahoo'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/yahoo',\n      passport.authenticate('yahoo'));\n\n    app.get('/auth/yahoo/callback',\n      passport.authenticate('yahoo', { 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-yahoo/tree/master/examples/login).\n\n## Issues\n\nIf you receive a `401 Unauthorized` error, it is most likely because you have\nnot yet specified any application \"Permissions\".  Once you do so, Yahoo! will\ngenerate new credentials for usage, and will then authenticate your requests\nproperly.\n\n## Tests\n\n    $ npm install --dev\n    $ make test\n\n[![Build Status](https://secure.travis-ci.org/jaredhanson/passport-yahoo-oauth.png)](http://travis-ci.org/jaredhanson/passport-yahoo-oauth)\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) 2012-2013 Jared Hanson \u003c[http://jaredhanson.net/](http://jaredhanson.net/)\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-yahoo-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredhanson%2Fpassport-yahoo-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-yahoo-oauth/lists"}