{"_id":"@appliedblockchain/adonis-auth","_rev":"190-980a5909aec42e9e9a039b59a148af9f","name":"@appliedblockchain/adonis-auth","dist-tags":{"latest":"3.0.7"},"versions":{"3.0.6":{"name":"@appliedblockchain/adonis-auth","version":"3.0.6","keywords":["adonis","adonis-framework","adonis-auth","authentication"],"author":{"name":"adonisjs"},"license":"MIT","_id":"@appliedblockchain/adonis-auth@3.0.6","maintainers":[{"name":"ab-ci","email":"developers@appliedblockchain.com"},{"name":"ab-incremint","email":"francesco+ab-incre-npm@appliedblockchain.com"},{"name":"ab-shell","email":"francesco+ab-shell-npm@appliedblockchain.com"},{"name":"alixeb","email":"alixe@webgear.pro"},{"name":"alord","email":"andrew.lord@appliedblockchain.com"},{"name":"andycampbell92","email":"andycampbell92@gmail.com"},{"name":"antony","email":"aj@desirableobjects.co.uk"},{"name":"cmsepul","email":"cmsepul@gmail.com"},{"name":"dpbricher","email":"dpbricher@gmail.com"},{"name":"edgodshaw","email":"ed@appliedblockchain.com"},{"name":"ikhemissi","email":"iheb.khemissi@gmail.com"},{"name":"jamieallen59","email":"jamie@appliedblockchain.com"},{"name":"jchen86","email":"jchen.tc@gmail.com"},{"name":"littleball","email":"npm@littleball.co.uk"},{"name":"makevoid","email":"makevoid@gmail.com"},{"name":"mariogemoll","email":"mariogemoll@gmx.net"},{"name":"mayk93","email":"mihai@mandrescu.co"},{"name":"mikehab","email":"mike@appliedblockchain.com"},{"name":"mirek","email":"mirek@me.com"},{"name":"mtomov","email":"mtomov@outlook.com"},{"name":"oktapodia","email":"sebastien.bramille@gmail.com"},{"name":"pedroachain","email":"pedro@appliedblockchain.com"},{"name":"seektheerror","email":"seektheerror@gmail.com"},{"name":"shadrech","email":"tsc17@hotmail.co.uk"},{"name":"shariffy","email":"shariff.inayat@gmail.com"},{"name":"simontabor","email":"me@simontabor.com"},{"name":"skolobov","email":"sergei@kolobov.com"},{"name":"tahseenm","email":"thas_01@live.com"}],"homepage":"https://github.com/adonisjs/adonis-auth#readme","bugs":{"url":"https://github.com/adonisjs/adonis-auth/issues"},"nyc":{"exclude":["src/Exceptions","providers","test","bin"]},"dist":{"shasum":"8605988aeedfae3eb461601eeea9f12448144494","tarball":"https://registry.npmjs.org/@appliedblockchain/adonis-auth/-/adonis-auth-3.0.6.tgz","fileCount":35,"integrity":"sha512-d6qO21soCSs8kJWGyNshLEiCNo2C3Q9ndGvUx4mPhq8O8XyI8QaJ9Zyh2/DC2G/uJqEfjllsW9Kc1vmLJ/CGig==","signatures":[{"sig":"MEQCIG6aib+qqqbo1ARiOZEd5CrU6IUMp0mI6gl4gileDQ5uAiBDvV0NWS7EggzDF3r7HEXFrUoQwdW0Fw9VhBAJqV+srg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9ClZCRA9TVsSAnZWagAA7YMQAJEdY0jp+o5OU7D77qTH\nyt7GgGLbjr7MkOE7yhL9wsMu8Q9I7MV9/CKTDDDwJDgbCTfkEXLVR6xkSoko\nWyT1C1Up4HqTmSk0D5LCFvndvYVAH2nWTvl5+09MU6tV6wnpFuKmi9nwgvVg\ncwKsc47Qex71HVdEjjAHfaY3W3ueLIsRFUdqEewvG7asKGoaxCfvTzv2w6fO\nN9YOhHHkREyUlftkHFq7WZiTVzmFGfkgornC3bmgY5XQEcG2wu6dTDFtCSBT\nhRJxMWNDKrTmMQQvksG9ERF0M47MSS+k6+ubgcIeIG2yT0fcaAgU0HgEmTTV\n3ESyYfd0gC/Yxvbc5+yNAbtrrA4jvq5jOKKMDe2xlgP1hFkp8JSygNVgPEfi\nTigY6MYpSzf9NeKRCSIC2xKgQa0WtngzFOSDXE8zwkueUvLmzxgetn3EVx+r\nh3BERI0k5YCo+BW5nCgemWR6MZhtLX5n6kT3d741AXhbqcEoPG1wAXk/siRE\nqPTnQhfq0uSTBmkQ+v6+qyjXEeQR65i9yCSvF6cQPglJYC6fK9Zwg6KkJ9t0\nYxlvkN/ngQWIFQug8JH29rm6jr2WswSql2Y39ygeGQxjTq39z/Fk/x46U2B6\nLn8yhrel60UUXVx6WVTLoxf+rUUtbX70DXDF4XqR4G0pgdJrphk0EO+xN4Mq\nlWKS\r\n=V20c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"11c78f9520acfdda0ba9e3a01a0d0fc0860a234c","scripts":{"lint":"standard","test":"nyc npm run test:local","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","posttest":"npm run coverage","test:win":"set FORCE_COLOR=true && node bin/index.js --win","test:local":"FORCE_COLOR=true node bin/index.js --local"},"_npmUser":{"name":"simontabor","email":"me@simontabor.com"},"standard":{"globals":["use"]},"repository":{"url":"git+https://github.com/adonisjs/adonis-auth.git","type":"git"},"_npmVersion":"5.3.0","description":"Offical authentication provider for Adonis framework","directories":{"test":"test"},"_nodeVersion":"8.11.1","dependencies":{"ms":"^2.1.1","uuid":"^3.2.1","debug":"^3.1.0","lodash":"^4.17.5","resetable":"^1.0.3","basic-auth":"^2.0.0","jsonwebtoken":"^8.2.0","@adonisjs/generic-exceptions":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.6.0","japa":"^1.0.6","cookie":"^0.3.1","semver":"^5.5.0","edge.js":"^1.1.4","sqlite3":"^4.0.0","fs-extra":"^5.0.0","japa-cli":"^1.0.1","node-req":"^2.1.0","standard":"^11.0.1","coveralls":"^3.0.0","macroable":"^1.0.0","supertest":"^3.0.0","@adonisjs/fold":"^4.0.7","@adonisjs/sink":"^1.0.16","@adonisjs/lucid":"^5.0.3","cz-conventional-changelog":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/adonis-auth_3.0.6_1525950808139_0.08209493545877611","host":"s3://npm-registry-packages"}},"3.0.7":{"name":"@appliedblockchain/adonis-auth","version":"3.0.7","keywords":["adonis","adonis-framework","adonis-auth","authentication"],"author":{"name":"adonisjs"},"license":"MIT","_id":"@appliedblockchain/adonis-auth@3.0.7","maintainers":[{"name":"ab-ci","email":"developers@appliedblockchain.com"},{"name":"ab-incremint","email":"francesco+ab-incre-npm@appliedblockchain.com"},{"name":"ab-shell","email":"francesco+ab-shell-npm@appliedblockchain.com"},{"name":"alixeb","email":"alixe@webgear.pro"},{"name":"alord","email":"andrew.lord@appliedblockchain.com"},{"name":"andycampbell92","email":"andycampbell92@gmail.com"},{"name":"antony","email":"aj@desirableobjects.co.uk"},{"name":"cmsepul","email":"cmsepul@gmail.com"},{"name":"dpbricher","email":"dpbricher@gmail.com"},{"name":"edgodshaw","email":"ed@appliedblockchain.com"},{"name":"ikhemissi","email":"iheb.khemissi@gmail.com"},{"name":"jamieallen59","email":"jamie@appliedblockchain.com"},{"name":"jchen86","email":"jchen.tc@gmail.com"},{"name":"littleball","email":"npm@littleball.co.uk"},{"name":"makevoid","email":"makevoid@gmail.com"},{"name":"mariogemoll","email":"mariogemoll@gmx.net"},{"name":"mayk93","email":"mihai@mandrescu.co"},{"name":"mikehab","email":"mike@appliedblockchain.com"},{"name":"mirek","email":"mirek@me.com"},{"name":"mtomov","email":"mtomov@outlook.com"},{"name":"oktapodia","email":"sebastien.bramille@gmail.com"},{"name":"pedroachain","email":"pedro@appliedblockchain.com"},{"name":"seektheerror","email":"seektheerror@gmail.com"},{"name":"shadrech","email":"tsc17@hotmail.co.uk"},{"name":"shariffy","email":"shariff.inayat@gmail.com"},{"name":"simontabor","email":"me@simontabor.com"},{"name":"skolobov","email":"sergei@kolobov.com"},{"name":"tahseenm","email":"thas_01@live.com"}],"homepage":"https://github.com/adonisjs/adonis-auth#readme","bugs":{"url":"https://github.com/adonisjs/adonis-auth/issues"},"nyc":{"exclude":["src/Exceptions","providers","test","bin"]},"dist":{"shasum":"69e0c92d017116073da50380ae02dd2548ef2e8f","tarball":"https://registry.npmjs.org/@appliedblockchain/adonis-auth/-/adonis-auth-3.0.7.tgz","fileCount":35,"integrity":"sha512-JhJiMnfIaFICFpyfIE6LAGhfdh5chMqZ3B/4U53JkdKQv2keG8d2ZQgudBuYUjeYZU8pDJuyN2oWMFUJbPUs0A==","signatures":[{"sig":"MEQCIAr4pX/AiXQWXv5uZtK47hB6vvvZeX5PZ4hmnnHTxydAAiBC9JzaKAJJRbrH0Vtqi3b/RadhxF828XJvExYFv3TSEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9DGnCRA9TVsSAnZWagAAvwgP/2if5OkLLVyDpl+F4HkA\nXQ+kEQ6yGTYEzwBKEsqDWxNR4A7A+XIkzxNMkocU1sCALpml7nOzJkrcsHBV\nMaKTl9MKLn8dAEOL+BI1htW5Kti2B3UyCdEZif3oqcDVCZ6A8+dugZniEsYw\ncHmBfG1sZk7Oj4TYkr7ZdpOmYnxIMaBTy6hcRZXHBu0Rw4xvFWmW43Z1SwtL\n2HooKahKzeRQgl/laFFIt1AgDd1ZOseltPA9gRj333pgkZqZqrZay9UkmYyN\nIDNCaqxaaDEPVFTxuxNItDIBsO/h0K9dGMKnA+vcLVO1g201sKKDtQVged70\n1uotNJkIXS2eH/XrdDj19kxasLb6GlHJ9AEFAh6JmwoZtlJGhxVm1m1V3Gy/\nVkDILUdJw7ZvnATTgoTJFTSz+EaxpCJ2Tbzu0UIQHV9lT02QSGTtj616Tcd+\nSbRu9MGGV8hkXBkMN76tv1jcLjbuBJcDTSTddG9899wbCGgAa+bLVIfq4yqH\n0YpI2ZCw/xZ7hmaEziJcWVDMhyMFQLENT0RhAJcwK/1ul/7cwjQ4+vjObcKC\n+OP4C3hg/NInEP/nJa3gdD8EKy2FKWTDSiNqNx9iUJqQCZBNsYlisjIxjV8F\nW+2NC33JEtSd4HWSNlPMQqfhSLfCq6qXocCBYm2js3GMo6XLCPajTu8Tq2vn\nn3Y6\r\n=zcsZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"532b84516d7c67d86a6641b93ebcf24bdcb5a80c","scripts":{"lint":"standard","test":"nyc npm run test:local","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","posttest":"npm run coverage","test:win":"set FORCE_COLOR=true && node bin/index.js --win","test:local":"FORCE_COLOR=true node bin/index.js --local"},"_npmUser":{"name":"simontabor","email":"me@simontabor.com"},"standard":{"globals":["use"]},"repository":{"url":"git+https://github.com/adonisjs/adonis-auth.git","type":"git"},"_npmVersion":"5.3.0","description":"Offical authentication provider for Adonis framework","directories":{"test":"test"},"_nodeVersion":"8.11.1","dependencies":{"ms":"^2.1.1","uuid":"^3.2.1","debug":"^3.1.0","lodash":"^4.17.5","resetable":"^1.0.3","basic-auth":"^2.0.0","jsonwebtoken":"^8.2.0","@adonisjs/generic-exceptions":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.6.0","japa":"^1.0.6","cookie":"^0.3.1","semver":"^5.5.0","edge.js":"^1.1.4","sqlite3":"^4.0.0","fs-extra":"^5.0.0","japa-cli":"^1.0.1","node-req":"^2.1.0","standard":"^11.0.1","coveralls":"^3.0.0","macroable":"^1.0.0","supertest":"^3.0.0","@adonisjs/fold":"^4.0.7","@adonisjs/sink":"^1.0.16","@adonisjs/lucid":"^5.0.3","cz-conventional-changelog":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/adonis-auth_3.0.7_1525952935457_0.919712594503215","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-05-10T11:13:28.138Z","modified":"2026-08-28T12:49:12.240Z","3.0.6":"2018-05-10T11:13:28.254Z","3.0.7":"2018-05-10T11:48:55.581Z"},"bugs":{"url":"https://github.com/adonisjs/adonis-auth/issues"},"author":{"name":"adonisjs"},"license":"MIT","homepage":"https://github.com/adonisjs/adonis-auth#readme","keywords":["adonis","adonis-framework","adonis-auth","authentication"],"repository":{"url":"git+https://github.com/adonisjs/adonis-auth.git","type":"git"},"description":"Offical authentication provider for Adonis framework","maintainers":[{"email":"palhais.diogo@gmail.com","name":"diogopalhais"},{"email":"developers@appliedblockchain.com","name":"ab-ci"},{"email":"andycampbell92@gmail.com","name":"andycampbell92"},{"email":"mirek@me.com","name":"mirek"},{"email":"danielmelo@appliedblockchain.com","name":"danchmelo"},{"email":"sereno.rui@gmail.com","name":"ruisereno"},{"email":"ricardo.seromenho@gmail.com","name":"seromenho"},{"email":"ricardo.rocha.pinheiro@gmail.com","name":"kennypt"},{"email":"filipe.pedro@appliedblockchain.com","name":"filipepedro"},{"email":"mario.nikolaus@gmail.com","name":"mnikolaus"},{"email":"nilson@appliedblockchain.com","name":"bertola"},{"email":"joao.luis.achada.lima@gmail.com","name":"lslima91"},{"email":"junior_erico@hotmail.com","name":"juniorerico"},{"email":"alisson@appliedblockchain.com","name":"alisson-diniz-ab"},{"email":"arash.kafaeilotfie@gmail.com","name":"losceicco"},{"email":"gabriels@hey.com","name":"gabspeck"},{"email":"zeljko.tadic.91@gmail.com","name":"ztadic91"},{"email":"ioannis.martakis@appliedblockchain.com","name":"kjack83"},{"email":"andre.faria@appliedblockchain.com","name":"andremfaria"},{"email":"tiagorvmartins@gmail.com","name":"tiagorvmartins"},{"email":"samuelfcmc@gmail.com","name":"samfcmc"},{"email":"bruno.neves@appliedblockchain.com","name":"brunoneves-devops"},{"email":"ewan.sims@appliedblockchain.com","name":"ewan-sims-applied-blockchain"},{"email":"geoffrey.chalk@appliedblockchain.com","name":"geoffreychalk"},{"email":"greg@appliedblockchain.com","name":"grzegorzjucha"},{"email":"tudor@appliedblockchain.com","name":"tudorab"}],"readme":"# AdonisJs Auth 🔒\n> Fully blown authentication provider for Adonis framework\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Appveyor][appveyor-image]][appveyor-url]\n[![Coveralls][coveralls-image]][coveralls-url]\n\n\nAdonisjs auth is an authentication provider to add authentication layer to your apps.\n\n<img src=\"http://res.cloudinary.com/adonisjs/image/upload/q_100/v1497112678/adonis-purple_pzkmzt.svg\" width=\"200px\" align=\"right\" hspace=\"30px\" vspace=\"50px\">\n\n## What's in the box?\n\n1. Support for multiple authentication schemes like **Jwt**, **Sessions**, **Basic auth** and **Personal API tokens**.\n2. Support for Lucid and Database serializer.\n3. Easy to extend API to add your own serializers and schemes.\n4. Runtime middleware.\n\n## Installation\nYou can install the package from npm.\n```bash\nadonis install @adonisjs/auth\n```\n\nMake sure to read [instructions.md](instructions.md) file.\n\n## Node/OS Target\n\nThis repo/branch is supposed to run fine on all major OS platforms and targets `Node.js >=7.0`\n\n## Development\n\nGreat! If you are planning to contribute to the framework, make sure to adhere to following conventions, since a consistent code-base is always joy to work with.\n\nRun the following command to see list of available npm scripts.\n\n```\nnpm run\n```\n\n### Tests & Linting\n\n1. Lint your code using standardJs. Run `npm run lint` command to check if there are any linting errors.\n2. Make sure you write tests for all the changes/bug fixes.\n3. Also you can write **regression tests**, which shows that something is failing but doesn't breaks the build. Which is actually a nice way to show that something fails. Regression tests are written using `test.failing()` method.\n4. Make sure all the tests are passing on `travis` and `appveyor`.\n\n### General Practices\n\nSince Es6 is in, you should strive to use latest features. For example:\n\n1. Use `Spread` over `arguments` keyword.\n2. Never use `bind` or `call`. After calling these methods, we cannot guarantee the scope of any methods and in AdonisJs codebase we do not override the methods scope.\n3. Make sure to write proper docblock.\n\n## Issues & PR\n\nIt is always helpful if we try to follow certain practices when creating issues or PR's, since it will save everyone's time.\n\n1. Always try creating regression tests when you find a bug (if possible).\n2. Share some context on what you are trying to do, with enough code to reproduce the issue.\n3. For general questions, please create a forum thread.\n4. When creating a PR for a feature, make sure to create a parallel PR for docs too.\n\n\n## Regression Tests\n\nRegression tests are tests, which shows how a piece of code fails under certain circumstance, but the beauty is even after the failure, the test suite will never fail. Actually is a nice way to notify about bugs, but making sure everything is green.\n\nThe regression tests are created using\n\n```\ntest.failing('2 + 2 is always 4, but add method returns 6', (assert) => {\n assert.true(add(2, 2), 4)\n})\n```\n\nNow since the `add` method has a bug, it will return `6` instead of `4`. But the build will pass.\n\n[appveyor-image]: https://img.shields.io/appveyor/ci/thetutlage/adonis-auth/master.svg?style=flat-square\n\n[appveyor-url]: https://ci.appveyor.com/project/thetutlage/adonis-auth\n\n[npm-image]: https://img.shields.io/npm/v/@adonisjs/auth.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@adonisjs/auth\n\n[travis-image]: https://img.shields.io/travis/adonisjs/adonis-auth/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/adonisjs/adonis-auth\n\n[coveralls-image]: https://img.shields.io/coveralls/adonisjs/adonis-auth/develop.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/github/adonisjs/adonis-auth\n","readmeFilename":"README.md"}