{"_id":"@benjaminnoufel/adonis-ally-42","_rev":"3-ce5e8a73b2d4dd09bd43956d05610830","name":"@benjaminnoufel/adonis-ally-42","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@benjaminnoufel/adonis-ally-42","version":"1.0.1","description":"A 42 driver of AdonisJS Ally","main":"build/providers/index.js","scripts":{"clean":"del build","copyfiles":"copyfiles \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copyfiles","prepublishOnly":"npm run build","lint":"eslint . --ext=.ts","format":"prettier --write .","version":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/benjaminnoufel/adonis-ally-42.git"},"bugs":{"url":"https://github.com/benjaminnoufel/adonis-ally-42/issues"},"keywords":["adonisjs","adonis-ally","adonis-42","adonis-ally-42","@benjaminnoufel/adonis-ally-42"],"author":{"name":"Benjamin Noufel","url":"https://github.com/benjaminnoufel"},"license":"MIT","devDependencies":{"@adonisjs/ally":"4.1.1","@adonisjs/core":"5.4.0","@types/node":"15.12.2","copyfiles":"2.4.1","del-cli":"3.0.1","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-plugin-adonis":"1.3.2","eslint-plugin-prettier":"3.4.1","prettier":"2.4.1","typescript":"4.4.4"},"peerDependencies":{"@adonisjs/ally":"^4.0.0","@adonisjs/core":"^5.0.0"},"adonisjs":{"instructionsMd":"./build/instructions.md","env":{"FORTY_TWO_CLIENT_ID":"","FORTY_TWO_CLIENT_SECRET":""},"types":"@benjaminnoufel/adonis-ally-42","providers":["@benjaminnoufel/adonis-ally-42"]},"licenseText":"MIT License\n\nCopyright (c) 2020 Benjamin Noufel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@benjaminnoufel/adonis-ally-42@1.0.1","dist":{"shasum":"b527b4d006234cb09b5b4f78477878f0385e723d","integrity":"sha512-WR3SPQJe3s/8qO8fqtVpWFedAx3OLtPdyUqmNremdhUPEwqIoD/MXedQzRN2+hhcelt1DuvVwm+2nBcwRTDapg==","tarball":"https://registry.npmjs.org/@benjaminnoufel/adonis-ally-42/-/adonis-ally-42-1.0.1.tgz","fileCount":15,"unpackedSize":19956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhu6zxCRA9TVsSAnZWagAAtdIQAI2iN7B13qDHhEhpXmXe\nlN/cCuqh2ts1lNKRUgoV8Pp4jQXzYQHlgmJOtXupY7JdxDenAa+wsNQ9Twbv\nRHICU6gym8l7Yg7s13QViWUfmMfvv6Ojw8Sd3z7apl+c8NstLQgTeIz3XaMo\nbmKciLuqD6RWCkBu/Znx4YaalFwJ2BlT3ZNCHH8GaxJMIn7gecOe3wA4qJke\n0wIjtftLK9GlvKRbwHdelGUK5AHtL/XhlfgaKP6K2HbuxSQ//JhqO2qhgTGB\nzExqWzjvZulo110IYReXecuMmmB0IpV3JQQE1yAWDV+wQ+sJdCRMYvf6UqOR\nDmMsw2F2Lcb9JsxbNvH5h3HK6Q4sUiwvYmopbA4faY4mw/NHh2q3GURF1WgR\nKw1faOWMUDFu/XKOsZuldItMCdHuB1r90NX568i2U+jMY8xvnyJ+xRDaydRc\nGGIppwS1HZ9oYc8WmJ4D6H0YVsS3MQ4VqZI2dcwGMbM397caVTyxObEqE4kg\ni88OW1mrGRT/3QBxpXC4kKtv5JAQnMCLzbLQUvCspXnTsPsfl6dMPhlWrlt7\nCD7Ff9Kim0X/v4xjF+q97b5lKukh5+uhwzgDXFSLszSwoogMMs+/XdlKwbBE\nwndDKOhWZoLAFD6bGBgXciROFBeL8kXCqXjdX4/P3BbkfVP37CZP1LkYqaqG\n389k\r\n=uQfO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjEHfKczwmJ3FzLgQH8hgaL+5rvEY7qmaHIWNi4KE5agIgKcInct1PpXYNy41FDf1T+6svsMdGl3ZBb+ClMjW2f3Q="}]},"_npmUser":{"name":"bnoufel","email":"benjamin.noufel@gmail.com"},"directories":{},"maintainers":[{"name":"bnoufel","email":"benjamin.noufel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adonis-ally-42_1.0.1_1639689457312_0.6259149358944345"},"_hasShrinkwrap":false},"1.0.2":{"name":"@benjaminnoufel/adonis-ally-42","version":"1.0.2","description":"A 42 driver of AdonisJS Ally","main":"build/providers/index.js","types":"build/src/FortyTwo/index.d.ts","scripts":{"clean":"del build","copyfiles":"copyfiles \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copyfiles","prepublishOnly":"npm run build","lint":"eslint . --ext=.ts","format":"prettier --write .","version":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/benjaminnoufel/adonis-ally-42.git"},"bugs":{"url":"https://github.com/benjaminnoufel/adonis-ally-42/issues"},"keywords":["adonisjs","adonis-ally","adonis-42","adonis-ally-42","@benjaminnoufel/adonis-ally-42"],"author":{"name":"Benjamin Noufel","url":"https://github.com/benjaminnoufel"},"license":"MIT","devDependencies":{"@adonisjs/ally":"4.1.1","@adonisjs/core":"5.4.0","@types/node":"15.12.2","copyfiles":"2.4.1","del-cli":"3.0.1","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-plugin-adonis":"1.3.2","eslint-plugin-prettier":"3.4.1","prettier":"2.4.1","typescript":"4.4.4"},"peerDependencies":{"@adonisjs/ally":"^4.0.0","@adonisjs/core":"^5.0.0"},"adonisjs":{"instructionsMd":"./build/instructions.md","env":{"FORTY_TWO_CLIENT_ID":"","FORTY_TWO_CLIENT_SECRET":""},"types":"@benjaminnoufel/adonis-ally-42","providers":["@benjaminnoufel/adonis-ally-42"]},"licenseText":"MIT License\n\nCopyright (c) 2020 Benjamin Noufel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@benjaminnoufel/adonis-ally-42@1.0.2","dist":{"shasum":"9201925199163ffeb5457986efbc2b7e17ec9272","integrity":"sha512-wlSvDbGM4vobF+I28ClsWuhfTJNdYjybdmS3LuM55uJhuBAtz3/DJuQp236CYh4Xrou2W9AtAfVZQvloghxgqA==","tarball":"https://registry.npmjs.org/@benjaminnoufel/adonis-ally-42/-/adonis-ally-42-1.0.2.tgz","fileCount":15,"unpackedSize":20000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD7FGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRFBAAkjaRNkyTX8hddKrz12blbG/Se4j1rPdDItUomvPZMyg6eAzF\r\n9oszQp7N8HgVFU352MxGXYFoj7TEorMCOAhpyO2R8+qLJ7iiCrt0TwaJpi3Q\r\n1eyJuFyM+g20/NTAaRba5yRD9naEkAHCNNY6Sump5dMxeiilH3QdivgckFCI\r\nWUV+CI/H7FiPdn1za04DLt+jVSJZ41ADuPu0UrzEN5LSZkSuJJ40tpVh7WUc\r\nIwGKH5mIbGcZmXz+irRNYqJn4E4pK6uKadHbhLasNm3Msil79d0S6b5NcNSS\r\n0bPP7V/B4KKi0DO4LbqDnV9lpMBNh4goasA9IPuhhCb6eJN54SAK47TkHHXY\r\n0VPzgvh+tzd3Fa2092XDAlqKw7GH2IHugtnQ930utIMuPy0jgD381y1alTIu\r\nAA3oJqXjXkFjc6SNGIH8OzmcemhXT95qWJLepj5fHx27Ru4dbB+rah4xGed7\r\nQFd2VGu1iXBH9K60Gkl6eSMKmMO85kITfMIRQjhwQ4UXlVL82MWNiVbljWvQ\r\npJ1Fz2KkcNaC20FXjSYc2TMKHxrZenpAbVylUD0Yk8X3PNpBkaIQiUB2JNZ3\r\nTqbSTxrhPZ9rSzatfD6e1gmx0LP34USRve7EvAYjuPBH9aSbgBtCY2UZ5vZr\r\nZKc2KQGtlFl693/zplUKjM/FsgCcoUkBYwE=\r\n=nwNH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcxQipw3MBMDTMSfDLEuoVjjm2pABAoUAQWG6NKMJ51AiEAn3STcg6NnK9mdJXsc6ecPaoQgt6fkr4AfK/pFcF1hzA="}]},"_npmUser":{"name":"bnoufel","email":"benjamin.noufel@gmail.com"},"directories":{},"maintainers":[{"name":"bnoufel","email":"benjamin.noufel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adonis-ally-42_1.0.2_1645195590195_0.863601040077508"},"_hasShrinkwrap":false},"1.0.3":{"name":"@benjaminnoufel/adonis-ally-42","version":"1.0.3","description":"A 42 driver of AdonisJS Ally","main":"build/providers/index.js","types":"build/src/FortyTwo/index.d.ts","scripts":{"clean":"del build","copyfiles":"copyfiles \"instructions.md\" build","compile":"npm run lint && npm run clean && tsc","build":"npm run compile && npm run copyfiles","prepublishOnly":"npm run build","lint":"eslint . --ext=.ts","format":"prettier --write .","version":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/benjaminnoufel/adonis-ally-42.git"},"bugs":{"url":"https://github.com/benjaminnoufel/adonis-ally-42/issues"},"keywords":["adonisjs","adonis-ally","adonis-42","adonis-ally-42","@benjaminnoufel/adonis-ally-42"],"author":{"name":"Benjamin Noufel","url":"https://github.com/benjaminnoufel"},"license":"MIT","devDependencies":{"@adonisjs/ally":"4.1.1","@adonisjs/core":"5.4.0","@types/node":"15.12.2","copyfiles":"2.4.1","del-cli":"3.0.1","eslint":"7.32.0","eslint-config-prettier":"8.3.0","eslint-plugin-adonis":"1.3.2","eslint-plugin-prettier":"3.4.1","prettier":"2.4.1","typescript":"4.4.4"},"peerDependencies":{"@adonisjs/ally":"^4.0.0","@adonisjs/core":"^5.0.0"},"adonisjs":{"instructionsMd":"./build/instructions.md","env":{"FORTY_TWO_CLIENT_ID":"","FORTY_TWO_CLIENT_SECRET":""},"types":"@benjaminnoufel/adonis-ally-42","providers":["@benjaminnoufel/adonis-ally-42"]},"licenseText":"MIT License\n\nCopyright (c) 2020 Benjamin Noufel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"@benjaminnoufel/adonis-ally-42@1.0.3","dist":{"shasum":"b6707375d5b9f73d24648ae889bbbd1ac01c1fed","integrity":"sha512-D0gkD9UujmQF6zdD1uP+Ly8wTVKAQuPS0+jIcTOIuF+gj4NKYUTMgN745uP3DdkXQJRdrYvsUEiAn52dyyn65g==","tarball":"https://registry.npmjs.org/@benjaminnoufel/adonis-ally-42/-/adonis-ally-42-1.0.3.tgz","fileCount":15,"unpackedSize":20021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE48IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbtQ/8DnytiClzmKUZRH+y9MxzETtM9+83ZRd36pZbJ7v4C5zrciVg\r\nQmb5FDZvKH2OFmk/xGAtaJO1KHVEYLWbwdo2eRZbNcfw7HN1VLpVeXpVjLu9\r\nsYZ/vJqol53Uiclonzne+cBt9TLjLvh4kcp4FsYe0c6byUj2+IlCmOTOvarc\r\nfFYy3+podwtF9UqBrilQzfarcNIDo0BaMhpQXa471Gf3k6pvsLBiMKKcHdZU\r\nc43Ok7+5qQG228S4Y7GoTEXcfsjZ7HGTZCg+bqKOoyl5ONgICbhDX9cFM1rS\r\n0GcfHfQ+b/XNc1vvvmgxxqjQzZw54eIjykd9eutho9PqiVf1pdStlm+z+SCe\r\nB/TDaoFf5FLGig9wOTBI8Ia7p9hLXQj2UPItYzxHXw4klgvknR4+1LNS1jTj\r\n0A7F/HYpRoWq716SoqWpeVpwvbP+f6ln5dxnez94YMAOEwgYkASFNzS0FmKs\r\nWe+15RU0qzrQ06lpvCQBvZZE/J9vrtfXodp74LLcLaF5qa7TxXqeNykvTcKT\r\n16RxPvx8kC+prMq0rFaPQe4FprYgDSIz6aoc2Tsvgb0wFvVJBpU/IfL+vMWl\r\nWZX17r8e/AkW4L37laVVnIoXw+j9sra1qg7oHOFgPOqSktSM7nmBGMSZyUIF\r\n2fALDaqKzkcQCzx64vhqUPki/8TBL0wQeiI=\r\n=ycj6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlf09qvtFB8rw5wS2E3Mw1AROT4H/u2BxvD9R7Tz4GzQIhAOibl+60N8yAaxEVz/bYjw/n4cF5ezxFLgm61/NcQwmB"}]},"_npmUser":{"name":"bnoufel","email":"benjamin.noufel@gmail.com"},"directories":{},"maintainers":[{"name":"bnoufel","email":"benjamin.noufel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adonis-ally-42_1.0.3_1645448968514_0.6242742522973139"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-16T21:17:37.246Z","1.0.1":"2021-12-16T21:17:37.459Z","modified":"2022-04-04T18:22:50.447Z","1.0.2":"2022-02-18T14:46:30.401Z","1.0.3":"2022-02-21T13:09:28.641Z"},"maintainers":[{"name":"bnoufel","email":"benjamin.noufel@gmail.com"}],"description":"A 42 driver of AdonisJS Ally","keywords":["adonisjs","adonis-ally","adonis-42","adonis-ally-42","@benjaminnoufel/adonis-ally-42"],"repository":{"type":"git","url":"git+ssh://git@github.com/benjaminnoufel/adonis-ally-42.git"},"author":{"name":"Benjamin Noufel","url":"https://github.com/benjaminnoufel"},"bugs":{"url":"https://github.com/benjaminnoufel/adonis-ally-42/issues"},"license":"MIT","readme":"# Adonis Ally 42 Driver\n\n[![NPM version](https://img.shields.io/npm/v/adonis-ally-42.svg)](https://www.npmjs.com/package/adonis-ally-42)\n\nA [42](https://api.intra.42.fr/apidoc) driver for [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social)\n\n## Getting started\n\n### 1. Install the package\n\nInstall the package from your command line.\n\n```bash\nnpm install --save adonis-ally-42\n```\n\nor\n\n```bash\nyarn add adonis-ally-42\n```\n\n### 2. Configure the package\n\n```bash\nnode ace configure adonis-ally-42\n```\n\n### 3. Validate environment variables\n\n```ts\nFORTY_TWO_CLIENT_ID: Env.schema.string(),\nFORTY_TWO_CLIENT_SECRET: Env.schema.string(),\n```\n\n### 4. Add variables to your ally configuration\n\n```ts\nconst allyConfig: AllyConfig = {\n  // ... other drivers\n  fortyTwo: {\n    driver: 'fortyTwo',\n    clientId: Env.get('FORTY_TWO_CLIENT_ID'),\n    clientSecret: Env.get('FORTY_TWO_CLIENT_SECRET'),\n    callbackUrl: 'http://localhost:3333/42/callback',\n  },\n}\n```\n\n## Scopes\n\nYou can pass an array of scopes in your configuration, for example `['public']`. You have a full list of scopes in the [42 Oauth documentation](https://api.intra.42.fr/apidoc)\n\n## How it works\n\nYou can learn more about [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social) in the documentation. And learn about the implementation in the [ally-driver-boilerplate](https://github.com/adonisjs-community/ally-driver-boilerplate) repository.\n\n## Contributing\n\n1. Fork the repo\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'feat: Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}