{"_id":"@bpfaas/middleware-auth","name":"@bpfaas/middleware-auth","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"description":"auth middleware of bpfaas in bpframework","dependencies":{"@bpfaas/common":"^0.0.1","@types/node":"^15.0.2","bpframework":"^0.3.3","casbin":"^5.6.3","crypto":"^1.0.1"},"directories":{},"engines":{"node":">=10"},"homepage":"https://github.com/originforest/middleware-nodejs-auth#readme","repository":{"type":"git","url":"git+ssh://git@github.com/originforest/middleware-nodejs-auth.git"},"scripts":{"prepublishOnly":"tsc --build tsconfig.json","build":"tsc --build tsconfig.json"},"keywords":["bpframework"],"types":"types/index.d.ts","license":"MIT","main":"./dist/index.js","maintainers":[{"name":"brainpoint","email":"bpoint.lee@gmail.com"}],"name":"@bpfaas/middleware-auth","version":"0.0.1","gitHead":"456829ae02a8a126eff344bff46c3a11f717b8cc","bugs":{"url":"https://github.com/originforest/middleware-nodejs-auth/issues"},"_id":"@bpfaas/middleware-auth@0.0.1","_nodeVersion":"14.10.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sAIonh55qhI7hn2KQCLd2SUQ85BHXpwAz/xEoHRnqIILo1hSIANF9Ijpyuh/pjFk4I2RH/HVEQzVmeYFxLwTfw==","shasum":"3f31702c609503935322086ac2d603fb9660c70b","tarball":"https://registry.npmjs.org/@bpfaas/middleware-auth/-/middleware-auth-0.0.1.tgz","fileCount":28,"unpackedSize":27833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXc3HesdeMg2p6fWXNo3I1fr75qGpD2WRIHzajIF1piwIhAJSQJutvZNduzm0azdv19n1afiObM8UFkmJAmFPUxL5A"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUXhGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUpw//UrXLWiybXbv6LBVzv1MQ2kebR/oYmhoVIT9EC8A5+SZbYu50\r\n3/Gzk+b4qw+o10J23I9L4nPkObNn4kJi2xHxn5RTOLRlJtStxqGKXOmhJnWd\r\nic9HN9GUlB7wcJOYYzSyJIv/DJ3FxLj0fGiulKgPOSlXKVHeeuj6CdRhVkOi\r\nfVLDzNK8UCXQb4U5OV3ewSP34VpnAcW5eS9KjGb+JXJhgPaYQDkKE0YRmhK0\r\n7je8kAxyLdJEK0vKaWdbt5lZC2kIrADX95J136kj4SdbEaXR2T6tFMulheoJ\r\noLIPOqJ7RuJ2uqBOFBex1pSPe1swBS9l0ZeSKQl57A6IkWB/32UR0TCbulpO\r\nFQBmVacT2Cn7dl6TOfx8IzAaPNH8yB6yphp8WrAyGLLl2Mw9arOFuY7/rojk\r\nLD9HpGF999gSR0wgXxuyXaIwZKNGl3MdgdVQ7AUDR4qGc4WeJO5kCTqFvxGx\r\nyy6HLO2MnGmpXtfGOukijBZkMlTTzzTdqZsWRAcpF2Yh+Yl6cKx6U4Zf0R0+\r\nTLu6xq3/h8sVXPROt6wz+U8c5OET/StqZ+Q5mnf0ZXjRh8NyUTNkWpvW0HYT\r\nKvxhAvHSfKxOTRV86ARqIaR5u8qg+ycWxcJpMQEVSGrGYwRsxvnTLiG/qK3l\r\nKhRTrlSyKJIsTMk3mfWg5WZ0TBHA+2hECEA=\r\n=UCD2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brainpoint","email":"bpoint.lee@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-auth_0.0.1_1649506373719_0.9961843733243558"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-09T12:12:53.664Z","0.0.1":"2022-04-09T12:12:54.123Z","modified":"2022-04-09T12:12:54.271Z"},"maintainers":[{"name":"brainpoint","email":"bpoint.lee@gmail.com"}],"description":"auth middleware of bpfaas in bpframework","homepage":"https://github.com/originforest/middleware-nodejs-auth#readme","keywords":["bpframework"],"repository":{"type":"git","url":"git+ssh://git@github.com/originforest/middleware-nodejs-auth.git"},"bugs":{"url":"https://github.com/originforest/middleware-nodejs-auth/issues"},"license":"MIT","readme":"# bpfaas service auth middleware in bpframework.\n\n### Middleware specification\n\nhttps://github.com/bpfaas/middleware\n\n### usage\n\n\n#### Setup.\n\n```js\n\n// to use debugAdminServiceUrl\n(global as any)__debugFeignClient = true\n\nimport { Application } from 'bpframework';\nimport * as middleware_auth from '@bpfaas/middleware-auth';\n\nApplication.use(middleware_auth.middleware('http://debugAdminServiceUrl'))\nApplication.runKoa(...);\n```\n\n#### Config.\n\n```properties\nspring:\n  application: xxxxxxxxx      # 服务名字\n\nservice_sign:\n  faas_service_sign: xxxxxxxxx      # 服务签名\n```\n\n","readmeFilename":"readme.md"}