{"id":23711385,"url":"https://github.com/springrole/passport-dock-io","last_synced_at":"2026-02-07T22:30:17.882Z","repository":{"id":57153331,"uuid":"155270477","full_name":"SpringRole/passport-dock-io","owner":"SpringRole","description":"A PassportJs strategy for Dock.io","archived":false,"fork":false,"pushed_at":"2018-11-10T14:00:29.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T17:55:13.505Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpringRole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-29T19:40:20.000Z","updated_at":"2018-11-10T14:00:31.000Z","dependencies_parsed_at":"2022-08-28T08:05:15.790Z","dependency_job_id":null,"html_url":"https://github.com/SpringRole/passport-dock-io","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/SpringRole%2Fpassport-dock-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringRole%2Fpassport-dock-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringRole%2Fpassport-dock-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringRole%2Fpassport-dock-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpringRole","download_url":"https://codeload.github.com/SpringRole/passport-dock-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800427,"owners_count":19699122,"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-12-30T19:49:32.362Z","updated_at":"2026-02-07T22:30:15.778Z","avatar_url":"https://github.com/SpringRole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"THIS IS AN EXPERIMENTAL VERSION. PRODUCTION USE IS NOT RECOMMENDED\n\n# passport-dock-io\n\n[Passport](http://passportjs.org/) strategy for authenticating with [Dock.io](https://dock.io/)\n\nThis module lets you authenticate using Dock.io in your Node.js applications.\nBy plugging into Passport, Dock.io 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-dock-io\n\n## Usage\n\n#### Configure Strategy\n\nThe Dock.io authentication strategy authenticates users having a Dock.io\naccount.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a client_id, prvKey, and client_secret.\n\n    passport.use(new DockIOStrategy({\n        client_id: CLIENT_ID,\n        prvKey: PRIVATE_KEY,\n        client_secret: \"Something-secret\"\n      },\n      function(connection_addr, done) {\n        //check if connection address is associated with a user/webhook notification for new package\n        //exists if it does then update retrieve the existing user, else confirm the connection using\n        // docks api then:\n        // use the ipfs address from the webhook to retrieve the user data using docks api's \n      }\n    ));\n\n#### Parameters\n\nThe verify callback can be supplied with the `request` object by setting\nthe `passReqToCallback` option to true, and changing callback arguments\naccordingly.\n\n    passport.use(new DockIOStrategy({\n        client_id: CLIENT_ID,\n        prvKey: PRIVATE_KEY,\n        client_secret: \"Something-secret\"\n      },\n      function(req, profile, done) {\n        // request object is now first argument\n        // ...\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'dock-io'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/dock-io',\n      passport.authenticate('dock-io'));\n\n    app.get('/auth/dock-io',\n      passport.authenticate('dock-io', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Credits\n\n  - [Vinay Agarwal](http://github.com/vinay035)\n  - [Kartik Mandaville](http://github.com/kar2905)\n  - [George Mammen Jacob](http://github.com/gmjacob)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringrole%2Fpassport-dock-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringrole%2Fpassport-dock-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringrole%2Fpassport-dock-io/lists"}