{"_id":"@authbroker/authbroker","_rev":"8-1392823ce24c12c2464512fa9e83ef6d","name":"@authbroker/authbroker","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"@authbroker/authbroker","version":"0.0.1","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"lib/index.js","scripts":{"test":"mocha --exit --recursive --bail --reporter spec tests","ci":"mocha --recursive --bail --watch tests","standard-lib":"standard lib/*.js --fix","standard-test":"standard tests/*.js --fix","start":"node ./example/broker"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["mosca","aedes","ponte","authentication","authorization","mqtt","http","coap","credintial"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"debug":"4.1.1","mongodb":"3.2.7"},"devDependencies":{"chai":"4.2.0","mocha":"6.1.4","ponte":"0.0.16","mosca":"2.8.3","aedes":"0.38.0","request":"2.88.0","mqtt":"3.0.0","expect.js":"^0.3.1","supertest":"4.0.2"},"publishConfig":{"access":"public"},"gitHead":"5cfaeb7f2834dd216b73c95640725662736fbcf9","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kamerdack","email":"kamerdack@gmail.com"},"dist":{"integrity":"sha512-u2JiytrkB87UVTBXVQzR0M2gU+5DWkRz97+SYSz6toUwaENv7qE5pKXOcb+RxU0g44KG/YdpwPkvgKQvT9mzjw==","shasum":"8e3165525de5dad7d783f57d81c1616f947c9d24","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.1.tgz","fileCount":16,"unpackedSize":445182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdA3g3CRA9TVsSAnZWagAAHCwP/jd1BIvr2Ke98+3C4kvP\n8yukoAkut4euqpMuGba6DKWB3SuirR7fnm8AnoYrdqFY3R5N7gtMu9oDxFFQ\n7JmhXTClay3w5AjKu/AEbznwnkG472juKpJk1lhBBbDG4Kn3iRLFcuFOvinl\nF4lBIuI90dS6Ou2n1NYqSXSoWyTNL1a0Kha1fnMdxGCbVbtSO/nXfFPRpjCs\ntsVA40aBWk1h/7Kug7amz+73YrYxlsJk3GAQy3nkq/nv2uO+Q7BX+Elwc/Qa\nOzP8nYDWaXilwyG2PI89z376btOICVp/5a070RbXKrdF4wN9KqZ9RuHVYt/p\nfpYXHx0mf+2peMg4qJhVnc+GcjRaWUoe9VBbodvEI0GY1SZR+tceD81M9MJ0\ns0WThPq54bQLplEx/FUBkjaKEoRave/GiSavlYAeYD01CHYEQ1bgkGEpz3K4\nQLn/aEoym2LcwZ+VM9Bq9itXObAQtkTDliRsF2ry+GgVUpyJladK9gkGbXzf\nWi/btjWOdLEVWbKxsQ2fdZgQa0WYytnUHhzmMrA5iE0GO6zhzq5Oz03Prffd\nxdyJXRNHAOO4cMrT1/8XgLrHizUwkWGGrcAoDB6WGRRB0Yk6bKV4fE9TLEb+\njKtNi789n/ImIiKXKo6ie13MAcJrgxIpYrBWYu6KMpQVw1xV6nqVAk+DVdeP\nxtX/\r\n=JZFn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBY2j2UbDyEqQBIiBX4RsyoGJuMGXcu8MDTNGDzx01LXAiEAmMH+jFHBPimTSSvYhO7o+6IqDjzONLwyxAi/sBLZw4U="}]},"maintainers":[{"name":"kamerdack","email":"kamerdack@gmail.com"},{"name":"iokloud.com","email":"iokloud.com@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.1_1560508470920_0.7200690053205274"},"_hasShrinkwrap":false},"0.0.2":{"name":"@authbroker/authbroker","version":"0.0.2","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"lib/index.js","scripts":{"test":"mocha --exit --recursive --bail --reporter spec tests","ci":"mocha --recursive --bail --watch tests","start":"node ./example/broker"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["mosca","aedes","ponte","authentication","authorization","mqtt","http","coap","credintial"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"debug":"4.1.1","mongodb":"3.2.7","qlobber":"3.1.0"},"devDependencies":{"chai":"4.2.0","mocha":"6.1.4","ponte":"0.0.16","mosca":"2.8.3","aedes":"0.38.0","request":"2.88.0","mqtt":"3.0.0","expect.js":"^0.3.1","supertest":"4.0.2"},"publishConfig":{"access":"public"},"gitHead":"d737e8035c3438a68113a4031e6ba3e2eea39e5f","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kamerdack","email":"kamerdack@gmail.com"},"dist":{"integrity":"sha512-CrZwbyFDAyDk4FRwcWCRGao0pQ5XZIY2HtlBRDNECbIsuOqquSwX78sNADoJ2xGImd2kvWxLbLQRfCso3v4OVw==","shasum":"511e24643bb730f42788c0b2388b054c113766c9","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.2.tgz","fileCount":15,"unpackedSize":444081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBhPRCRA9TVsSAnZWagAAYOAP/29cIuOPa1u5LHmEX04t\nALBEPUprGXoyt9NxVF9Ehz7aHRqPWlJsqAscBj5CkgCsmCIbr9xxljg6BdEy\nRIFVRADu8qLu4Gxtd+S1/DWRsViLy2m16jD983RqM6sHrQWVIksy97mkj3Ws\nd5cli9roh4XLolPFtH1Eb+uIJr0gaLdH4vbw/DVlxTyrxe9D2aoGWavf4GG1\njttnHVGO9ilQgLPAz9PTQ2uVCN7OFy5aBFMUAnbhx3Nn/xN7pRavgOZruF2v\n4BNOcQklnirtUwVrPidHd+Anw4kO5hHNS0u+a1AbWkNlbBuZJDHNjSrCD8Qk\nss2Xw+YrqM6CqxNj9trl9EWFlGfp//9Q92AO3wlXKuMsQG1OLJUJFKUQCy6A\nUI3JSNblVG/jn13cmdCwZm6e5WTLygobF8DVypMYyLzSquIfyS0dIB1JPk1d\n+SnxbDc3uiqf27vQMqbtXTKV+j/H9NaIqKHbxuGNNUayXRQoiK/7r5ZQ+tkR\n62oieoYU5s7IL3w/uG2MH5zJOfzTqVClJTPMK1xB2O5TA8ar1WKcJipe6FYR\n2AvGXYk7ODQPXLXGePnKMvdjl061tzcH48Yoj5XiULBGw4vII2CyzCZYKnbu\nNDFnT+nmi1qDNp0MS5bdL7AYzrpURDHWnpvofZLQWD907YOFGAeiOV6LX+IA\n/G/X\r\n=33vB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD06KJfa0pmmkvMsWfHvtMVIha9TbTXT9zySRfXU9vdwwIhAPsjDtSiwQJgl08Y7BzU0bBMsV1sqc8aoeHWqXB4ooO4"}]},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.2_1560679376830_0.12912895963651683"},"_hasShrinkwrap":false},"0.0.3":{"name":"@authbroker/authbroker","version":"0.0.3","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"lib/index.js","scripts":{"test":"mocha --exit --recursive --bail --reporter spec tests","ci":"mocha --recursive --bail --watch tests","start":"node ./example/broker"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["mosca","aedes","ponte","authentication","authorization","mqtt","http","coap","credintial"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"debug":"4.1.1","mongodb":"3.2.7","qlobber":"3.1.0"},"devDependencies":{"chai":"4.2.0","mocha":"6.1.4","ponte":"0.0.16","mosca":"2.8.3","aedes":"0.38.1","request":"2.88.0","mqtt":"3.0.0","expect.js":"^0.3.1","supertest":"4.0.2"},"publishConfig":{"access":"public"},"gitHead":"7c6691d270c5882f9839634310f7902fb2c3ab60","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kamerdack","email":"kamerdack@gmail.com"},"dist":{"integrity":"sha512-qKVDR/j84A6CPH1yuAa8zZq8QlMqoqBINX7Ira/1J1lgCcVidSLFn7V8AGcGKa27Hi6SGkovF4kWf3EJVRorAQ==","shasum":"c793aa6a552167908cb9aaa629b4ae321facb5a3","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.3.tgz","fileCount":17,"unpackedSize":453767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB1axCRA9TVsSAnZWagAAh3wP/17A7NghB8JNB40OjDT2\nbbH/h2Gh1vM7EfmeMUxDt51Qklh3IkLzopdeIwIIkuTX0dkRKpg+yHMla4Yt\nziP1GEccSE3X85V7AItLeDfzgi8pob0Pv3yWbgFG6UG5AxDiGu5uWmbDzJ7q\n94LCeTIS7mYpyse5Sm6dnpHXRRdUCRiFiFj90wbL5uRUBZ/aWB3+xD8IhC2v\nVY7mOzFZbhQ6cY5HE4tECnPWeHUaOwL8L3HNd9PoVET5T50cWd9FNiKVlfmH\nu9ITquwCnEKRZfP7USYVm2jeg0vjb6U6OjkPTgpndr8K4eX5LyP76ijIqUxj\nplxqsGbVZxQd3e8ShfFm66yoXktaI9VUrTfQK3GanfcFZKR3ziTgIXHuh5Sy\nVeoy7MorSPLUVJj1Y4JDt9Clcn9Q/fCEFNxgr1Gv76xh7ZR/VjtbkGEqVA/J\nDX0GfQwwmeLcxv+AXzTO5KLhttYyTuii5VOJ6FLCTnqXgVoa1hG88GeU6FLW\n5QKdNV7klh3bYFnvPkiZTvePg4p+ExmFXPievN4O9euRI9rNCkTVjDf0++u2\nNQf6UcseOR229JO2QfzeK6wY9XiKateDonRs7leP0UpX2M1sCxO4qjmjcU8X\ng4dp4tFSNKVSNdwD+uWy5njhfYDoCIzVmpQZ87P3WpGMx7fuOBZErGYhACl9\no4qv\r\n=o2Rt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjoM0YfE9hXm+anNyDZgpIy6Qm8CIdpDgDcnCOd05d5AiADZNfQtZH0fx9prz6ZbYRFyZ9a3K6tFuB5ahxOLFGMzg=="}]},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.3_1560762032540_0.46279869141558505"},"_hasShrinkwrap":false},"0.0.4":{"name":"@authbroker/authbroker","version":"0.0.4","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"lib/index.js","scripts":{"pretest":"node ./example/demoDB","test":"mocha --exit --recursive --bail --reporter spec tests","ci":"mocha --recursive --bail --watch tests","start":"node ./example/broker"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["mosca","aedes","ponte","authentication","authorization","mqtt","http","coap","credintial"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"debug":"4.1.1","mongodb":"3.2.7","qlobber":"3.1.0"},"devDependencies":{"chai":"4.2.0","mocha":"6.1.4","ponte":"0.0.16","mosca":"2.8.3","aedes":"0.38.1","request":"2.88.0","mqtt":"3.0.0","expect.js":"^0.3.1","supertest":"4.0.2","@authbroker/mongo-benchmark":"0.0.6"},"publishConfig":{"access":"public"},"gitHead":"02a433572339117779703f29ac48a7d41bdb092e","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"iokloud.com","email":"iokloud.com@gmail.com"},"dist":{"integrity":"sha512-arZwls4aqqG6cr6nCC490f8dSazqvrHjOhLhBORw/oDorZuldmf7vtI2Sq7LQS3H8mv4B0OfZH2Ze+djGMOltg==","shasum":"6e6010030b9e87a24b176400019bc73a2e06a2ee","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.4.tgz","fileCount":17,"unpackedSize":436860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMVfaCRA9TVsSAnZWagAAl1QP/RNCwzLR/ktv4hSyK25K\nDcrtGsB8R20i6+tuRhkivs+K/f0z4vRLYm6kD7mo8GqDPAmZZUkfykK3Oi42\nox2PMJFYFLFkFoMRuVpFaTEy9f44u1mDUa/9pst+KwSzwezsYcKEZ7TKssJT\nUMMld14KN9+JzMBsx53sxo1OxTERQ9cmxKepmFvfwSfPOitYyASFgeVOx84p\nmovooPVlXdQIeK96YK/z3J7c15RYjID5yuoGMSWT8nM7U19YfM1dCkQB2TR4\n/PkFGCjZL2XZs5zjYg0N2aT62/za9+WNiLjN73WMDZY1hXDw7yvLgGNHE/sv\nqiwC4b5A7HJk9nLubSJ+Ty7eIQTGfyGxocC+6w19EI6pnb7yCDeB+7hGOicf\nOEz7Rxh3R8HrPSuiSt/sxnyrnpwWZn3yeQGAHYWR2h2IdyLjifPing39jjC1\nV7v4dRu9YWkdxY1nEL1ZoJS1cVYDzb6WSCDZimdm+1ymknGuH3te4IH1Ln/8\nvy8H14EMLcjuJHZKd0Qr1ErPt6vf85ww44EVDdOOJL52/ThO/bXJhEKnapJj\n9gD1kBxSpXXcnG2GnUKr/BfDrVhJDlO+h8gKPN6866THJGs6CeAU9TU6Fsnj\nJWZ5EGx8D9SCtmuhpfchZydg47vkK5SmegJXixK68rWjtB6v3VgwMv03Idj3\n18XD\r\n=WUmS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE2ioFAaKVC698k6a5B1Y4zngu8qlIebP3wyWbB4/avhAiAtoWPK5ZZxBMu1O4S8KP25Vc+hxo83XQBKGpIZrtwwsA=="}]},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.4_1563514841284_0.0952110255279408"},"_hasShrinkwrap":false},"0.0.5":{"name":"@authbroker/authbroker","version":"0.0.5","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"lib/keycloak.js","scripts":{"pretest":"node ./example/demoDB","test":"mocha --exit --recursive --bail --reporter spec tests","ci":"mocha --recursive --bail --watch tests","start":"node ./example/broker"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["moscajs","aedes","ponte","authentication","authorization","mqtt","http","coap","credintial","access token"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"debug":"4.1.1","jsonwebtoken":"8.5.1","request":"2.88.0","qlobber":"3.1.0"},"devDependencies":{"@authbroker/mongo-benchmark":"0.0.9","aedes":"0.39.0","chai":"4.2.0","expect.js":"^0.3.1","mocha":"6.2.0","mosca":"2.8.3","mqtt":"3.0.0","ponte":"0.0.16","supertest":"4.0.2"},"publishConfig":{"access":"public"},"gitHead":"e766363a076feafe6d7db032dc17f5fd63f2fa6d","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.5","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-KIbRvc1h5xu+PG6zMZr6cS9goP8U45ABXy1FXEEnMGoHJO4wlhsEhKxFGhFHqUGwj2l5UxR82vAvQxj0N17UqA==","shasum":"9d6031abf071211c986aa40adecc737cc70015d7","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.5.tgz","fileCount":16,"unpackedSize":431725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfqGdCRA9TVsSAnZWagAAHq4QAJtoi8+HLngnTmA1z7Td\nkd+3WxCLzF7eMk7oQN5kCiO7lQqzywok5myxQ6RAG0jBbkAVIfzqFPENGs19\nc4p9yPIz3gx6DG9b+qtSbM5A6wFP22QEkzqvS/zlolBQVFOJ+uxWTXAMKy4n\ncjNlTzUgRiu1GTiqUlaAWcHdSmYIIOpCYFUML0nEpFZV6JJUoEfVIGgFE548\nvSo2Wt+fNp5aAKLGyUlVgGFjLRXA7g7t90eLPml+s3iEhNMf20BF63fnrD+/\nfVL6a7L2DzQ+Un2bFBMWp2qCRF/8gwjTb24ASWP0vIHriX/ozrDpxQWdwNgS\nJy2dZG03AdrcPPqBHagm0DxRJxpY71LZlEJlIsN3IFTWbGe4YEXSjeD3ha6f\nwzreEsM/546MBzVzV6wYFp4+C+egL+kaiXDeZBBLEOmPeHeRIfFmQ5DvkdlD\naCKeG1mVwA7wzv35l2wOF2Ypp2N7Tbz2T1Hh0smyVsEeVUFWuI37dipcgxfg\n9TevT5F6p1QueYALYfbp+9OGiEvJ/okimzmB5jP2pQXBIP/nMm2CSmV/oMbJ\nrf8Y6Big4J23z/pqHgRti1pLu8hfW9E0pPbj0nlENplt6Wpy/ywLpK4AMK8U\nz2lsTiCjNun5P2w18wQaN0wsxVVBM3vJ9ZDXp2HOeIC/usaqgVM8YLqJ1zNR\niBE7\r\n=YUXN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTH5ZxZTFOOHXo5DZig1ESz7tDd34ftWx6b5AdgMhzqgIhAKFcy0a9JiH2VH0geLr4KTvhWT+d4vFmyasN9t8dDGRV"}]},"_npmUser":{"name":"iokloud.com","email":"iokloud.com@gmail.com"},"directories":{},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.5_1618911644660_0.0848876045608904"},"_hasShrinkwrap":false},"0.0.10":{"name":"@authbroker/authbroker","version":"0.0.10","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"./index.js","scripts":{"test":"tap test/*.test.js --no-check-coverage","debug":"nodemon --inspect ./example/broker.js","ci":"rm -rf node_modules && npm install"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["moscajs","aedes","authentication","authorization","mqtt","http","coap","credintial","keycloak"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"pino":"^7.9.1","pino-pretty":"^7.5.4","axios":"^0.26.1","qs":"^6.10.3","jsonwebtoken":"^8.5.1"},"devDependencies":{"mqtt":"4.3.7","aedes":"0.46.3","tap":"16.0.0"},"publishConfig":{"access":"public"},"gitHead":"40649643ec467aa5e3a9a3be3008b98f99712125","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.10","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-K0AlCRMKImIB69GGVfmj/GHxsW5zRCnqfCJXgiWajN4zm7nG80Br4xcdAQ3CSakpAQqokmj9KkqGiyTG8FUtZQ==","shasum":"a1bec8b4d4a72d93f34885f3d50a376d18c64238","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.10.tgz","fileCount":16,"unpackedSize":493977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPKbHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnZA/9HbHGeQU/6+9R5KaNUCj5xSXME8ke6vYY0i6EUf09QCSVsKKE\r\naPftZ6ZLp13KGoKKPtFQsIDGtej1gDgm+mrnmMeXCgA/zP3J1J9mjiO7uJKj\r\n8Uv/zjlj4Is6xk1P4jPjrevJklaP3b5ioMr3NLYE8wpSdg6y4mfbaiJ1pnZe\r\nydGzWjeEmDBhSBAYAmVXU0QdiHsEquD+IH1DOOrCAGyLFLvSRAcJQ701tekf\r\ngYuUROmEQQnBDYtn6b99hIqU+nbPCMf6OX70rbOLJ8Dl1JxjiCyNoWojvj5j\r\nTLj13OKXOrMzQ6RDxyOmyG465PZMPnFSOYD3bEJMZNR9yPkrTY2Qne8RKWYL\r\n3KBI99HXeeHbg5lrJXKtGUFjIobwhPhEL3X5LGr4nk+GQeTcisKtLFivpBx8\r\nMiE8mwav9cJPbS7uFYguJ2UpUItMPv0BagHI1NGxjiVSRJSsqyByKFtD6A4s\r\nVxhv68ewteJHA29o2+skeByyz7YHJt1rxZnVp9yms9+ABfn5K1dO9uQ9+aVk\r\nFr3m0eim/YEGISQGWzjWydUEegyJuFgrACwbEGdPai8urbTp4tghw9SAytqR\r\nPfwDqtt+BKRAGGqE4Pb+PU4/P1efZjnSRh6YS/iwP3VZrVjaOHu4Sglhc3A7\r\n0tiuVuGnoZBa107zO2sF4XgJpuUZaqjyxdQ=\r\n=4zPA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYCJYrjsq4ptQqZRoaf0qiMgw9Ghg8QR7jHlOhMqVnvwIgQDCCr3B2KYlkGfsW0Bu9DUdPLAb0uSzhCNNwzQIpM+s="}]},"_npmUser":{"name":"iokloud.com","email":"iokloud.com@gmail.com"},"directories":{},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.10_1648142023416_0.27805382633649867"},"_hasShrinkwrap":false},"0.0.11":{"name":"@authbroker/authbroker","version":"0.0.11","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"./index.js","scripts":{"test":"tap test/*.test.js --no-check-coverage","debug":"nodemon --inspect ./example/broker.js","ci":"rm -rf node_modules && npm install"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["moscajs","aedes","authentication","authorization","mqtt","http","coap","credintial","keycloak"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"pino":"^7.9.1","pino-pretty":"^7.5.4","axios":"^0.26.1","qs":"^6.10.3","jsonwebtoken":"^8.5.1"},"devDependencies":{"mqtt":"4.3.7","aedes":"0.46.3","tap":"16.0.0"},"publishConfig":{"access":"public"},"gitHead":"3d31fa8d4f2ca0a35f62515c0ef7647409815011","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.11","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-c3qBHeTV55ETkrfKBfilwmmAuW2y3L/AzHVVdhbIds1h8blxGYxGxo68LDWCDXt/IJg2p59mqArOoNP/KvbXcQ==","shasum":"7ef58d03d45c6a1ae128f946cb4d94972bfd84ed","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.11.tgz","fileCount":18,"unpackedSize":699423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRBBHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolDw/6Atk3gbv1oHnMOCaO8L1AAP/H+J3VxthrM2PCq3CZBBbpUiQh\r\n/F10psRaDJ680toVrMicAYZX/1nGoRGgnX9Dje4WzMdrmxUH6c/YsmNnkybi\r\nTOAtkjrOuqLRis78nc/6PRJVg8lHRRow2oTKD32k1j9eMeAtFopvSSvZiMA8\r\n83ivzxkC+2eB0UaKKL235gDeKiu35h3GauGKAvcmXcPH+KrwODsLABS268Gi\r\nCqFsgMFgZCYbg1sLbPM1bBDCtpQrOyWhFH+2HHn9OOQt2pmQJiZzJYs7JRjp\r\nzpcmeOlH3Ich8jxvUorzxxMm5CL7zdcuvCpPATCgKAV4Tw+k2Wmv4iANLhWX\r\nLMAV9CRbUioj3yEp7+rmpU9p3+7zCa6P3Usb+rGfdRvM5tYSZsCL8/t/4wT/\r\nX8osAUPsz3dhY+aE41PywFQcRuROanP6ezsWKj2SX5are8UPHyKuOUIA9N1y\r\nFXucoLAbwMRXb14sbkj9aY7fqwDd8HBS66ceC28TGzS5G9+UGQp6vplE8g01\r\nI+2HzBQnhwoGVlDav+42rRoeXcqrg2OBIPzg6VKJfN+SjgPZKNxwO/ZGJ1sV\r\nVNaJlG6CcF2pqkOq9qdLo2Y5AFw63RsWOIwx5IU7TSMkGzV6ZqtgGI8AIpc3\r\nbZS7djGC8hiSvLUOrTscnMJy58oTIEbPHEI=\r\n=k46q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF018GLTgxc2b/OQpEegqLuTYPEGU86A/ZZmj7r/rraKAiBJ4379Yg73oqEEPOHjoyct/DODNhgyd0Vm0UuT8xZhhg=="}]},"_npmUser":{"name":"iokloud.com","email":"iokloud.com@gmail.com"},"directories":{},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.11_1648627783101_0.23544140554434234"},"_hasShrinkwrap":false},"0.0.12":{"name":"@authbroker/authbroker","version":"0.0.12","description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","main":"./index.js","scripts":{"test":"tap test/*.test.js --no-check-coverage","debug":"nodemon --inspect ./example/broker.js","ci":"rm -rf node_modules && npm install"},"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"keywords":["moscajs","aedes","authentication","authorization","mqtt","http","coap","credintial","keycloak"],"author":{"name":"Hadi Mahdavi"},"email":"kamerdack@gmail.com","license":"MIT","bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"dependencies":{"pino":"^7.9.1","pino-pretty":"^7.5.4","axios":"^0.26.1","qs":"^6.10.3","jsonwebtoken":"^8.5.1"},"devDependencies":{"mqtt":"4.3.7","aedes":"0.46.3","tap":"16.0.0"},"publishConfig":{"access":"public"},"gitHead":"115aa596cafdc67a222ea58aa9ba719f50fc6177","homepage":"https://github.com/authbroker/authbroker#readme","_id":"@authbroker/authbroker@0.0.12","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-nXdKTOS6ZAdXswnNyqqwFRthDQPdEqW54V7ftpPmq1lPyFAoKI08hpSRKP5Op6dHQRhERmMVWhO7q7f0zs1agg==","shasum":"71d206761873b0a9519d4061c198e0cb8564b65f","tarball":"https://registry.npmjs.org/@authbroker/authbroker/-/authbroker-0.0.12.tgz","fileCount":18,"unpackedSize":699777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRDqLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrh/w//WQQWqgmR1ZIvq9wKRByGSHayNQI4BF/0s11nVNJQuXViTSdH\r\nQe4SUg9UtJ4JS5Cfh1Zh5ikJVSPXok2ZH/eLKoOXMcGZlWg5sUXKN9mt7cQn\r\nmXet3jisH6OQWPaczERNxyBUhtrIXgvHvdmnJ1jTAa+04BlNJ9yauSpf5GhO\r\nst4jrGaOKtJw6bV9981z56HBf0wc+VICbuWcDFVifw/RtevdT4xNezCNwbml\r\nEtCYcEU5W9M301PEOQn2LE1xJQwGgE8PKKMSrhB4kfNEBXY3yyNpDu3I3mnB\r\nFKOdduuyOS215bUINltHpf6eq65NzXZxMbiTfX7in2cJgr2YFq51GTot58TP\r\nVzCTRcyEpVo+bBTHa1nC7TwdHXN09nhFZyJeV95mtajLruD5fVbwSBQax+7Z\r\nR+PSSGZDDSQmVn0X74eopHa/Mhh3ezJolfl33kGZiIxpt35aH8zhNRtGkMQw\r\nZblfMN48XoNcdFaNWKXtM3mQxcji8x+OwWt0mG6OonYKahXvdkYQo9uDYe0k\r\n0vX+Vh7BWK72/Hss2hQbM33GxCVHIla+dyVBqJlTG5n1iOy1gu+E8OOekQkT\r\nYHvfGJ/Lq/TAMhmoQxAVtESaT5E2isaIwYPWycu4yD4RhYA+9MCYNtF7wVID\r\n1iEWkVLrU1Xn0amqpEm3WR0g1iC2H9xNfK8=\r\n=q2eW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEC8ib8qH6zYzmpfejPHeEtwJPs8KwRkIDgo/uI61uJxAiBoeNUYsj4uZ3pgOObqK/ylGapO0ll7rSMp/V/3eNbxTw=="}]},"_npmUser":{"name":"iokloud.com","email":"iokloud.com@gmail.com"},"directories":{},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authbroker_0.0.12_1648638603158_0.8283820732895253"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-14T10:34:30.717Z","0.0.1":"2019-06-14T10:34:31.103Z","modified":"2022-04-04T16:31:02.559Z","0.0.2":"2019-06-16T10:02:57.005Z","0.0.3":"2019-06-17T09:00:32.710Z","0.0.4":"2019-07-19T05:40:41.784Z","0.0.5":"2021-04-20T09:40:44.877Z","0.0.10":"2022-03-24T17:13:43.640Z","0.0.11":"2022-03-30T08:09:43.363Z","0.0.12":"2022-03-30T11:10:03.412Z"},"maintainers":[{"name":"iokloud.com","email":"iokloud.com@gmail.com"},{"name":"kamerdack","email":"kamerdack@gmail.com"}],"description":"Authentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things.","homepage":"https://github.com/authbroker/authbroker#readme","keywords":["moscajs","aedes","authentication","authorization","mqtt","http","coap","credintial","keycloak"],"repository":{"type":"git","url":"git+https://github.com/authbroker/authbroker.git"},"author":{"name":"Hadi Mahdavi"},"bugs":{"url":"https://github.com/authbroker/authbroker/issues"},"license":"MIT","readme":"# Authentication and Authorization Module for Brokers\n\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) [![Build Status](https://travis-ci.org/authbroker/authbroker.svg)](https://travis-ci.com/authbroker/authbroker)\n\n<div align=\"center\">\n    <img src=\"https://github.com/authbroker/authbroker/blob/master/docs/asset/repository-open-graph.png\" width=\"500px\"</img> \n</div>\n\nAuthentication and Authorization module of HTTP/MQTT/CoAP Brokers based on NodeJS for IoT or Internet of Things. This repo is under development.\n\n\n##  Getting Started\n\n* Install [Keycloak](https://www.keycloak.org/) locally. Make sure it's working.\n* If you want to run a test locally, clone this repo.\n\n``` bash\ngit clone https://github.com/authbroker/authbroker\ncd authbroker\nnpm install\nbash run-test.sh\n# visit http://localhost:8080\n# with username 'admin' and password 'admin'\nnpm run test\n\n# for stopping docker instance you use this\ndocker stop $(docker ps -a -q --filter ancestor=authbroker:test --format=\"{{.ID}}\")\n```\n\nIt runs Keycloak by docker and import demo data to IOT_Realm realm. An example Broker runs that used auhtBroker by:\n\n``` bash\nnode ./example/broker.js\n```\nthese below commands Subscribe and Publish to broker.\n\n```bash\nmosquitto_sub -h localhost -p 1883 -t garden/fan -u admin -P admin\n\nmosquitto_pub -h localhost -p 1883 -t garden/fan -m \"hello world\" -u admin -P admin\n```\n\nif username/password or authorization permission in Keycloak changes, authBroker authorization will not permitted to broker. for example change topic to unauthorized topic like garden/unathorized and see how broker reject it.\n\n\n## How Using it\nThis module use Node-style callback and it can be used with different brokers like [Aedes](https://github.com/mcollina/aedes).\n\n\n``` js\nconst aedes = require(\"aedes\")({\n    persistence: new require(\"aedes-persistence\")()\n});\nconst server = require(\"net\").createServer(aedes.handle);\nconst port = 1883;\n\nconst authBroker = require('@authbroker/authbroker');\n\nconst config = {\n        \"realm\": \"IOT_Realm\",\n        \"authUrl\": \"http://localhost:8080/auth\",\n        \"sslRequired\": \"external\",\n        \"clientId\": \"authBroker\",\n        \"verifyTokenAudience\": true,\n        \"credentials\": {\n          \"secret\": \"secret\"\n        },\n        \"confidentialPort\": 0,\n        \"policyEnforcer\": {},\n        \"mqttpubScope\": \"scopes:mqttpub\", // scope text for pub permission\n        \"mqttsubScope\": \"scopes:mqttsub\", // scope text for pub permission\n        \"mqttResPerfix\": \"res:\" // prefix text for resource or topic\n      };\n\nconst authbroker = new authBroker(config)\n\n// hook it up\naedes.authenticate = authbroker.authenticate();\naedes.authorizeSubscribe = authbroker.authorizeSubscribe();\naedes.authorizePublish = authbroker.authorizePublish();\n\nserver.listen(port, function () {\n    console.log(\"server listening on port\", port);\n});\n```\n\nIt's necessary to set these scopes in Authorization section in Keycloak.\nBy defualt 'scopes:mqttpub' is set for Publish permission and 'scopes:mqttsub' is set for Subscription permission.\n\n![Keycloak Scopes](./images/keycloak-scope.png)\n\nUsers can Publish or Subscribe to resources which has a scope 'scopes:mqttpub' or 'scopes:mqttsub'.\n\n![Keycloak Resource](./images/keycloak-res.png)\n\nrun-test.sh script runs a preconfigured  Keycloak Demo version that can be used as a template.\n\n```bash\nbash run-test.sh\n```\nthen visit http://localhost:8080 with username 'admin' and password 'admin' in Admin console.\n\n## Contributing\n\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues)\n\nAnyone with interest in or experience with the following technologies are encouraged to join the project.\nAnd if you fancy it, join the [Telegram group](t.me/joinchat/AuKmG05CNFTz0bsBny9igg) here for Devs and say Hello!\n\n\n## Authors / Contributors\n\n* [Hadi Mahdavi](https://twitter.com/kamerdack)\n\n\n\n## Credits / Inspiration\n\n* Matteo Collina for Mosca, Aedes, Ponte (https://github.com/moscajs/aedes)\n* Eugenio Pace for Auth0 Mosca inspiration (https://github.com/eugeniop/auth0mosca)\n\n\n## Copyright\n\nMIT - Copyright (c) 2019-2022 ioKloud\n","readmeFilename":"README.md"}