{"id":18033595,"url":"https://github.com/rbren/passport-phonegap-build","last_synced_at":"2025-04-04T22:25:35.723Z","repository":{"id":25397811,"uuid":"28826570","full_name":"rbren/passport-phonegap-build","owner":"rbren","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-05T18:53:46.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T07:14:37.694Z","etag":null,"topics":[],"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/rbren.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":"2015-01-05T18:53:16.000Z","updated_at":"2015-11-24T18:33:07.000Z","dependencies_parsed_at":"2022-08-25T21:01:01.021Z","dependency_job_id":null,"html_url":"https://github.com/rbren/passport-phonegap-build","commit_stats":null,"previous_names":["bobby-brennan/passport-phonegap-build"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbren%2Fpassport-phonegap-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbren%2Fpassport-phonegap-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbren%2Fpassport-phonegap-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbren%2Fpassport-phonegap-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbren","download_url":"https://codeload.github.com/rbren/passport-phonegap-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247257394,"owners_count":20909469,"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":"2024-10-30T11:07:51.473Z","updated_at":"2025-04-04T22:25:35.697Z","avatar_url":"https://github.com/rbren.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Passport-PhoneGap-Build\n\n[Passport](http://passportjs.org/) strategy for authenticating with [PhoneGap Build](https://build.phonegap.com/)\nusing the OAuth 2.0 API.\n\nThis module lets you authenticate using GitHub in your Node.js applications.\nBy plugging into Passport, GitHub 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-phonegap-build\n\n## Usage\n\n#### Configure Strategy\n\n    passport.use(new PhonegapBuildStrategy({\n        clientID: CLIENT_ID,\n        clientSecret: CLIENT_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/phonegap/callback\"\n      },\n      function(accessToken, refreshToken, profile, done) {\n        User.findOrCreate({ id: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'phonegap-build'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/phonegap-build',\n      passport.authenticate('phonegap-build'));\n\n    app.get('/auth/phonegap-build/callback', \n      passport.authenticate('phonegap-build', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Credits\n  Inspired by Jared Hanson's Github Strategy:\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbren%2Fpassport-phonegap-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbren%2Fpassport-phonegap-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbren%2Fpassport-phonegap-build/lists"}