{"_id":"@adra-network/authentication-module","_rev":"5-d9a59beb06e18c5ee3a4a93183c07b96","name":"@adra-network/authentication-module","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"@adra-network/authentication-module","version":"0.0.1","description":"Authentication Module","repository":{"type":"git","url":"@adra-network/authentication-module"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags","lint":"eslint .","test":"vitest run","test:watch":"vitest watch"},"dependencies":{"@nuxt/kit":"^3.8.1","keycloak-js":"21.0"},"devDependencies":{"@nuxt/devtools":"latest","@nuxt/eslint-config":"^0.2.0","@nuxt/module-builder":"^0.5.3","@nuxt/schema":"^3.8.1","@nuxt/test-utils":"^3.8.1","@types/node":"^20.8.10","changelogen":"^0.5.5","eslint":"^8.53.0","nuxt":"^3.8.1","vitest":"^0.33.0"},"_id":"@adra-network/authentication-module@0.0.1","gitHead":"78f5626a29690679566e92a9facdf1bd24a52bf0","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-cT7bvQo2zyh7mj6a1YHst/AmSIfpoi1guDDMr8o88sZpleauxYdIK9bu6iEQlYYdjcB7CgLjY0YsavBZf9XjmA==","shasum":"96796c45fdc04d86e59932cecec3b4fc0c88c576","tarball":"https://registry.npmjs.org/@adra-network/authentication-module/-/authentication-module-0.0.1.tgz","fileCount":15,"unpackedSize":8962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq+wCqG0GcNWL1p/dz4WIs6aE56xVi7xLUDLu56XO89AIhAKC1AfDkyk33ODG/wRLsiffV9gO6im5ADiReSdrmlch3"}]},"_npmUser":{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"},"directories":{},"maintainers":[{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authentication-module_0.0.1_1700147474388_0.674368992679399"},"_hasShrinkwrap":false},"0.0.2":{"name":"@adra-network/authentication-module","version":"0.0.2","description":"Authentication Module","repository":{"type":"git","url":"@adra-network/authentication-module"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags","lint":"eslint .","test":"vitest run","test:watch":"vitest watch"},"dependencies":{"@nuxt/kit":"^3.8.1","keycloak-js":"^21.1"},"devDependencies":{"@nuxt/devtools":"latest","@nuxt/eslint-config":"^0.2.0","@nuxt/module-builder":"^0.5.3","@nuxt/schema":"^3.8.1","@nuxt/test-utils":"^3.8.1","@types/node":"^20.8.10","changelogen":"^0.5.5","eslint":"^8.53.0","nuxt":"^3.8.1","vitest":"^0.33.0"},"_id":"@adra-network/authentication-module@0.0.2","gitHead":"5f692086bffc131dce93d6dd7168681cd4c09d40","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-KHLDk1Dh3+w647CmG/giz1frydTMAAL2csbFM8QDVpSh2gqWT9c3sVhbnnBI9e9l+iY4LoEBeQB71xJvpbxC6w==","shasum":"0afcd34a4a4a98fb2bd0d7b834ac500e550222c4","tarball":"https://registry.npmjs.org/@adra-network/authentication-module/-/authentication-module-0.0.2.tgz","fileCount":15,"unpackedSize":8963,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyNbA4S5RqqsPb279n92UeAA0Qxag4yY5UYjaL7EUUDAiEAnIrukaj4Ntk2k0be/tZs4UR2+WwwbRikBhkHuwWp3mg="}]},"_npmUser":{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"},"directories":{},"maintainers":[{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authentication-module_0.0.2_1700148456440_0.7834261192889929"},"_hasShrinkwrap":false},"0.0.3":{"name":"@adra-network/authentication-module","version":"0.0.3","description":"Authentication Module","repository":{"type":"git","url":"@adra-network/authentication-module"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags","lint":"eslint .","test":"vitest run","test:watch":"vitest watch"},"dependencies":{"@nuxt/kit":"^3.8.1","keycloak-js":"^21.1"},"devDependencies":{"@nuxt/devtools":"latest","@nuxt/eslint-config":"^0.2.0","@nuxt/module-builder":"^0.5.3","@nuxt/schema":"^3.8.1","@nuxt/test-utils":"^3.8.1","@types/node":"^20.8.10","changelogen":"^0.5.5","eslint":"^8.53.0","nuxt":"^3.8.1","vitest":"^0.33.0"},"_id":"@adra-network/authentication-module@0.0.3","gitHead":"9b3d0057faa640b7d74f3aa1000e6d3b66fac04d","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-gV28FM9WrPEcnKN4rTRMR7kYwljR72lO+OoAR0lncwLF/In9WrU18iE2iotd714alXX6K/pEi6sHR+ziI5qvhQ==","shasum":"d7ebe8ca13aa1640fbdf9d85a556cb9da2ec901b","tarball":"https://registry.npmjs.org/@adra-network/authentication-module/-/authentication-module-0.0.3.tgz","fileCount":15,"unpackedSize":8981,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX8OpAkK8qkwc1GRqzDY8xaLd0N+qNR+J7cZGtAO970AiB0QupXzKRriUqrelfjZmN0MRoD1QxtC+YpL1gnFAQocQ=="}]},"_npmUser":{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"},"directories":{},"maintainers":[{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authentication-module_0.0.3_1700149193826_0.6831269270091158"},"_hasShrinkwrap":false},"0.0.4":{"name":"@adra-network/authentication-module","version":"0.0.4","description":"Authentication Module","repository":{"type":"git","url":"@adra-network/authentication-module"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags","lint":"eslint .","test":"vitest run","test:watch":"vitest watch"},"dependencies":{"@nuxt/kit":"^3.8.1","keycloak-js":"^21.1"},"devDependencies":{"@nuxt/devtools":"latest","@nuxt/eslint-config":"^0.2.0","@nuxt/module-builder":"^0.5.3","@nuxt/schema":"^3.8.1","@nuxt/test-utils":"^3.8.1","@types/node":"^20.8.10","changelogen":"^0.5.5","eslint":"^8.53.0","nuxt":"^3.8.1","vitest":"^0.33.0"},"_id":"@adra-network/authentication-module@0.0.4","gitHead":"a76b6db55a2c8a633af4c7afea2ed01d13cebade","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-u0grc7+brb7ySKl16gtl2wdR+jI1TwgnWKMZXhmAC6ycXRBVmzU809Mt82/NylowfXOTYpy9z+HCN61F5z7Sfw==","shasum":"e2f40b7bb59fd9d6814b5d6205d01ee3e8db96c1","tarball":"https://registry.npmjs.org/@adra-network/authentication-module/-/authentication-module-0.0.4.tgz","fileCount":15,"unpackedSize":9119,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrozOoBBQy9vpa4y7hI6Qdq3qcJIan31RMm0ONCLgVdAiB8467MAZ5PPAVoDQ3NcmrcETHIR8ajodso4KFLC07mcg=="}]},"_npmUser":{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"},"directories":{},"maintainers":[{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authentication-module_0.0.4_1700160037421_0.36626577166114327"},"_hasShrinkwrap":false},"0.0.5":{"name":"@adra-network/authentication-module","version":"0.0.5","description":"Authentication Module","repository":{"type":"git","url":"@adra-network/authentication-module"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/types.d.ts","import":"./dist/module.mjs","require":"./dist/module.cjs"}},"main":"./dist/module.cjs","types":"./dist/types.d.ts","scripts":{"prepack":"nuxt-module-build build","dev":"nuxi dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground","release":"npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags","lint":"eslint .","test":"vitest run","test:watch":"vitest watch"},"dependencies":{"@nuxt/kit":"^3.8.1","keycloak-js":"^21.1"},"devDependencies":{"@nuxt/devtools":"latest","@nuxt/eslint-config":"^0.2.0","@nuxt/module-builder":"^0.5.3","@nuxt/schema":"^3.8.1","@nuxt/test-utils":"^3.8.1","@types/node":"^20.8.10","changelogen":"^0.5.5","eslint":"^8.53.0","nuxt":"^3.8.1","vitest":"^0.33.0"},"_id":"@adra-network/authentication-module@0.0.5","gitHead":"5c510c25dd2236eec94d90da1a42d2332ec2b56e","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-aBd1L23Fb9sQ6/n0j680geIFMVx7kRwdSkKBhvma4g60mO3YQQol17ihBRCj33aPLIbG1QmeIsZGKbFIhx0gig==","shasum":"8a5c52c060e2aa9bdebbc4a5e699443cdd22214b","tarball":"https://registry.npmjs.org/@adra-network/authentication-module/-/authentication-module-0.0.5.tgz","fileCount":15,"unpackedSize":10395,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq4DHu2dkgvJJqJlMGeOrCEOzaal/h0zwz7PppLKTyAwIgSjoUM0ZY5ls+tBFaYVBA1lFyMDKJzBkq1GO8bR1jC08="}]},"_npmUser":{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"},"directories":{},"maintainers":[{"name":"relocate7140","email":"mark.leroux@adra.org"},{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authentication-module_0.0.5_1709244128815_0.6969300624657371"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-16T15:11:14.294Z","0.0.1":"2023-11-16T15:11:14.560Z","modified":"2024-02-29T22:02:09.842Z","0.0.2":"2023-11-16T15:27:36.601Z","0.0.3":"2023-11-16T15:39:54.003Z","0.0.4":"2023-11-16T18:40:37.676Z","0.0.5":"2024-02-29T22:02:08.999Z"},"maintainers":[{"name":"relocate7140","email":"mark.leroux@adra.org"},{"name":"francoisauclair911","email":"francois.auclair.911@gmail.com"}],"description":"Authentication Module","repository":{"type":"git","url":"@adra-network/authentication-module"},"license":"MIT","readme":"# @adra-network/authentication-module\n\nADRA Network Authentication Module for Nuxt 3 applications.\n\n- [✨ &nbsp;Release Notes](/CHANGELOG.md)\n\n## Quick Setup\n\n1. Add `@adra-network/authentication-module` dependency to your Nuxt 3 project\n\n```bash\n# Using npm\nnpm install @adra-network/authentication-module\n```\n\n2. Add `@adra-network/authentication-module` to the `modules` section of `nuxt.config.ts`\n\n```ts\n// nuxt.config.ts\n{\n    modules: [\n        ///...\n        '@adra-network/authentication-module',\n    ],\n}\n```\n\n3. Configure if needed via `nuxt.config.ts`\n\n```ts\n// nuxt.config.ts\n{\n    adraAuthentication: {\n    /**\n    * Base URL of  the authentication service\n    * @default process.env.AD_AUTHENTICATION_EXTERNAL_BASE_URL\n    */\n        url: string,\n    /**\n     * Realm name of the authentication service\n     * @default process.env.AD_AUTHENTICATION_DEFAULT_REALM || 'network'\n     */\n        realm: string,\n    /**\n     * Client ID of the frontend application\n     * @default process.env.AD_AUTHENTICATION_CLIENT_ID || 'adra-frontend'\n     */\n        clientId: string,\n    }\n}\n```\n\n4. Use it via the composable\n\n```js\n<script setup>\n  const {(authenticated, user, token, idToken, login, logout)} = useAuth();\n</script>\n```\n","readmeFilename":"README.md"}