{"_id":"@brucexu/express-oauth-server","_rev":"3-e1a9d78b96b0998258b2d81ff66e2c4e","name":"@brucexu/express-oauth-server","dist-tags":{"@brucexu/express-oauth-server":"2.0.2","latest":"2.0.0"},"versions":{"2.0.0":{"name":"@brucexu/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/jackdon/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"contributors":[{"name":"Bruce Xu","email":"bx@brucexu.dev"}],"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.16.4","oauth2-server":"3.0.2"},"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":"ffbe4523f8d1f3ddd38afb11784e2ecacb9d8509","bugs":{"url":"https://github.com/jackdon/express-oauth-server/issues"},"homepage":"https://github.com/jackdon/express-oauth-server#readme","_id":"@brucexu/express-oauth-server@2.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-K+TKkCatI6Ij5eBvsFpvtFcz2JEJrjec135vlHJ//LwQToU2H4HIRSfV1rPrn5uS779r7hHixYnnuvLQxlPayQ==","shasum":"2cc5870e7e07a5d8dfb081477a606f00f72d1f72","tarball":"https://registry.npmjs.org/@brucexu/express-oauth-server/-/express-oauth-server-2.0.0.tgz","fileCount":23,"unpackedSize":43264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+rL0CRA9TVsSAnZWagAAt0gP/jy2qzwMyC5oxoxO+lnP\nzIXsRetU2lHwY3PkLzIh/SXRVHX81EETkDHZD9j/inKggO7hmHq1K/jl01v7\nCgQJu/NRSDMaXjYQrsX7N+J/anlyjJr7dUpkpiBx2SLNzBbUutEouG1ugqOy\nMG8bp9vmTGzGju6JFbmkFIVHNdCiK3RT77/MmDAgkfiNLc8wYQ/3jWL8RnJf\npDQBamDXUi3LO3EgKzbenncsN2qOTO45Xel5qiaeQM9pmsT8QtRlVoKFORDI\nNeztQMkZ62epnGBlPVgMjqMw/r30AcfnzYX8cm2+8ABcEBkBFVVhPUTAHmgF\n3LfHaer/JYgD36VE85gGcQ2kPipHXgTepRrpq+5Hw6Rib3XBtrxs3ldgYXgO\nvG7n51OZAxLl4MfATFUbzDmamBF0SeGU+MF8yE1c1GOA/ilGo3Om3Fq7Cng+\nBee8Q3rbeTJKTpD3JFkWR+ja0y4m9ekIDICuYcANEePFi0y8clLkMaYCZO0H\nWw1acg76zOfgUkF2EvRYCl/X4H/e5wfgA2jlaOOo62VqGetu2uGJyG1Rm1J9\n5FYQYRgiTh8YHQgFmBe9bVMVZmmZBFNp1zhtLwKcw4K3wf4OOZUd8Rzq0T1o\nozJFZKNA1NFKIjtq4LlANReN3nH60Ybkc5s3cHo6KjZqo3OzDK7qrf87A9Yq\ni1sm\r\n=QH8C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9nPlo3VFLBM2shZ5C5fns0IMNXLZ6Ad0IC0dy3riSqAiByUgVgkBxg0liNrwLT+owLPwe4iO62Ocbov/EvQ550+g=="}]},"maintainers":[{"name":"brucexu","email":"xulingming@xao.ac.cn"}],"_npmUser":{"name":"brucexu","email":"xulingming@xao.ac.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_2.0.0_1593488116089_0.3876939794628096"},"_hasShrinkwrap":false},"2.0.1":{"name":"@brucexu/express-oauth-server","version":"2.0.1","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/jackdon/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"contributors":[{"name":"Bruce Xu","email":"bx@brucexu.dev"}],"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.16.4","@brucexu/oauth2-server":"3.0.2"},"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"},"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","readmeFilename":"Readme.md","gitHead":"ffbe4523f8d1f3ddd38afb11784e2ecacb9d8509","bugs":{"url":"https://github.com/jackdon/express-oauth-server/issues"},"homepage":"https://github.com/jackdon/express-oauth-server#readme","_id":"@brucexu/express-oauth-server@2.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-B7O/Mr22wh+xhgtWavb+EB59EFV5z+9eR5+7zOl7e4xdaHR2jJFcaEMyMkuqwIhrZmRnva+8Dz80YfF3U0NpFw==","shasum":"c636fae77eefca529b76b50b8711c463d34764a1","tarball":"https://registry.npmjs.org/@brucexu/express-oauth-server/-/express-oauth-server-2.0.1.tgz","fileCount":23,"unpackedSize":43273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+xMcCRA9TVsSAnZWagAAa4YP/0dFOyrCvuft2Q9EGztC\nnkOo/rZXI8uWF67lIyRe4/+Adv8gw932fZfQ4N1fT+cBYPqbLbaSJSr25SwM\n0XUnhF8mReQZIFtUP75rSs97qZj5lpVTE04ZSdf0s0ix3Sz6NOwuTEuBy4lE\nevWNrQD41s4OEIqAcEKLROtEWjtyVI3QZiLjMpn6U9dQx8mZhMJPunGePZbB\nL3S8nspQoit+j9rCjbUm5x3odmLIiE9qfUVzIXcwruXdqRyIkjV6gJHWwc0O\nTHws3fs4P2mbDuzLU6oWcCkfwO+Htxl4tm4cHSJBq2NlvPLuPbKz5M82EwO3\nBSVfJyi8gUlbYrmmL1ttM8eEjQjoBtDiipgEMRb4gVgsu+MJNH/eLFu1hZV2\nZScDJNTblyxtoJ+8vcjrfvipWSvSTTh5JTwwDJO7vbdt43PFQv5BixnnzXir\nov7GaNWOE0OqcKa75t48szTae9bmxEabqZluM7CU5ThtCY0YzUIyblbhAClu\nRTP0kcGmz/W8I7OXNaGKf3DmJUjT8esiBpGjkYWnr1MiwdLZKUn0a9VNzHi4\nUYNqaJOQevR+G0Rhr+Z9VVuWRfXYGc3vP2ElYTP7smo8luAaPXrHnbLOmxmE\nmejWT6e3dggY3glnYZZLZ4gy3yDsvu031mJvInCaJNCGAyijUkL0IjoSakAq\nE8+K\r\n=JAf1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVEnXVg2zyg5L2Ygm96zxCS4+hu1IIOD6AJGyAURC1bAiAUyVCiAEMVPH6KRVyn+/rd9qo/kWiLbFHp4RQ5JyzY3Q=="}]},"maintainers":[{"name":"brucexu","email":"xulingming@xao.ac.cn"}],"_npmUser":{"name":"brucexu","email":"xulingming@xao.ac.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_2.0.1_1593512732181_0.0801210786312907"},"_hasShrinkwrap":false},"2.0.2":{"name":"@brucexu/express-oauth-server","version":"2.0.2","description":"OAuth provider for express","main":"index.js","scripts":{"lint":"jshint .","test":"mocha --recursive test"},"repository":{"type":"git","url":"git://github.com/jackdon/express-oauth-server.git"},"keywords":["express","oauth","oauth2"],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"contributors":[{"name":"Bruce Xu","email":"bx@brucexu.dev"}],"license":"SEE LICENSE IN LICENSE","dependencies":{"bluebird":"^3.0.5","express":"^4.16.4","@brucexu/oauth2-server":"3.0.2"},"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"},"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","readmeFilename":"Readme.md","gitHead":"ffbe4523f8d1f3ddd38afb11784e2ecacb9d8509","bugs":{"url":"https://github.com/jackdon/express-oauth-server/issues"},"homepage":"https://github.com/jackdon/express-oauth-server#readme","_id":"@brucexu/express-oauth-server@2.0.2","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-q+KTDHM3AxMHaSh5ZPOzT1cGi5SDQSqMHMalC7xXh1SK23h+LqU/SrXyyqPaUWOrr4Vgmd4ak5MIPAfFwEY2DQ==","shasum":"7e02618f3a9dde6e3e9b69c40959ce422ea9e1e2","tarball":"https://registry.npmjs.org/@brucexu/express-oauth-server/-/express-oauth-server-2.0.2.tgz","fileCount":23,"unpackedSize":43363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+xRRCRA9TVsSAnZWagAASwAP/AyzksiXk40wrHrJYNJO\nBiSwzhhxEw+B6LXpdYWieAdN515VduwGGDif3wuaRcVmcQ3fkuXmAtZ/9Hym\n5wO79CxfiIenn9VX+khnPMy4AcsJ0ZnHGTDmk0oZmyNi9LMNiHtfE7eblJc9\ncvvkF8dNXRoOYgcZC2R1KRPMO5S5ns+FCq52klsdUkS88ALVhTSGhsCBu/+I\nbsqDohosjhuasBBPzbUck5hAc5eMdmN/RsW+mKaD2Q2K2PHzaq6D9bb7e80D\n06P7a5H9OI+lAMbq50fG9SpjDsntcGYM3z7c7wW7Kfdh6AoRwCm5wCPHoHxM\n5wgIkvOhQfTXroQhNCotnTrLgVGXUGr6vq7nrnZkWNMz1W/f6L2d27uf3EP6\njwCpV7TUnARyPw8eHwh/DHpAgsgmeQckdt2os/Je4oS/hL0UvWBY82usvDAb\n6fNrGGj9Y+O2yGMgfDt+VkC6eDprThdwoPve+50f5Z56TaHyeTh5Gq6GkTd7\nK3WWAQOzQ6dE65T9E0FP98tJOYg6FJzCSkAixSGItGm6MTis8UlD5qYnHeOh\ngjn7ewMsr326MG7zgT9oHkAA7JEI5ZWy2gKHZCYqkTXINWHt9C2TRMLThnlo\nL8EHj2/UbITcRefsxD3BxSnG8JpHH2VEVQRLUj2LUfCRLAeS7sHxzGV+B0yU\ny3AK\r\n=MMhE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFc9a1vyA71J5I+osbvVtseVm9MPtKMu65bq6t4fZREyAiEAm0bh7kPUSQudOudTTncgRKc8WhxIUsejWQnhxFlAk24="}]},"maintainers":[{"name":"brucexu","email":"xulingming@xao.ac.cn"}],"_npmUser":{"name":"brucexu","email":"xulingming@xao.ac.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_2.0.2_1593513041181_0.3706286592015071"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-30T03:35:16.046Z","2.0.0":"2020-06-30T03:35:16.279Z","modified":"2022-04-04T20:48:15.439Z","2.0.1":"2020-06-30T10:25:32.313Z","2.0.2":"2020-06-30T10:30:41.345Z"},"maintainers":[{"name":"brucexu","email":"xulingming@xao.ac.cn"}],"description":"OAuth provider for express","homepage":"https://github.com/jackdon/express-oauth-server#readme","keywords":["express","oauth","oauth2"],"repository":{"type":"git","url":"git://github.com/jackdon/express-oauth-server.git"},"contributors":[{"name":"Bruce Xu","email":"bx@brucexu.dev"}],"author":{"name":"Nuno Sousa","email":"nfs@seegno.com"},"bugs":{"url":"https://github.com/jackdon/express-oauth-server/issues"},"license":"SEE LICENSE IN LICENSE","readme":"","readmeFilename":""}