{"_id":"hapi-auth-basic","_rev":"49-4ace11804d2ab50a97e8f5eb70937b96","name":"hapi-auth-basic","description":"Basic authentication plugin","dist-tags":{"latest":"5.0.0"},"versions":{"1.0.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"1.0.0","author":{"name":"Eran Hammer","email":"eran@hueniverse.com","url":"http://hueniverse.com"},"repository":{"type":"git","url":"git://github.com/spumko/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":"0.10.x"},"dependencies":{"boom":"2.x.x","hoek":"1.x.x"},"peerDependencies":{"hapi":"2.x.x"},"devDependencies":{"hapi":"2.x.x","lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/hapi-auth-basic/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/hapi-auth-basic/issues"},"homepage":"https://github.com/spumko/hapi-auth-basic","_id":"hapi-auth-basic@1.0.0","dist":{"shasum":"dc2d6a920be9efebcb5c94d0dfc16f584a066cba","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-1.0.0.tgz","integrity":"sha512-jgCUNOWkIZE02rPfgg/7+8+zA0GLgpek+/Y1eOJeuQfu/lHJgolavOaEl/wgdaRLJeSN6xC+OD996AmeRUoPbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaH1Z1/Dlp6fxBYFa07LXxGxaiUXERSwzANVfW0iKtxwIhAPqeFJKSZXuJ6rJnzHh/1azQBuhaaQMpbYt/8dHwstw7"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"}],"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"1.0.1":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"1.0.1","author":{"name":"Eran Hammer","email":"eran@hueniverse.com","url":"http://hueniverse.com"},"repository":{"type":"git","url":"git://github.com/spumko/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.22"},"dependencies":{"boom":"2.x.x","hoek":"1.x.x"},"peerDependencies":{"hapi":">=2.x.x"},"devDependencies":{"hapi":"3.x.x","lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/hapi-auth-basic/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/hapi-auth-basic/issues"},"homepage":"https://github.com/spumko/hapi-auth-basic","_id":"hapi-auth-basic@1.0.1","dist":{"shasum":"f9837780f0738f6ab3c094e996a37d0cc2eca92a","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-1.0.1.tgz","integrity":"sha512-CSwMz38pFR1JebKlUMQPJlCkDWHWuuVxXO3Fz3GIG+TrtQkNT7FQg/tBE6arTU48BK5bweOi+vQh+xYPm11OYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiEMx5LwgxFcyHg6ZYKdSc1SfD7Hlq488BZJHP7sGvFwIhAKJ1VEEXtzA12JGvLxcoNLMfPcUd4Ia0YP3BX45Mm24p"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"}],"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"1.0.2":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"1.0.2","author":{"name":"Eran Hammer","email":"eran@hueniverse.com","url":"http://hueniverse.com"},"repository":{"type":"git","url":"git://github.com/spumko/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.22"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"peerDependencies":{"hapi":">=2.x.x"},"devDependencies":{"hapi":"5.x.x","lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/hapi-auth-basic/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/hapi-auth-basic/issues"},"homepage":"https://github.com/spumko/hapi-auth-basic","_id":"hapi-auth-basic@1.0.2","_shasum":"4aa42836775f32f80d9617608d7900aa5e3b4a22","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"}],"dist":{"shasum":"4aa42836775f32f80d9617608d7900aa5e3b4a22","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-1.0.2.tgz","integrity":"sha512-b5mS7Xw7C9xLwbT7q2b/m9SlEL5QAGrCZVSIpVNv0mFd8x5lcIXJ97bK3AfzH5ceJ/kDmQCZNNo7QXZfHz1peg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcHo+aW2CZFQqqsj5tNS23JkG0fjhvcSgj8BCKPDXaIAiEArpaEQ1NZLwaumDll+lGCAIPq34pHF7XFZccqO3nLfDk="}]},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"1.1.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"1.1.0","author":{"name":"Eran Hammer","email":"eran@hueniverse.com","url":"http://hueniverse.com"},"repository":{"type":"git","url":"git://github.com/spumko/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.22"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"peerDependencies":{"hapi":">=2.x.x"},"devDependencies":{"hapi":"6.x.x","lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/hapi-auth-basic/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/hapi-auth-basic/issues"},"homepage":"https://github.com/spumko/hapi-auth-basic","_id":"hapi-auth-basic@1.1.0","_shasum":"9355dbe2c5d19bedafe67dc9db049bcadc5983d1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"biant","email":"btan.wmca@gmail.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"},{"name":"biant","email":"btan.wmca@gmail.com"}],"dist":{"shasum":"9355dbe2c5d19bedafe67dc9db049bcadc5983d1","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-1.1.0.tgz","integrity":"sha512-Ux4tD3fKsYRbeHu1x1+gijrHZJEB0Lmjtlrc9vW5KbUIb+Ql4Zhe3smSRagbtZQD2relEQ8EQ55zjun9ioOkhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx/T55T97cw1Jw+DtmLIJ/Ml2AyKEgk8tEBBQBelfSNwIgext60mcu0u+43R/HTyxAYfParbQzZxhUDcE4/U3DJgc="}]},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"1.1.1":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"1.1.1","author":{"name":"Eran Hammer","email":"eran@hammer.io","url":"http://hueniverse.com"},"repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.30"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"peerDependencies":{"hapi":">=2.x.x"},"devDependencies":{"hapi":"6.x.x","lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/hapi-auth-basic/raw/master/LICENSE"}],"gitHead":"952b9c218fae76fc7672b20f4e8336e3dbc6b4b9","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic","_id":"hapi-auth-basic@1.1.1","_shasum":"9e8de9a3b8c17da1cc520b9fae64f6859cb92517","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"},{"name":"biant","email":"btan.wmca@gmail.com"}],"dist":{"shasum":"9e8de9a3b8c17da1cc520b9fae64f6859cb92517","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-1.1.1.tgz","integrity":"sha512-/MsrAh2XAD5dMhpMz0SZQXUwv9O2YVNx+4kvtoTSUhe1lrralp82GTsAwssApOrwx9VzB4/otGYKgJls/NrYIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1lTR6bILiwWvPLGXLDp9F2bkvFpyRWajL3+cJgBjXcgIhAJ5NLWfIhbJ/E4NjG1sv9IZ++MA4CcobMeWrRDsDim3e"}]},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"2.0.0-rc1":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"2.0.0-rc1","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.32"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"peerDependencies":{"hapi":">=8.x.x"},"devDependencies":{"code":"1.x.x","hapi":"8.x.x","lab":"5.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/hapi-auth-basic/raw/master/LICENSE"}],"gitHead":"a60cfc6b1b5ea4a8783bce4f6f3ea423e51243e3","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic","_id":"hapi-auth-basic@2.0.0-rc1","_shasum":"6c21d922f5d6c6133981158bd427fe4db766b5b2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"},{"name":"biant","email":"btan.wmca@gmail.com"}],"dist":{"shasum":"6c21d922f5d6c6133981158bd427fe4db766b5b2","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-2.0.0-rc1.tgz","integrity":"sha512-CvoDrTRdgNxgv5Z5JtXf7yMPuezv+VNjc2XApBP5X0iQnAvNgvEO9Vyjz6o236O//2PfpA0O6ube8UiTKF9HBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDREdwd5c5DuFJOFZ06RNSA1B3hzU6NUSGAo9+hJETXvwIgJEwaNUqmJAwt+pPbUXuHBYsCJK/MKIIOMPE+tA274jU="}]},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"2.0.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"2.0.0","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic"},"main":"index","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.32"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"peerDependencies":{"hapi":">=8.x.x"},"devDependencies":{"code":"1.x.x","hapi":"8.x.x","lab":"5.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/hapi-auth-basic/raw/master/LICENSE"}],"gitHead":"3eec373a2b9f0046994dd9f912afe4c3855892d3","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic","_id":"hapi-auth-basic@2.0.0","_shasum":"1afd5a756421c4ef002257a18befda485c9ce552","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hueniverse.com"},{"name":"biant","email":"btan.wmca@gmail.com"}],"dist":{"shasum":"1afd5a756421c4ef002257a18befda485c9ce552","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-2.0.0.tgz","integrity":"sha512-NQ1WwROV0y1mzi7D4hqUyDFzcw63po5vLCYFnKybdV+0Yu6m4+1joz0vSuEW5G7ywRDeQy/OV3/Pbjzer39MKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt8F2NGfYeSoI9zCoYia3LoRoTj9NxEtMI6kRA60c+pgIga8EMZm0G5Ik5sRuV1qMGTnleTD4ejjHDmXT5/x5PZfk="}]},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"3.0.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"3.0.0","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic.git"},"main":"lib/index.js","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=0.10.32"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"peerDependencies":{"hapi":">=8.x.x"},"devDependencies":{"code":"1.x.x","hapi":"8.x.x","lab":"5.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"ea5b694adeaf15b3df46243a5501394d6f3c9268","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic#readme","_id":"hapi-auth-basic@3.0.0","_shasum":"dec8322033a6eb00e185d01698df5789b001697e","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.38","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"dec8322033a6eb00e185d01698df5789b001697e","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-3.0.0.tgz","integrity":"sha512-bhfQHfV7nKxuEg0glr/L/ycbp5H9ZdfdcflYqV+LAFl5YyZs9RRXHJXBAjwNgTlBGWjQN/QzUKCJYHM3FCxxKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBhZomlRlRvs4i0p3xzoXqKRdqkZ6/v/WRLcmrKC61r5AiAZeOI+gBHgPEdaEAB6w5Pl9oEqNS7Sx3I/1HtaAnCA4g=="}]},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"biant","email":"btan.wmca@gmail.com"},{"name":"stongo","email":"stongo@gmail.com"}],"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"4.0.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"4.0.0","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic.git"},"main":"lib/index.js","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"3.x.x","hoek":"3.x.x"},"peerDependencies":{"hapi":">=10.x.x"},"devDependencies":{"code":"2.x.x","hapi":"11.x.x","lab":"7.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"d2e3b90abfec2ba83f276bc8f2b7ae985be3a9a0","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic#readme","_id":"hapi-auth-basic@4.0.0","_shasum":"d8b425ecbc0433d58b5b0d6ff46b818a7cc9ecad","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.0.0","_npmUser":{"name":"mtharrison","email":"hi@matt-harrison.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"biant","email":"btan.wmca@gmail.com"},{"name":"stongo","email":"stongo@gmail.com"},{"name":"mtharrison","email":"hi@matt-harrison.com"}],"dist":{"shasum":"d8b425ecbc0433d58b5b0d6ff46b818a7cc9ecad","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-4.0.0.tgz","integrity":"sha512-QT9iTYCBbQmuALPsim7EC23+IZEV6GXsAzAGmriNYJutx+0JavBw4tR3F83ZLLyAXYKgG9lfd9LmvIecu5PO7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoQftPDIVMHqIcZ3rb1ueLgsASXQBDqY1zoFieCqjP4AiBUA8Fxm7Yg3UsU1m41A+JzAEZ+NxO2DzLiqHQq3SMpPQ=="}]},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"4.1.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"4.1.0","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic.git"},"main":"lib/index.js","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"3.x.x","hoek":"3.x.x"},"peerDependencies":{"hapi":">=10.x.x"},"devDependencies":{"code":"2.x.x","hapi":"11.x.x","lab":"7.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"f23314a4ba6cf5c65341a70887e99edca05232ea","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic#readme","_id":"hapi-auth-basic@4.1.0","_shasum":"e1ac10d2ded207a0bb7050ef5d6ef98f4c909b16","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.0.0","_npmUser":{"name":"mtharrison","email":"hi@matt-harrison.com"},"dist":{"shasum":"e1ac10d2ded207a0bb7050ef5d6ef98f4c909b16","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-4.1.0.tgz","integrity":"sha512-wsPgTbEyaorElJPGXIRelgq0yjdohCJyOmYTqTJLXftsrCNfEOjBZu84RCNynFk6nIBmIHNmd0o+Tjo49A1c0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJpwtiC3SCbXWqOlyv9uQynumkNu0I/ZpVdQbQRMEl+QIhALXhsAT7CFKz2+XRoWR2UnXtYFi83iJgs4ARR9NlDMT2"}]},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"biant","email":"btan.wmca@gmail.com"},{"name":"stongo","email":"stongo@gmail.com"},{"name":"mtharrison","email":"hi@matt-harrison.com"}],"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"4.2.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"4.2.0","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic.git"},"main":"lib/index.js","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"3.x.x","hoek":"4.x.x"},"peerDependencies":{"hapi":">=10.x.x"},"devDependencies":{"code":"2.x.x","hapi":"13.x.x","lab":"10.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"bd83f57ecfa4bfbe77b9cda7f6a888333ebfea33","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic#readme","_id":"hapi-auth-basic@4.2.0","_shasum":"a2f16b3e14317d44e3ad7934fe833f995ee82fc0","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.0.0","_npmUser":{"name":"mtharrison","email":"hi@matt-harrison.com"},"dist":{"shasum":"a2f16b3e14317d44e3ad7934fe833f995ee82fc0","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-4.2.0.tgz","integrity":"sha512-UYeIB8wvHM1lup/9QnX6RluAWHXPmppEbDp2L5ghM3qRCCZbxyPeGIve717FQmKQPdsty5DAdiZXyS06COSQlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCi+b21U+Wo2HQqdLjUccF+A1pBp6AO/uek9jmc058WFwIgdCf3WcspRq1DMLlKxsp2wrrgGBY3648XKBEBz9LyLZs="}]},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"biant","email":"btan.wmca@gmail.com"},{"name":"stongo","email":"stongo@gmail.com"},{"name":"mtharrison","email":"hi@matt-harrison.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hapi-auth-basic-4.2.0.tgz_1463680924805_0.435085543198511"},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"5.0.0":{"name":"hapi-auth-basic","description":"Basic authentication plugin","version":"5.0.0","repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic.git"},"main":"lib/index.js","keywords":["hapi","plugin","auth","basic"],"engines":{"node":">=8.9.0"},"dependencies":{"boom":"7.x.x","hoek":"5.x.x"},"peerDependencies":{"hapi":">=17.x.x"},"devDependencies":{"code":"5.x.x","hapi":"17.x.x","lab":"15.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"1f99d06aaa989b57ea62730c6261aa887763d386","bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"homepage":"https://github.com/hapijs/hapi-auth-basic#readme","_id":"hapi-auth-basic@5.0.0","_shasum":"0438b00225e4f7baccd7f29e04b4fc5037c012b0","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"mtharrison","email":"hi@matt-harrison.com"},"dist":{"shasum":"0438b00225e4f7baccd7f29e04b4fc5037c012b0","tarball":"https://registry.npmjs.org/hapi-auth-basic/-/hapi-auth-basic-5.0.0.tgz","integrity":"sha512-4ceLge/CYBtEAvfnbwBPPck2wb9O7wksaeSOF0C1lp8GX2IuIm8BqtZtvDGLhqNH5j3ztP4im/TfCj3oYQ9bgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClAVUYMy0Lr2ZyELyRgjtnbWyOIKGxAdwM2xq7mrS50QIgDm5GBk01JtYJ9Vicjex3b4ZFP6yYDsNW1EhHm4UofuQ="}]},"maintainers":[{"email":"hi@matt-harrison.com","name":"mtharrison"},{"email":"stongo@gmail.com","name":"stongo"},{"email":"btan.wmca@gmail.com","name":"biant"},{"email":"eran@hammer.io","name":"hueniverse"},{"email":"wpreul@gmail.com","name":"wyatt"},{"email":"nicolas@morel.io","name":"marsup"},{"email":"quitlahok@gmail.com","name":"nlf"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-auth-basic-5.0.0.tgz_1511668362266_0.196449329610914"},"directories":{},"deprecated":"This module has moved and is now available at @hapi/basic. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."}},"readme":"### hapi-auth-basic\n\n[![Build Status](https://secure.travis-ci.org/hapijs/hapi-auth-basic.svg)](http://travis-ci.org/hapijs/hapi-auth-basic)\n\nLead Maintainer: [Matt Harrison](https://github.com/mtharrison)\n\nBasic authentication requires validating a username and password combination. The `'basic'` scheme takes the following options:\n\n- `validate` - (required) a user lookup and password validation function with the signature `[async] function(request, username, password, h)` where:\n    - `request` - is the hapi request object of the request which is being authenticated.\n    - `username` - the username received from the client.\n    - `password` - the password received from the client.\n    - `h` - the response toolkit.\n    - Returns an object `{ isValid, credentials, response }` where:\n        - `isValid` - `true` if both the username was found and the password matched, otherwise `false`.\n        - `credentials` - a credentials object passed back to the application in `request.auth.credentials`.\n        - `response` - Optional. If provided will be used immediately as a takeover response. Can be used to redirect the client, for example. Don't need to provide `isValid` or `credentials` if `response` is provided\n    - Throwing an error from this function will replace default `Boom.unauthorized` error\n    - Typically, `credentials` are only included when `isValid` is `true`, but there are cases when the application needs to know who tried to authenticate even when it fails (e.g. with authentication mode `'try'`).\n- `allowEmptyUsername` - (optional) if `true`, allows making requests with an empty username. Defaults to `false`.\n- `unauthorizedAttributes` - (optional) if set, passed directly to [Boom.unauthorized](https://github.com/hapijs/boom#boomunauthorizedmessage-scheme-attributes) if no custom `err` is thrown. Useful for setting realm attribute in WWW-Authenticate header. Defaults to `undefined`.\n\n```javascript\nconst Bcrypt = require('bcrypt');\nconst Hapi = require('hapi');\n\nconst users = {\n    john: {\n        username: 'john',\n        password: '$2a$10$iqJSHD.BGr0E2IxQwYgJmeP3NvhPrXAeLSaGCj6IR/XU5QtjVu5Tm',   // 'secret'\n        name: 'John Doe',\n        id: '2133d32a'\n    }\n};\n\nconst validate = async (request, username, password, h) => {\n\n    if (username === 'help') {\n        return { response: h.redirect('https://hapijs.com/help') };     // custom response\n    }\n\n    const user = users[username];\n    if (!user) {\n        return { credentials: null, isValid: false };\n    }\n\n    const isValid = await Bcrypt.compare(password, user.password);\n    const credentials = { id: user.id, name: user.name };\n\n    return { isValid, credentials };\n};\n\nconst main = async () => {\n\n    const server = Hapi.server({ port: 4000 });\n\n    await server.register(require('hapi-auth-basic'));\n\n    server.auth.strategy('simple', 'basic', { validate });\n    server.auth.default('simple');\n\n    server.route({\n        method: 'GET',\n        path: '/',\n        handler: function (request, h) {\n\n            return 'welcome';\n        }\n    });\n\n    await server.start();\n\n    return server;\n};\n\nmain()\n.then((server) => console.log(`Server listening on ${server.info.uri}`))\n.catch((err) => {\n\n    console.error(err);\n    process.exit(1);\n});\n```\n","maintainers":[{"email":"jonas.pauthier@gmail.com","name":"nargonath"},{"email":"devinivy@gmail.com","name":"devinivy"},{"email":"nicolas@morel.io","name":"marsup"},{"email":"quitlahok@gmail.com","name":"nlf"}],"time":{"modified":"2023-12-01T08:26:35.889Z","created":"2014-01-08T18:06:41.200Z","1.0.0":"2014-01-08T18:06:42.627Z","1.0.1":"2014-03-21T20:18:11.622Z","1.0.2":"2014-05-20T22:31:50.175Z","1.1.0":"2014-06-12T20:37:41.365Z","1.1.1":"2014-08-04T08:43:36.709Z","2.0.0-rc1":"2014-11-26T06:07:39.218Z","2.0.0":"2014-12-10T23:01:21.586Z","3.0.0":"2015-07-04T22:03:41.054Z","4.0.0":"2015-11-04T12:30:06.706Z","4.1.0":"2015-11-17T07:08:20.969Z","4.2.0":"2016-05-19T18:02:07.311Z","5.0.0":"2017-11-26T03:52:43.135Z"},"repository":{"type":"git","url":"git://github.com/hapijs/hapi-auth-basic.git"},"homepage":"https://github.com/hapijs/hapi-auth-basic#readme","keywords":["hapi","plugin","auth","basic"],"bugs":{"url":"https://github.com/hapijs/hapi-auth-basic/issues"},"readmeFilename":"README.md","users":{"ruiquelhas":true,"jalcine":true},"license":"BSD-3-Clause"}