{"_id":"@bongione/seneca-app-token-service","_rev":"10-9c17300de3958cd3faa0aeb2a22ccdc5","name":"@bongione/seneca-app-token-service","description":"Seneca plugin to verify app tokens and token generator","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"@bongione/seneca-app-token-service","version":"0.1.0","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-register --recursive"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-register":"^6.16.3","chai":"^3.5.0","mocha":"^3.1.2","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"_id":"@bongione/seneca-app-token-service@0.1.0","_shasum":"d9e1edf6cc8e0fb6b484c883ea8d857f0194ebde","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.2.2","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"d9e1edf6cc8e0fb6b484c883ea8d857f0194ebde","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.1.0.tgz","integrity":"sha512-a0FEz33WWXoFG4O8zDh+01c9hn81ovIPulPCuFk+YUX2m6pqgGyDPHMM0VYzFFFhYtTu8chbIaOygaM7C2ZUzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRjS0LAz2mqCnVD6whWbFFT6blwlAxEw6TSnsjHbU/RwIhAKy23Rdq3K53sel48domDoRm7fe7/aSQf3CYEFtjZu63"}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.1.0.tgz_1477499668733_0.5928320193197578"}},"0.1.2-n":{"name":"@bongione/seneca-app-token-service","version":"0.1.2-n","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-register --recursive"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-register":"^6.16.3","chai":"^3.5.0","mocha":"^3.1.2","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"25ef91fca8c0e90ab6afe0d6a7e9967bceb161cf","_id":"@bongione/seneca-app-token-service@0.1.2-n","_shasum":"fbde5c17701acc38722dff127af2aebf2daa3b43","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.2.2","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"fbde5c17701acc38722dff127af2aebf2daa3b43","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.1.2-n.tgz","integrity":"sha512-3mIHOKMkKILwXIarmivwhg4UYHoZgwqYKnhMVcU+h+gxdoRArkD4LWLcO+OClACfbJxdNJwvEAXJQFjRSVvBhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBzanR488P5x1dy7MOXER+o8GkDenfX5PijXfJ/fZcTAiEA/is1zvsmO5ENQJHhLHKvQsDYrmutsUwtyPICnOnnsIE="}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.1.2-n.tgz_1477921862577_0.03977128001861274"}},"0.1.2":{"name":"@bongione/seneca-app-token-service","version":"0.1.2","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-register --recursive"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-register":"^6.16.3","chai":"^3.5.0","mocha":"^3.1.2","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"25ef91fca8c0e90ab6afe0d6a7e9967bceb161cf","_id":"@bongione/seneca-app-token-service@0.1.2","_shasum":"4835edf67277c3c368b71eb896b43b6b79472f51","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.2.2","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"4835edf67277c3c368b71eb896b43b6b79472f51","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.1.2.tgz","integrity":"sha512-7kHgIIXc+XOozSVPLuhR1EYaIpm8sIKJbBLhPlwqod0v7RYAE7oqCQBxDfkuJ84Iz7lHPzaBZ8thmKe7hyzAJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4sbdPiniye4yo04GxCAdqVmZB8UIMVzgN0zpK7VOQvgIgaPvW2LkPre7cTEK8puF/9/ZXUGVU3jjeYJHUI7YrfOk="}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.1.2.tgz_1477921977847_0.042257987428456545"}},"0.1.3":{"name":"@bongione/seneca-app-token-service","version":"0.1.3","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-register --recursive"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-register":"^6.16.3","chai":"^3.5.0","mocha":"^3.1.2","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"b0e4049f2ad842bf0fe1f7beea22d947b96aade8","_id":"@bongione/seneca-app-token-service@0.1.3","_shasum":"95ca05a5c00a233242178b8cd03a6925a78a1f34","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.2.2","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"95ca05a5c00a233242178b8cd03a6925a78a1f34","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.1.3.tgz","integrity":"sha512-UI7PYQS2LoIwXmYtPzg5C+rrb56qgAh7W3ZVtQuuIYa+6Fi0ed0AE6YqVh+ZAJCucw1yVpSwLmmzLlm7YV13fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDF1HOyzhg4G9S3URtlMxBO7FtANM2DoEW+Oc9Lt8zrFAiEAmcAp7N4hr0NqvivM1bHWd8TFetB6Cw6/tjhXHv1ByI0="}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.1.3.tgz_1477993676700_0.27814171370118856"}},"0.2.0":{"name":"@bongione/seneca-app-token-service","version":"0.2.0","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","lint":"eslint src","test":"mocha --compilers js:babel-register --recursive","prepublish":"npm run lint && npm run test && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-preset-es2015":"^6.18.0","babel-register":"^6.16.3","chai":"^3.5.0","cross-env":"^3.1.3","eslint":"^3.9.1","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.3.0","eslint-plugin-standard":"^2.0.1","mocha":"^3.1.2","rimraf":"^2.5.4","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"f52bab0e6d6614ec1d16960826e85d1c45f10a05","_id":"@bongione/seneca-app-token-service@0.2.0","_shasum":"c414fbcd764e3867002c60c4b37e046dc2401d82","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"c414fbcd764e3867002c60c4b37e046dc2401d82","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.2.0.tgz","integrity":"sha512-guw3TuSHa5ggSKx233Lo9wb+Owhhv2A6nxbCGCiTc2ghWWkQRE/dJb/wo3Uz9hBMKz0ZNYuSyKdGal02kA6g4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1oJyvr1hSk+aEwbXZFfJAXkUpbi6LkLt9zkygPn+tGAiA0zIw5z9QAM+Q4NRSUlNMWousKCrqoM56pTS123R6CfA=="}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.2.0.tgz_1478179631136_0.7842429946176708"}},"0.2.1":{"name":"@bongione/seneca-app-token-service","version":"0.2.1","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","lint":"eslint src","test":"mocha --compilers js:babel-register --recursive","prepublish":"npm run lint && npm run test && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-preset-es2015":"^6.18.0","babel-register":"^6.16.3","chai":"^3.5.0","cross-env":"^3.1.3","eslint":"^3.9.1","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.3.0","eslint-plugin-standard":"^2.0.1","mocha":"^3.1.2","rimraf":"^2.5.4","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"d46aa55b07afc2ba540c69d09d78a5e1cca65a98","_id":"@bongione/seneca-app-token-service@0.2.1","_shasum":"361fef555872066702aa9177084bfe34eaabbf12","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"361fef555872066702aa9177084bfe34eaabbf12","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.2.1.tgz","integrity":"sha512-8zxAqPwK9nG9OHCg1TZ8LHA6jMUk6xTdF1B+iikhwqT6HNxmgC7allS7ctXhqsu2p9+FmFO5j8fFWMmzdSpXmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqNfUNBueLccmqOjZk74mjlXrtBr35zwXzeuDt1RaGOAiEAmJa4Rz3+flUUB13hIsOwbmMEKm1dpP4lvLhXQ9rSKMk="}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.2.1.tgz_1478264536454_0.38519208831712604"}},"0.2.2":{"name":"@bongione/seneca-app-token-service","version":"0.2.2","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","lint":"eslint src","test":"mocha --compilers js:babel-register --recursive","prepublish":"npm run lint && npm run test && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-preset-es2015":"^6.18.0","babel-register":"^6.16.3","chai":"^3.5.0","cross-env":"^3.1.3","eslint":"^3.9.1","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.3.0","eslint-plugin-standard":"^2.0.1","mocha":"^3.1.2","rimraf":"^2.5.4","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"7f4b921861a566c056fd7fae3c727eaeb4a44c6b","_id":"@bongione/seneca-app-token-service@0.2.2","_shasum":"6a9959c5ce88d8cf2b502880d1ae15451b6fd9d0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"6a9959c5ce88d8cf2b502880d1ae15451b6fd9d0","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.2.2.tgz","integrity":"sha512-udFoqlJ6nOdOw1DF9MIx0HNnImMA7zbqVuU7s0HWnXNRe5YWfa6SF9ZYfTkfM/BMZzATYVJZIbB1KqqIXPykMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsTVeAP4t1O0KOOistb8iiDPNoXLfMX/6fGV/s2fOLPAiApUqnOPt8roh6UpQA+CKc+U7ShkFzH3uodfcKSdZBcZg=="}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.2.2.tgz_1478265159137_0.61997752613388"}},"0.2.3":{"name":"@bongione/seneca-app-token-service","version":"0.2.3","description":"Seneca plugin to verify app tokens and token generator","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","lint":"eslint src","test":"mocha --compilers js:babel-register --recursive","prepublish":"npm run lint && npm run test && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"keywords":["seneca","microservice"],"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"license":"\tApache-2.0","bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-preset-es2015":"^6.18.0","babel-register":"^6.16.3","chai":"^3.5.0","cross-env":"^3.1.3","eslint":"^3.9.1","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.3.0","eslint-plugin-standard":"^2.0.1","mocha":"^3.1.2","rimraf":"^2.5.4","seneca":"^3.2.1"},"peerDependencies":{"seneca":"3.x"},"dependencies":{"moment":"^2.15.2"},"gitHead":"7f4b921861a566c056fd7fae3c727eaeb4a44c6b","_id":"@bongione/seneca-app-token-service@0.2.3","_shasum":"07eb0d539f6ca483ceb06b22d13d40af55089fa7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"},"dist":{"shasum":"07eb0d539f6ca483ceb06b22d13d40af55089fa7","tarball":"https://registry.npmjs.org/@bongione/seneca-app-token-service/-/seneca-app-token-service-0.2.3.tgz","integrity":"sha512-EvlopgG31U1ugwrhvlrF9365EMA9XL9gVrfotxo/wgkO2cGVssu2V4R9sLPdIdlSwwB0kbgGsM8rX6Emia/ocg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsHYfijmqBbgMF+RRUGJW3vaSKlcDUyiruVNI32GIwEQIhAPsnBakvtKRbeBo8OaLtRrrhiehThnIfotY674tPnXM4"}]},"maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/seneca-app-token-service-0.2.3.tgz_1478265365125_0.37930645421147346"}}},"readme":"# Seneca App Token service\n\nThe package provides utility functions to create a microservice that\ncreates app tokens and allows verifying them by other microservices using\nthe [seneca][seneca] microservice framework.\n\nClients of the microservice then use a passport strategy which doesn't\nuse session but that communicates with the service to verify the validity\nof the application token.\n\nIt's mean to be a lighter way verification mechanism than a full OAuth\nimplementation.\n\n# Usage\n\n## MicroServer side\n\nThe key function provided for the microservice is **createAppToken(user_id, scopes)**,\nwhere user_id is a string serialization of the user_id unique identifier,\nand scopes is an array of scopes.\n\nThe microservice server will need to expose via express or other\nframework the generated tokens. Tokens will by default expire after 60 \nminutes.\n\nThe microserver also provides a seneca service that will provide the \nservice {role : 'identity', action : 'verify_token'} that expects the field \n*token* as payload.\n\nThe service is used on the client side to serialize/deserialize users.\n\nUsers need to configure the plugin by providing a app_tokens.js\n \n\n\n# License\n\nApache 2.0\n\n[seneca]: https://github.com/senecajs/seneca\n","maintainers":[{"name":"bongione","email":"paolo.bongiovanni@mindiply.com"}],"time":{"modified":"2022-06-12T15:25:37.108Z","created":"2016-10-26T16:34:31.342Z","0.1.0":"2016-10-26T16:34:31.342Z","0.1.2-n":"2016-10-31T13:51:04.602Z","0.1.2":"2016-10-31T13:53:00.046Z","0.1.3":"2016-11-01T09:47:57.262Z","0.2.0":"2016-11-03T13:27:13.218Z","0.2.1":"2016-11-04T13:02:16.986Z","0.2.2":"2016-11-04T13:12:41.096Z","0.2.3":"2016-11-04T13:16:06.883Z"},"homepage":"https://github.com/mindiply/seneca-app-token-service#readme","keywords":["seneca","microservice"],"repository":{"type":"git","url":"git+https://github.com/mindiply/seneca-app-token-service.git"},"author":{"name":"Paolo Ferdinando Bongiovanni","email":"paolo.bongiovanni@mindiply.com"},"bugs":{"url":"https://github.com/mindiply/seneca-app-token-service/issues"},"license":"\tApache-2.0","readmeFilename":"README.md"}