{"_id":"@bu-sail/cargo-middleware","_rev":"3-b34c761e9e70c78d5ab92a23ef08b47a","name":"@bu-sail/cargo-middleware","dist-tags":{"latest":"0.0.1"},"versions":{"0.1.0-alpha.1":{"name":"@bu-sail/cargo-middleware","version":"0.1.0-alpha.1","description":"The Cargo Middleware is an AWS S3 Client middleware which takes place after the AWS signing portion to add the signature from the Cargo Server.  For each request, the middleware will capture the request, authenticate the JWT, check for authorization to ac","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prettier:fix":"prettier --write \"src/**/*.ts\"","prettier":"prettier -l \"src/**/*.ts\"","lint:fix":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","eslint":"^8.35.0","eslint-config-prettier":"^8.7.0","eslint-plugin-prettier":"^4.2.1","typescript":"^4.9.5"},"dependencies":{"@apollo/client":"^3.7.10","@aws-sdk/client-s3":"^3.287.0","@aws-sdk/middleware-signing":"^3.282.0","@aws-sdk/types":"^3.272.0","cross-fetch":"^3.1.5","graphql":"^16.6.0"},"gitHead":"cffc85e0f97f30fa6c6a0ea4499c09eea5d2c224","_id":"@bu-sail/cargo-middleware@0.1.0-alpha.1","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-tucybVt8nqK0Hs6CKOdg3LRiHrAx/Y99A/X5CFVaZlZL4qfbRmWms1OMZmD12duUzucknVR2vqE0CaXfQk1o0w==","shasum":"0247beed03405f3ef4a5137c39e0ac4ac425d506","tarball":"https://registry.npmjs.org/@bu-sail/cargo-middleware/-/cargo-middleware-0.1.0-alpha.1.tgz","fileCount":12,"unpackedSize":105642,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8d1G3Q/xMfEihj7mGV/CdaaKucn3mm/oVkLTlGpFSQAiEAzIL3UPj4Zh+Uh1wc5WYTpqQmDbUvycMvoefS4cN7t8A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMCMeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooVw//fasQBPzaLCtVWKcNVz/4smpHJT5OpQ145mRAV4/CYAMZVez9\r\nZTAXAh4/vbWCeeU3OsUcbOnr25aFro9MKXsSR6wJNi+oeI/sCeHAkBCSJUM0\r\n43zbsnHG1yj+2uFdCE8c2qAdJ4rje5aAuWyDe/NfJZw/hhMzunJB4J09sD/x\r\n+AgEoBkmHVdxWL1vO82Y7fb2MROV6m6Ovf8HJghiCte5SCun0AxTEij3Lm9U\r\n0dVobAdzJTGX+9z7zE4FYz8RR4o2C3UVHVPUWj8Ktib5NDWQO9HD3TMKsAEH\r\nvtJqyZJo1ElXGM5nGGayVhLm7bwnxQ+Fi0YfLzKG+UDURmbflCREH6XeWHwo\r\nvHlQiUtWUv1aYhWTimptv3o2MpU76KD6EsphHozaoHpyZ8Hs9ip5fM8MSjnN\r\n4b7U5pT5kBQANSGT6QjuuNdrHNOPm8/XxmI+mojU6M6FvgGfobWAJCpA44nY\r\nrVKfrn+i5EsSZhWIkJwANgfVKl9NT24rWc3X0n7pT6XgJVxKQe2oWvnK3OkY\r\nEhWflp6whGp+tqczJqvX3BMTr067ckhlYRn4V62iIjDTjA4sh51yhUug0aPc\r\npEBLBGYeVscfS6kP/ULSNSm3CZOs6sRovG0z4nIlguqV3f99CA7l/qGY4l1J\r\nYYU9SP0g0GUHFF+2fSMZsJfrUkb0twu+ki0=\r\n=BAbo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bu-sail-admin","email":"hicsail@bu.edu"},"directories":{},"maintainers":[{"name":"gregfrasco","email":"frascog17@gmail.com"},{"name":"bu-sail-admin","email":"hicsail@bu.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cargo-middleware_0.1.0-alpha.1_1680876318283_0.9540712085022713"},"_hasShrinkwrap":false},"0.1.0-alpha.2":{"name":"@bu-sail/cargo-middleware","version":"0.1.0-alpha.2","description":"The Cargo Middleware is an AWS S3 Client middleware which takes place after the AWS signing portion to add the signature from the Cargo Server.  For each request, the middleware will capture the request, authenticate the JWT, check for authorization to ac","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prettier:fix":"prettier --write \"src/**/*.ts\"","prettier":"prettier -l \"src/**/*.ts\"","lint:fix":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","eslint":"^8.35.0","eslint-config-prettier":"^8.7.0","eslint-plugin-prettier":"^4.2.1","typescript":"^4.9.5"},"dependencies":{"@apollo/client":"^3.7.10","@aws-sdk/client-s3":"^3.287.0","@aws-sdk/middleware-signing":"^3.282.0","@aws-sdk/types":"^3.272.0","cross-fetch":"^3.1.5","graphql":"^16.6.0"},"gitHead":"f69b99459477ca9d7c65425ae45b617ea3f8170c","_id":"@bu-sail/cargo-middleware@0.1.0-alpha.2","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-peaVN7e5JS2NbCFekukB40Sq6EMeDA92FJHqGpO3jPOLuFmwo3js/yS9tsEmZvj/M1pAAEm9vmqAXPzQ4GkSXw==","shasum":"2dc9ac0670c69e0373cc8cf901c086410cba7765","tarball":"https://registry.npmjs.org/@bu-sail/cargo-middleware/-/cargo-middleware-0.1.0-alpha.2.tgz","fileCount":12,"unpackedSize":105664,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBe9at1uFP6hv/eEogzmL2UFyuS5ic0y0EzxfYpJ0hJgAiEAhC8Dq1/xI/M56uWFVwXftntU55dqyNfFLw+ZjqRw918="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMCq0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNUA//eLeogUnrS36NQhSYSARIdCFU557kLQ5ET4vINKqV8gcjLNLy\r\n81v2lNVkDaXmcSGIFewDowjmJOWyxcmjo4cW1t9puPbQOhFUt7YRxMTBPEHP\r\nkHZRaMwyaf6Hk253LOdBbQJ57WmAytC0Kdf3PnqGxBbeOzmmYycr8waNNlnz\r\n9ZUnQ2JlbEx0mF79yN1ghOgAbg15hV6b6HRIr9W0CYkPVo9W4s5RAnT5Snyg\r\n9D7CCLhaSX1NB6PXuhnwli+en1ICdTZLlZzE2fY5GrVO/PMKHx7vqHYJyI9m\r\n/Y696visjAI/5q4MuiJ1IlmO8QEio9m/gyBnD9CSOx6ULFmQZg9dtMN4IWK0\r\n+UA6I2opt53aTMVgK5DPfixVxZUd0bESa7GwAA2ZkOjhs29DZgepbA8rna1T\r\n4QVrmfhCLH3wnEBTBglCfHUeJnDQJ9JZA3nQtYfsnO48iY7IstKQqznBLIks\r\nQ9AAdMvPMV3t4ecHumk9tL9qCO5BlS2+9DMJPKab7nvY7/QPdL7pByXjJVYR\r\nP5mIbNypWg4QJDLL/gsApt2TzxbaFyfslrazonTINfr6NjcSlRDtJSTj4zHy\r\nJMFFnJzJi5wLSmAJx8xRGy+acZRMv71cD9ojnPuYpsU13lyc7ef1o1wGEh+C\r\nPdytPUC/thbshrZ5qFO/bQp55aEOGZfCHnM=\r\n=dgh9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bu-sail-admin","email":"hicsail@bu.edu"},"directories":{},"maintainers":[{"name":"gregfrasco","email":"frascog17@gmail.com"},{"name":"bu-sail-admin","email":"hicsail@bu.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cargo-middleware_0.1.0-alpha.2_1680878259771_0.29885964102468665"},"_hasShrinkwrap":false},"0.1.0-alpha.3":{"name":"@bu-sail/cargo-middleware","version":"0.1.0-alpha.3","description":"The Cargo Middleware is an AWS S3 Client middleware which takes place after the AWS signing portion to add the signature from the Cargo Server.  For each request, the middleware will capture the request, authenticate the JWT, check for authorization to ac","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prettier:fix":"prettier --write \"src/**/*.ts\"","prettier":"prettier -l \"src/**/*.ts\"","lint:fix":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","eslint":"^8.35.0","eslint-config-prettier":"^8.7.0","eslint-plugin-prettier":"^4.2.1","typescript":"^4.9.5"},"dependencies":{"@apollo/client":"^3.7.10","@aws-sdk/client-s3":"^3.287.0","@aws-sdk/middleware-signing":"^3.282.0","@aws-sdk/types":"^3.272.0","cross-fetch":"^3.1.5","graphql":"^16.6.0"},"gitHead":"80102ac3b44658cbd08135ad5c8aed6ee2b9d253","_id":"@bu-sail/cargo-middleware@0.1.0-alpha.3","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-bVMHZr1t9PmYW6qhNXJECEZESJD/aX2cGDitMS7uCNVBWSbMZVkPT6m2TnOyNLwmexM+J6yuB8cZqOn/ZJctJw==","shasum":"ef4e9e8abaf8c7876a80fd3b0f6ada3a4911f418","tarball":"https://registry.npmjs.org/@bu-sail/cargo-middleware/-/cargo-middleware-0.1.0-alpha.3.tgz","fileCount":12,"unpackedSize":105943,"signatures":[{"keyid":"SH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URE-----\r\n"},"_npmUser":{"name":"bu-sail-admin","email":"hicsail@bu.edu"},"directories":{},"maintainers":[{"name":"gregfrasco","email":"frascog17@gmail.com"},{"name":"bu-sail-admin","email":"hicsail@bu.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cargo-middleware_0.1.0-alpha.3_1682619768125_0.6704377460181048"},"_hasShrinkwrap":false},"0.0.1":{"name":"@bu-sail/cargo-middleware","version":"0.0.1","description":"The Cargo Middleware is an AWS S3 Client middleware which takes place after the AWS signing portion to add the signature from the Cargo Server.  For each request, the middleware will capture the request, authenticate the JWT, check for authorization to ac","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prettier:fix":"prettier --write \"src/**/*.ts\"","prettier":"prettier -l \"src/**/*.ts\"","lint:fix":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","eslint":"^8.35.0","eslint-config-prettier":"^8.7.0","eslint-plugin-prettier":"^4.2.1","typescript":"^4.9.5"},"dependencies":{"@apollo/client":"^3.7.10","@aws-sdk/client-s3":"^3.287.0","@aws-sdk/middleware-signing":"^3.282.0","@aws-sdk/types":"^3.272.0","cross-fetch":"^3.1.5","graphql":"^16.6.0"},"gitHead":"5894d18cca47dca8d6b1f592e8dbcb7ffc848ba5","_id":"@bu-sail/cargo-middleware@0.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-q8BKlX419yKbIb/owrhbM+FQSUej5hhPU/bOXRqlIgA42A9t5EynkSm3w5J65q6K3WRyKuHJ0TO1tItzfyy3yQ==","shasum":"c11715fa3cebc3851a670d4438fef38af081bf37","tarball":"https://registry.npmjs.org/@bu-sail/cargo-middleware/-/cargo-middleware-0.0.1.tgz","fileCount":12,"unpackedSize":105935,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSfrbPcdzGyWMPj59b0jmQPLGhQlj+GsEzTXdmTtXRvgIgVkLowhESFHUcvq10Y+ZmtamMOS1fzaAAFa/cSJ2aEro="}]},"_npmUser":{"name":"bu-sail-admin","email":"hicsail@bu.edu"},"directories":{},"maintainers":[{"name":"gregfrasco","email":"frascog17@gmail.com"},{"name":"bu-sail-admin","email":"hicsail@bu.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cargo-middleware_0.0.1_1683835975363_0.32030786881635187"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-07T14:05:18.228Z","0.1.0-alpha.1":"2023-04-07T14:05:18.483Z","modified":"2023-05-11T20:12:55.680Z","0.1.0-alpha.2":"2023-04-07T14:37:39.986Z","0.1.0-alpha.3":"2023-04-27T18:22:48.328Z","0.0.1":"2023-05-11T20:12:55.562Z"},"maintainers":[{"name":"gregfrasco","email":"frascog17@gmail.com"},{"name":"bu-sail-admin","email":"hicsail@bu.edu"}],"description":"The Cargo Middleware is an AWS S3 Client middleware which takes place after the AWS signing portion to add the signature from the Cargo Server.  For each request, the middleware will capture the request, authenticate the JWT, check for authorization to ac","keywords":[],"license":"ISC","readme":"# Cargo Middleware\n\nThe Cargo Middleware is an AWS S3 Client middleware which takes place after the AWS signing portion to add the signature from the Cargo Server.  For each request, the middleware will capture the request, authenticate the JWT, check for authorization to access the given resource, then provide the AWS signature and body hash. \n\n## Using the Middleware\n\nFor example usage of the middleware see `samples/src/main.ts` which shows a working example. Add in your Cargo Server endpoint and a working JWT to try the sample.","readmeFilename":"README.md"}