{"id":28076797,"url":"https://github.com/jaredhanson/passport-vimeo","last_synced_at":"2025-10-28T10:03:25.501Z","repository":{"id":1929913,"uuid":"2858485","full_name":"jaredhanson/passport-vimeo","owner":"jaredhanson","description":"Vimeo authentication strategy for Passport and Node.js.","archived":false,"fork":false,"pushed_at":"2018-01-04T16:27:09.000Z","size":13,"stargazers_count":5,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T19:37:31.533Z","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":"2011-11-27T00:17:31.000Z","updated_at":"2017-09-17T21:01:48.000Z","dependencies_parsed_at":"2022-08-25T21:01:29.013Z","dependency_job_id":null,"html_url":"https://github.com/jaredhanson/passport-vimeo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-vimeo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-vimeo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-vimeo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-vimeo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredhanson","download_url":"https://codeload.github.com/jaredhanson/passport-vimeo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253856618,"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:52:06.933Z","updated_at":"2025-10-28T10:03:20.463Z","avatar_url":"https://github.com/jaredhanson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Passport-Vimeo\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Vimeo](http://vimeo.com/) using the OAuth 1.0a API.\n\nThis module lets you authenticate using Vimeo in your Node.js applications.\nBy plugging into Passport, Vimeo 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-vimeo\n\n## Usage\n\n#### Configure Strategy\n\nThe Vimeo authentication strategy authenticates users using a Vimeo 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 VimeoStrategy({\n        consumerKey: VIMEO_CONSUMER_KEY,\n        consumerSecret: VIMEO_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/vimeo/callback\"\n      },\n      function(token, tokenSecret, profile, done) {\n        User.findOrCreate({ vimeoId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'vimeo'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/vimeo',\n      passport.authenticate('vimeo'));\n    \n    app.get('/auth/vimeo/callback', \n      passport.authenticate('vimeo', { 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-vimeo/tree/master/examples/login).\n\n## Tests\n\n    $ npm install --dev\n    $ make test\n\n[![Build Status](https://secure.travis-ci.org/jaredhanson/passport-vimeo.png)](http://travis-ci.org/jaredhanson/passport-vimeo)\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) 2011-2013 Jared Hanson \u003c[http://jaredhanson.net/](http://jaredhanson.net/)\u003e\n\n\u003ca target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/passport-vimeo'\u003e  \u003cimg alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/passport-vimeo.svg' /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-vimeo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredhanson%2Fpassport-vimeo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-vimeo/lists"}