{"_id":"@authing/express-oauth-server","_rev":"5-7f3512d8485328184b4d77e1012457ab","name":"@authing/express-oauth-server","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@authing/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":"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":"ae43fe1d0645939dda7fc467c9c42e9b1e49885a","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"@authing/express-oauth-server@1.0.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-JfbojSrk09oAtjQiqXKih6EkYdeWW8sCiAy+bVJYAWwdh78mvi6ubZP1s/fB6Uta+gZsxlmI2wp4EJGlCJZuhw==","shasum":"7e167acac14334c023e65c44aca4743a43b370c5","tarball":"https://registry.npmjs.org/@authing/express-oauth-server/-/express-oauth-server-1.0.0.tgz","fileCount":23,"unpackedSize":43213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd56WwCRA9TVsSAnZWagAActUP/2/uvhsakpKuHg967YJB\nO1P3rOc/7Xt662rcx/1J4gWZf0ofYeelYwGHdR2nSmqZit8WSB2PTx5u/bfm\nJ6tfvH1Pd3PBAh17bVIxrEFBkw+BnXJnswrbUugzmewDVy+rSVX9cTTDZwLK\n5csfkOl5a9XQ/lR/IjGdu1fQLjo0KirsYeVgW2I6Qn1n0wQ7e7tKWVQJLqRm\nZDQyJTzOIgLevv/JOqea8xcQVeq33poY73+bc0y7KkcbJ3mN0A0fHecDHFRX\n87xFnk1zabaFtaAWEv/FVXQOsCuz0D62JKeaBLU2xslyOL03Dbqai/6adBGC\n06gwa/8mb2WP0GxrTJ1avGSJhYakug/JAUoHGIt000/x/19zWid99456c5vk\nzovsgMp97kju7M6+lhEtN1LeTKSiVxhOdsWmOmxLFeaaUa7zz2GXjQfsNVLi\nmadXfrYYsnxPGX9cDXKfarl/8XvJceWvqrxHR4xYtQRszvc6PGYKy3qszSP6\nR0linva2EEyw63ihPNb0sv0F+XpdPfjhBe2nJiA1Of734U2hQTBZTtVT9Tms\n50UN+xwmtJzQ12S8jCuCkizsQOPOfVjvngrQ2pdO4yFH+5VF5ExjQnJsmUWi\nsK3rStImS33MM4cXOVMhJ1dQhM91Sa2Ye9sUnMgt3nfwDfCWAaoe/dCud/uf\n7v9J\r\n=nJN5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKiH0Kco3b7DaSmCWEF5WVY1QSyXNTpG4GfwihItoaVAiEA8/RCd853pY/lnTQoZVt4dNh8Fy5e27NdXlbA94cP6Rs="}]},"maintainers":[{"name":"authing","email":"xieyang@dodora.cn"}],"_npmUser":{"name":"authing","email":"xieyang@dodora.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_1.0.0_1575462319567_0.2807188440683912"},"_hasShrinkwrap":false},"1.0.1":{"name":"@authing/express-oauth-server","version":"1.0.1","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":"f01b5771d98a61d381226fcb221903351aef3e8b","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"@authing/express-oauth-server@1.0.1","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-MPs7e6I1iWLps2jvPb8hojp75S7LxUKAp6ko7jyGICvW5M4oJQOvjUckz+26/dINclrMk1dopTX3thD8AVNSRg==","shasum":"24d70d3ab7a78dc88e49d3a3fd674f0cf9f67995","tarball":"https://registry.npmjs.org/@authing/express-oauth-server/-/express-oauth-server-1.0.1.tgz","fileCount":23,"unpackedSize":43247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd65szCRA9TVsSAnZWagAAvvQP/RpzUzBy0iX5sLZxBQWD\n4ravV4dHbDN2t11fanAUDDI4CFoN3GBIKw/WgmIr5Z+ADGgzJDGmNLjhb8QA\neVlJReyxz+IAU1UBpWFiAGfvVjaH5dHGJ9YJM9SrkSZyuhR96KgC05BrATnS\n1Cd4RsHr12ZpOp8XQKBiqLn5vMbjOxDmHB1Z6Z3gOAk/9Fea1WmXLbPn/OSN\nTfMWarO0ijoaSlQ3b9Bvl+keptJcEsYXkk4f3a6jS2gaJtT7HaDfw49iUkJq\nvL2WvIRzXhYEDc0c/8ODKCxHYiJBxRJxwq0fCDR+chN1ZimzNdx+gfPqEnXT\nVSof7vzRLsNgq0lhjj2kd1CGLcwa+H+DhoCNAyIMNcjXzJxPjVHEF7SOjqIE\nibkf8JsFG24Nz3rm+U77VOixABbdH8oAQm2CPX8O7KbEaExIa+fJVC1pMF/O\n3QTZY1S+E4PGeyvAJ7ndQoZnNaVoYN3ogpJ8bCLKtGHpua/jyrTEkkc8kEKb\no4AEqHzFaqvPoHgJP5Nnx8S9BDwXRgV2lf7A4IzYmij2lwMXJslq59QGW5JA\n9VmrPWFnBgeF2qMqXeVKUWf8U+DKbvIsLT/X/FUQyN1TgD8ips8aV1NJmMEw\nrZFDju45He8UnWZC6LyrG4iQxdo3Ac7QrXSuCAA1DdrXhfUaQedWiLnX3TtV\nyz2N\r\n=+sfc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBqrhiFS76S57ZztYgQ4G4F0Jtms0hsK/9tdcWXTYGwwAiEA20/WKUV5k4TZcdLjZqMjpZt+mxrCoKHpPoMtVV4jEf8="}]},"maintainers":[{"name":"authing","email":"xieyang@dodora.cn"}],"_npmUser":{"name":"authing","email":"xieyang@dodora.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_1.0.1_1575721778661_0.5863231874408812"},"_hasShrinkwrap":false},"1.0.2":{"name":"@authing/express-oauth-server","version":"1.0.2","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":"9722c674b615944dbdec9a1b3660f77cc95b8f2f","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"@authing/express-oauth-server@1.0.2","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-JwPZsxnQbFnvJDggBUFBS/18S+EfZ9gkw50T/Hsdt/8Xr2mhgdWX5lZD6CJpWHi4B/c97qnVU/hASuCERwevuA==","shasum":"4c1d57e5c6c0e0e7a836232d6a32a4618fa06cf8","tarball":"https://registry.npmjs.org/@authing/express-oauth-server/-/express-oauth-server-1.0.2.tgz","fileCount":23,"unpackedSize":43263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd65v9CRA9TVsSAnZWagAAJO4QAJwsLv/+N99ikj7V0gYw\nyVSwbKcU3QJ9pOKp3D5gWWxhNxdZt0UU2tct62EWn0jycQazOgImwnMl6eT5\n4NWhKOp/d/RhhCtmC5RvEtxNYFJ/qJmhCLM20MStHp7xy3gE5MNb9mKr+A7H\nQ1LqwtI7vjGegZw191UYAxeVDs5FhNhknGq3x2vFn/Vc6rYz/59VCUwXp4ct\n37eRTpzFxjnpavmhUqfk9SsrxDprlRLwZuRluUyb+9DJ2ZCWTIZbsTSkcdD5\nazY+K/oJ7gVVQCYpGICx2ZGO7UFZWY88tn8qYLCqGexHrNCa/tx9CjFeMmi7\nnd8ywHyfFPX78gGZd7+XNGsq9GAiUiHoe4o1QCASGT8Nn+p+XX/GbYE0Bl8T\n1vIUxPlVJWQB2UVtwvYa5LD+QR5iZ8msS/YVmID6oJzKsc6kNRSebymMGCs7\nMZ7zxTtqNYa+46T+/o07mZzs0yLI4xv4q/+pJCq22or8cmK+Zdlvoyyr6mY9\npG7EFlQS+erVw745kphLa8JurfvYeKspifL+ssPBQbSli3ppIppqU/46MVoK\nSceFwanIwn+BOFYImahehV3HMRpX9AWgE2tY2hprV/iAeQj1oZQ46Y5gFqSJ\nqEQoTOOYEgpdJVr6hC6EzWckDcnOqECQBvbq17tGlNbz4sIQZ/yBdFtD7CVO\n6Hhv\r\n=0IQF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXJKxuB2VjEE5DYW21Uu3OD00uxFZhoUomMm1QpH/TtAiB7SDcwkhDc85hfBdzv1UlOvPCsWTQvKZJdTTgDcJResg=="}]},"maintainers":[{"name":"authing","email":"xieyang@dodora.cn"}],"_npmUser":{"name":"authing","email":"xieyang@dodora.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_1.0.2_1575721980760_0.34113306074171623"},"_hasShrinkwrap":false},"1.0.3":{"name":"@authing/express-oauth-server","version":"1.0.3","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":"3a276f56415b3bc9d0ced6510068e9de087892d1","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"@authing/express-oauth-server@1.0.3","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-dePc7kYk5keaS90mceaNJ+e7JzlGe+jGM008C3Sj63THrTUh93mCe+HiWGuCx4jZlJi91JPgrzTExOzbAuaRVA==","shasum":"cbaf3d1d474551af40eb6c5a6a18a0986cfc1d59","tarball":"https://registry.npmjs.org/@authing/express-oauth-server/-/express-oauth-server-1.0.3.tgz","fileCount":23,"unpackedSize":43251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGu8zCRA9TVsSAnZWagAAwOMQAJQy67e5pk4m+4p0IGG3\nnobjxcIref2LGVY+TWnYCr/hY/T7OvAZ9fXtnfN9xJon+o3lZXYkiB1B4JZR\npntjFRHwCAilRdt7kq7wPp2JFgpgz+icSthf+kRh/ntV0ZB4ZxVXXmBTDLYY\nbd9kbRAsdILevOcGv/JIuVtA+Q9TNFV9agBRuDD3LtbIvZmjP53AlGkie6AW\nYFse/7oYDR5D/RV2xKp8cvE3dsaKbIxS+nNGx8b8ninRaZnn1EeVxZBsWbKy\nOoQzIACyy9q2GnFgZYIMePaohivGXaR9/HPHoAHwwIz87Liw7zHCg8JiDjUh\n33X16BrSeZYHh5RWvYNmkB91Eiw6rbFFD9UHeALAY9O7qwuSmb7e/iPIvvwR\nwAwAK5iAS4D0DD0CaBw8FmCNZQe3kmJqq/ku/aV3fjEVeW9xkem5SjWrtDCJ\nj9g1g5MYJgE8LmdxUVe42SvQES334LQp0UK5699ZQAPfBlarbCktRrSRhnfk\n207XM7lqri0euZ5eiN3tRU7+GaA87O1TR92lvVfflfWfhYXa0HfVCS/utk+y\ntLsMNov7KQlqLQCxSnQ0TSUBggOVSN+sGhNRnAF2jrF1NsaEfz48ZEm9KSN2\nxykSFZrNCvatsmF1A+eOSV1Tz41K9Hd087XvdAPbGermTK1bgXfXDeay6H18\niI3d\r\n=IRoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzDQPgajozWFqs5b9Qv8ook2p9G0BJl0ZUqX94VSLd0wIhANy0qloHl2I0QtfJ/jcwPk8EAUyFxtm/Siln5gecdHcf"}]},"maintainers":[{"name":"authing","email":"xieyang@dodora.cn"}],"_npmUser":{"name":"authing","email":"xieyang@dodora.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_1.0.3_1578823475345_0.7386149126292583"},"_hasShrinkwrap":false},"1.0.4":{"name":"@authing/express-oauth-server","version":"1.0.4","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":"5c35cca19eec81122bb78883f3490c7ee281714a","bugs":{"url":"https://github.com/seegno/express-oauth-server/issues"},"homepage":"https://github.com/seegno/express-oauth-server#readme","_id":"@authing/express-oauth-server@1.0.4","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-AfyjqS9xhcQ1+ywpKKfyVs7RGQooHwStLbr4iQd6Mfdf05ijLfFcpIJVSl83x6BNkUBV8OLOlR2vTS6a0kNLjQ==","shasum":"6559181bc8843bf424cf63f8af45ba8efc67dc43","tarball":"https://registry.npmjs.org/@authing/express-oauth-server/-/express-oauth-server-1.0.4.tgz","fileCount":23,"unpackedSize":43302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHAQeCRA9TVsSAnZWagAAJnIP/39k0VHeiUa6g4RoGSIK\nwCaT3v8lQDOY8grX/5gyDUv+LPTKJrWbBsILfepPX5onEkPC2a1q6SBmd6WT\nA1dQfZeyXXZ4PwmZmbqliJrSEYwjTvkK1UI2X+6S9zrYmhF1TSkq1E3mWzq5\nfO4WoAI98bkpk/l9R14iFHHW57sTKdjexoefauHE0bRQ/gADCqANz68BIp74\nBgBC96sjogE36aZGYdwamgigYas8hOFaZ8CWqYqePNsvbsnaWlUygdempGvG\nLyjlpcaLNSkcdFrc3xL3MVdNf6wFkcRGt37iLzDtyimtrGVUriq/iaxefOh1\nB82rXrgz2yeWTfkU0Ad9a7g/1d3y7LU3iGtdL4k877bqkHe43nucsAEU7FBf\nL1mDd9Um9K75ZKrCoDsSASn4iTVC1fj+kPXCVbQmSq5hPjMm8HQtJyLpwubi\nmTXLArK/HIAByrKeGjz7T5oGx+72wXVca1dFnMDy3r2Tqv/yeSmKsbogUv/F\n88NcXpKdFxeQKbXFOT+Dy5HJkMolgU5MsjPwjXPz/kRKdYs5m40WBQe0xPE5\n06kF0Iz1tWIT1pekJvM08/OKBeGGB3BlGHM7UGx4KgmnRkqk9K8yPyR+5w48\nZ0U87fvgLU+/3XsKP++PEtvPjGZfmpEaRLFHSIZ280EZ1wMFgLflzJDgN+aI\n3vZZ\r\n=+84x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsYyYhI0YJgWjR3mvveu7jG2mO6YE6n/gsFM7L4Sun3gIhAIceWn+jOCAeVSRXHlO6FRoNQaZJ7xHmgLYICNkz63Mi"}]},"maintainers":[{"name":"authing","email":"xieyang@dodora.cn"}],"_npmUser":{"name":"authing","email":"xieyang@dodora.cn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-oauth-server_1.0.4_1578894365655_0.19576367954215734"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-04T12:25:19.539Z","1.0.0":"2019-12-04T12:25:19.711Z","modified":"2022-04-04T16:31:49.330Z","1.0.1":"2019-12-07T12:29:38.840Z","1.0.2":"2019-12-07T12:33:00.912Z","1.0.3":"2020-01-12T10:04:35.486Z","1.0.4":"2020-01-13T05:46:05.829Z"},"maintainers":[{"name":"authing","email":"xieyang@dodora.cn"}],"description":"OAuth provider for express","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","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"}