{"_id":"express-oauth-server","_rev":"18-0812c9ab31976ceb3aa6961a15e9f17d","name":"express-oauth-server","description":"OAuth provider for express","dist-tags":{"latest":"2.0.0","next":"2.0.0-b3"},"versions":{"1.0.0":{"name":"express-oauth-server","version":"1.0.0","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/seegno/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.13.3","oauth2-server":"github:seegno-forks/node-oauth2-server#enhancement/refactor-project","thenify":"^3.0.0"},"devDependencies":{"body-parser":"^1.14.1","jshint":"^2.8.0","mocha":"^2.3.3","should":"^7.1.0","sinon":"^1.14.1","supertest":"^0.15.0"},"engines":{"node":">=0.11"},"gitHead":"98d16313d01dae019daca58d7056f59f42eefdb4","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"express-oauth-server@1.0.0","_shasum":"92c771f9c0bafb5476d187a36bd73ac82079255a","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"styler","email":"styler@streamelements.com"},"dist":{"shasum":"92c771f9c0bafb5476d187a36bd73ac82079255a","tarball":"https://registry.npmjs.org/express-oauth-server/-/express-oauth-server-1.0.0.tgz","integrity":"sha512-54VnAft/9uA987/+pqwfShNnNCl8qNWjLd3xfaZqFTmAym/iQAj7+tg5yWiY+jAHNuMS+hG0vebARM6UVTHdcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLe9H3qPQPQKbXTazkKxzG0OG5GUELYIsRl51ntGi6tAiEA2rKdnKWlHCW9mDgmEhB/OHmphq1Y/Q6Btuq8B7j48+U="}]},"maintainers":[{"name":"styler","email":"styler@streamelements.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/express-oauth-server-1.0.0.tgz_1455049134792_0.8670674997847527"},"directories":{}},"2.0.0-b1":{"name":"express-oauth-server","version":"2.0.0-b1","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/seegno/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.13.3","oauth2-server":"next","thenify":"^3.0.0"},"devDependencies":{"body-parser":"^1.14.1","jshint":"^2.8.0","mocha":"^2.3.3","should":"^7.1.0","sinon":"^1.14.1","supertest":"^0.15.0"},"engines":{"node":">=0.11"},"gitHead":"83086af9775d0d5d4b3204652c2b3ebb34cd3340","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"express-oauth-server@2.0.0-b1","_shasum":"1a3dffa32f1bfce04a88a49320e2fe8b13f77192","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"1a3dffa32f1bfce04a88a49320e2fe8b13f77192","tarball":"https://registry.npmjs.org/express-oauth-server/-/express-oauth-server-2.0.0-b1.tgz","integrity":"sha512-Vbv01vWwr21AqmBAQDIgBphsVTw1GULJ3DGrwkOeIW7QsY1ehzZhQYf75iPgj0OjELAmO0pzIoUbSnkGmrMTXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2lqXtaT1HBP0z8frBPnCxAXr87BzxuWacaEhGsigkFgIgR3+E5mDmcNeOFe5Z5jYuRMh2DopaMZP3AOG5uBqXbdo="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"nunofgs","email":"nunofgs@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-oauth-server-2.0.0-b1.tgz_1478867211486_0.10438652336597443"},"directories":{}},"2.0.0-b2":{"name":"express-oauth-server","version":"2.0.0-b2","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/seegno/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.13.3","oauth2-server":"next","thenify":"^3.0.0"},"devDependencies":{"body-parser":"^1.14.1","jshint":"^2.8.0","mocha":"^2.3.3","should":"^7.1.0","sinon":"^1.14.1","supertest":"^0.15.0"},"engines":{"node":">=0.11"},"gitHead":"67df3ee0261cd331b59bd483813d4d2b098857aa","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"express-oauth-server@2.0.0-b2","_shasum":"cdde94873f50bc5d9eab9057ca13be57a69a9307","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"cdde94873f50bc5d9eab9057ca13be57a69a9307","tarball":"https://registry.npmjs.org/express-oauth-server/-/express-oauth-server-2.0.0-b2.tgz","integrity":"sha512-Rcmr7vxR38oQgnOwOcU8MwIlHcAmI8sDhuKXBlv7S/eZToGorrc827bkjl/ziK7w9hL5yyvE/pu82XFMobM7Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjQ3W4JNL6iHNVuB73fvrmLY076iVnQmwQAzxmnqPsdgIhAMVNgCkLN8Sy4fJIjH0uAt3HnIFRzuntKX6MxjlkbQab"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"nunofgs","email":"nunofgs@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-oauth-server-2.0.0-b2.tgz_1482349774812_0.790653990348801"},"directories":{}},"2.0.0-b3":{"name":"express-oauth-server","version":"2.0.0-b3","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/seegno/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.13.3","oauth2-server":"3.0.0-b4"},"devDependencies":{"body-parser":"^1.14.1","jshint":"^2.8.0","mocha":"^2.3.3","should":"^7.1.0","sinon":"^1.14.1","supertest":"^0.15.0"},"engines":{"node":">=0.11"},"gitHead":"864b598fa756b4c6107db8e2e7b683c27af71709","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"express-oauth-server@2.0.0-b3","_shasum":"f8c830dbf91291cea927e61d603ec2ed1afe7c0c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"f8c830dbf91291cea927e61d603ec2ed1afe7c0c","tarball":"https://registry.npmjs.org/express-oauth-server/-/express-oauth-server-2.0.0-b3.tgz","integrity":"sha512-i4hW9qmYhszLvlzyBvnDwzB7Mkfdnz+EYhFoWOVorz+5DsfFD8KkxH0MG8TEmQ5ShJ0ralBq9Bw3jxU2a3tCwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDyixwOF21JnxWtD6r65UAo8I0kv1qsuz9SsQNki67+fAiBAbBIN2zqfowqf6axL8SNxYOZvlikxGfOgW6uQi6h6rA=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"nunofgs","email":"nunofgs@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/express-oauth-server-2.0.0-b3.tgz_1493734998522_0.5494845504872501"},"directories":{}},"2.0.0":{"name":"express-oauth-server","version":"2.0.0","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/seegno/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.13.3","oauth2-server":"3.0.0"},"devDependencies":{"body-parser":"^1.14.1","jshint":"^2.8.0","mocha":"^2.3.3","should":"^7.1.0","sinon":"^1.14.1","supertest":"^0.15.0"},"engines":{"node":">=0.11"},"gitHead":"844d602156f4a11c09a6e3c1d63da6d2721e7e36","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"express-oauth-server@2.0.0","_shasum":"57b08665c1201532f52c4c02f19709238b99a48d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"57b08665c1201532f52c4c02f19709238b99a48d","tarball":"https://registry.npmjs.org/express-oauth-server/-/express-oauth-server-2.0.0.tgz","integrity":"sha512-+UrTbvU7u3LVnoUavzO7QJgSqiEZREKprCZYrDEVoSszrO4t8f/BBPbY3hQOuuatoS0PgDFLaDKQsGNtAgPm5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJgJC7upXBHehyKZ9ieB5iteol1jUN5tIktrxcYcjjGAiEA50feWx5gDwhaqxsNvizx1yHGp4veD+ol7Egi1vQht24="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"nunofgs","email":"nunofgs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server-2.0.0.tgz_1502306634036_0.9762449329718947"},"directories":{}}},"readme":"# Express OAuth Server [![Build Status](https://travis-ci.org/oauthjs/express-oauth-server.png?branch=master)](https://travis-ci.org/oauthjs/express-oauth-server)\n\nComplete, compliant and well tested module for implementing an OAuth2 Server/Provider with [express](https://github.com/expressjs/express) in [node.js](http://nodejs.org/).\n\nThis is the express wrapper for [oauth2-server](https://github.com/oauthjs/node-oauth2-server).\n\n## Installation\n\n    $ npm install express-oauth-server\n\n## Quick Start\n\nThe module provides two middlewares - one for granting tokens and another to authorize them. `express-oauth-server` and, consequently `oauth2-server`, expect the request body to be parsed already.\nThe following example uses `body-parser` but you may opt for an alternative library.\n\n```js\nvar bodyParser = require('body-parser');\nvar express = require('express');\nvar OAuthServer = require('express-oauth-server');\n\nvar app = express();\n\napp.oauth = new OAuthServer({\n  model: {}, // See https://github.com/oauthjs/node-oauth2-server for specification\n});\n\napp.use(bodyParser.json());\napp.use(bodyParser.urlencoded({ extended: false }));\napp.use(app.oauth.authorize());\n\napp.use(function(req, res) {\n  res.send('Secret area');\n});\n\napp.listen(3000);\n```\n\n## Options\n\n```\nvar options = { \n  useErrorHandler: false, \n  continueMiddleware: false,\n}\n```\n* `useErrorHandler`\n(_type: boolean_ default: false)\n\n  If false, an error response will be rendered by this component.\n  Set this value to true to allow your own express error handler to handle the error.\n\n* `continueMiddleware`\n(_type: boolean default: false_)\n\n  The `authorize()` and `token()` middlewares will both render their \n  result to the response and end the pipeline.\n  next() will only be called if this is set to true.\n\n  **Note:** You cannot modify the response since the headers have already been sent.\n\n  `authenticate()` does not modify the response and will always call next()\n","maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"nunofgs","email":"nunofgs@gmail.com"}],"time":{"modified":"2022-06-17T22:28:51.599Z","created":"2016-02-09T20:18:57.884Z","1.0.0":"2016-02-09T20:18:57.884Z","2.0.0-b1":"2016-11-11T12:26:53.350Z","2.0.0-b2":"2016-12-21T19:49:36.662Z","2.0.0-b3":"2017-05-02T14:23:19.172Z","2.0.0":"2017-08-09T19:23:55.082Z"},"homepage":"https://github.com/seegno/express-oauth-server#readme","keywords":["express","oauth","oauth2"],"repository":{"type":"git","url":"git://github.com/seegno/express-oauth-server.git"},"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"license":"SEE LICENSE IN LICENSE","readmeFilename":"Readme.md","users":{"thinhair":true,"nunofgs":true,"martinspinks":true,"tayutaedomo":true,"liuyidi":true,"mgocobachi":true,"goulash1971":true,"shanewholloway":true}}