{"id":28076800,"url":"https://github.com/jaredhanson/passport-evernote","last_synced_at":"2025-05-13T01:52:08.158Z","repository":{"id":2029146,"uuid":"2965573","full_name":"jaredhanson/passport-evernote","owner":"jaredhanson","description":"Evernote authentication strategy for Passport and Node.js.","archived":false,"fork":false,"pushed_at":"2017-09-17T19:56:22.000Z","size":23,"stargazers_count":15,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-08T15:21:52.947Z","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-12-12T16:29:52.000Z","updated_at":"2020-02-14T08:05:20.000Z","dependencies_parsed_at":"2022-08-25T21:01:02.039Z","dependency_job_id":null,"html_url":"https://github.com/jaredhanson/passport-evernote","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-evernote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-evernote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-evernote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-evernote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredhanson","download_url":"https://codeload.github.com/jaredhanson/passport-evernote/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:07.462Z","updated_at":"2025-05-13T01:52:08.152Z","avatar_url":"https://github.com/jaredhanson.png","language":"JavaScript","funding_links":["https://paypal.me/jaredhanson"],"categories":[],"sub_categories":[],"readme":"# passport-evernote\n\n[![Build](https://img.shields.io/travis/jaredhanson/passport-evernote.svg)](https://travis-ci.org/jaredhanson/passport-evernote)\n[![Coverage](https://img.shields.io/coveralls/jaredhanson/passport-evernote.svg)](https://coveralls.io/r/jaredhanson/passport-evernote)\n[![Quality](https://img.shields.io/codeclimate/github/jaredhanson/passport-evernote.svg?label=quality)](https://codeclimate.com/github/jaredhanson/passport-evernote)\n[![Dependencies](https://img.shields.io/david/jaredhanson/passport-evernote.svg)](https://david-dm.org/jaredhanson/passport-evernote)\n\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Evernote](http://www.evernote.com/) using the OAuth 1.0a API.\n\nThis module lets you authenticate using Evernote in your Node.js applications.\nBy plugging into Passport, Evernote 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-evernote\n\n## Usage\n\n#### Create an Application\n\nBefore using `passport-evernote`, you must first get an Evernote API key. If you\nhave not already done so, an API key can be requested at [Evernote Developers](https://dev.evernote.com/).\nYour will be issued an API key and secret, which need to be provided to the\nstrategy.\n\n#### Configure Strategy\n\nThe Evernote authentication strategy authenticates users using an Evernote\naccount and OAuth tokens.  The API key secret obtained from Evernote are\nsupplied as options when creating the strategy.  The strategy also requires a\n`verify` callback, which receives the access token and corresponding secret as\narguments, as well as `profile` which contains the authenticated user's Evernote\nprofile.   The `verify` callback must call `cb` providing a user to complete\nauthentication.\n\n    passport.use(new EvernoteStrategy({\n        consumerKey: EVERNOTE_CONSUMER_KEY,\n        consumerSecret: EVERNOTE_CONSUMER_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/evernote/callback\"\n      },\n      function(token, tokenSecret, profile, cb) {\n        User.findOrCreate({ evernoteId: profile.id }, function (err, user) {\n          return cb(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'evernote'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/evernote',\n      passport.authenticate('evernote'));\n    \n    app.get('/auth/evernote/callback', \n      passport.authenticate('evernote', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Examples\n\nDevelopers using the popular [Express](http://expressjs.com/) web framework can\nrefer to an [example](https://github.com/passport/express-4.x-evernote-example)\nas a starting point for their own web applications.  The example shows how to\nauthenticate users using Twitter.  However, because both Twitter and Evernote\nuse OAuth 1.0, the code is similar.  Simply replace references to Twitter with\ncorresponding references to Evernote.\n\n## FAQ\n\n##### How do I test against the Evernote sandbox?\n\nSupply the sandbox endpoint URLs as options to the strategy, as follows:\n\n```js\nnew EvernoteStrategy({\n  requestTokenURL: 'https://sandbox.evernote.com/oauth',\n  accessTokenURL: 'https://sandbox.evernote.com/oauth',\n  userAuthorizationURL: 'https://sandbox.evernote.com/OAuth.action',\n  consumerKey: EVERNOTE_CONSUMER_KEY,\n  consumerSecret: EVERNOTE_CONSUMER_SECRET,\n  callbackURL: \"http://127.0.0.1:3000/auth/evernote/callback\"\n}\n```\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\nThe test suite covers 100% of the code base.  All new feature development is\nexpected to maintain that level.  Coverage reports can be viewed by executing:\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\n\u003ca target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/passport-evernote'\u003e  \u003cimg alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/passport-evernote.svg' /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-evernote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredhanson%2Fpassport-evernote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-evernote/lists"}