{"_id":"@apiquest/plugin-auth","_rev":"9-dae4aca7f37c76b5181e2fe43a6ae607","name":"@apiquest/plugin-auth","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.2":{"name":"@apiquest/plugin-auth","version":"1.0.2","keywords":["apiquest","auth","authentication","bearer","oauth2"],"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","_id":"@apiquest/plugin-auth@1.0.2","maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"dist":{"shasum":"e3c638d6c219f61f9ac1a694638e1dbc53fec48d","tarball":"https://registry.npmjs.org/@apiquest/plugin-auth/-/plugin-auth-1.0.2.tgz","fileCount":39,"integrity":"sha512-iGWPtyGrPHEg0hrTt15xJDNN/iB38VcDLF/hs8HlLCVw5JISmUXoMZzbOr63v5O1rO4LcYTolA7h3eOaVSnIOw==","signatures":[{"sig":"MEYCIQDhbFFMuDO2rA1LQZ2OGxoGJgqvAWRekA5auoCkZCgd6wIhAInGZrenbxqkzYaL/aD/d+a/9yG7E9THI/JlGnmT7ljl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1285376},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"cc008f70e2eb4b1dcbec98229b945d69599224f4","scripts":{"dev":"rollup -c --watch","test":"vitest","build":"rollup -c && tsc --emitDeclarationOnly"},"_npmUser":{"name":"lto-dev","email":"lto-dev@humanhub.io"},"apiquest":{"type":"auth","runtime":["fracture"],"capabilities":{"provides":{"authTypes":["bearer","basic","apikey","oauth2"]},"supports":{"protocols":["http","graphql","grpc"]}}},"_npmVersion":"11.7.0","description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","directories":{},"_nodeVersion":"22.16.0","dependencies":{"got":"^14.6.6"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.7.0","rollup":"^4.0.0","vitest":"^4.0.18","typescript":"^5.0.0","@apiquest/types":"workspace:*","@rollup/plugin-commonjs":"^25.0.0","@rollup/plugin-typescript":"^11.0.0","@rollup/plugin-node-resolve":"^15.0.0"},"peerDependencies":{"@apiquest/types":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-auth_1.0.2_1770929870420_0.8872007379998283","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@apiquest/plugin-auth","version":"1.0.4","keywords":["apiquest","auth","authentication","bearer","oauth2"],"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","_id":"@apiquest/plugin-auth@1.0.4","maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"homepage":"https://github.com/hh-apiquest/fracture#readme","bugs":{"url":"https://github.com/hh-apiquest/fracture/issues"},"dist":{"shasum":"463aae1869e0e35810fca7e8a25b56cbd19cbda9","tarball":"https://registry.npmjs.org/@apiquest/plugin-auth/-/plugin-auth-1.0.4.tgz","fileCount":28,"integrity":"sha512-GGKpsiMhk/igLA26lyGRw2zm1u9AdWke5ar7HUjsSqDN3XauYFSc2uxatfIBx4pWi1lyuDYheJOY6pkfGJURzA==","signatures":[{"sig":"MEUCIQDSaJZFEoRFIXf0ktxKlD49RbOamecyebDYYizKQXzq3AIgNlgjQX2eqBHUyUg39vc7ZeGaQMFWNmobA/VhRfGm7Ag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apiquest%2fplugin-auth@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1285903},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"871bbdc6cbe888807cdc9474dcaf528863c729a4","scripts":{"dev":"rollup -c --watch","test":"vitest","build":"rollup -c && tsc --emitDeclarationOnly"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fb72889-9272-4fb4-b5e3-335a91e636a1"}},"apiquest":{"type":"auth","runtime":["fracture"],"capabilities":{"provides":{"authTypes":["bearer","basic","apikey","oauth2"]},"supports":{"protocols":["http","graphql","grpc"]}}},"repository":{"url":"git+https://github.com/hh-apiquest/fracture.git","type":"git","directory":"packages/plugin-auth"},"_npmVersion":"11.10.0","description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"got":"^14.6.6"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.7.0","rollup":"^4.57.1","vitest":"^4.0.18","typescript":"^5.0.0","@apiquest/types":"workspace:*","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3"},"peerDependencies":{"@apiquest/types":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-auth_1.0.4_1770955546489_0.7223456020215693","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@apiquest/plugin-auth","version":"1.0.5","keywords":["apiquest","auth","authentication","bearer","oauth2"],"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","_id":"@apiquest/plugin-auth@1.0.5","maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"homepage":"https://github.com/hh-apiquest/fracture#readme","bugs":{"url":"https://github.com/hh-apiquest/fracture/issues"},"dist":{"shasum":"461337efcf1704ea07b5f546717883de7d0fbe3b","tarball":"https://registry.npmjs.org/@apiquest/plugin-auth/-/plugin-auth-1.0.5.tgz","fileCount":22,"integrity":"sha512-pvrswdjj1kf8KWLWuMXF1VNbKCW4YSUNQkLoFfbYdk3H01kWZ4eXoz5oHlElX6/GqllZYfd8NLKIgnbBDoxBPg==","signatures":[{"sig":"MEUCIQDthreSrif30EtnujEaah3Rdl1Ecp1a70uMK1n+1tEnkgIgIa1l7cC6sUy8noaZcZ0iO65utDnNetMfgfbrFjhcI/A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apiquest%2fplugin-auth@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1265685},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"368dd13b898628c3c57b06cc4bf60d16668811e1","scripts":{"dev":"rollup -c --watch","test":"vitest","build":"rollup -c && tsc --emitDeclarationOnly"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fb72889-9272-4fb4-b5e3-335a91e636a1"}},"apiquest":{"type":"auth","runtime":["fracture"],"capabilities":{"provides":{"authTypes":["bearer","basic","apikey","oauth2"]},"supports":{"protocols":["http","graphql","grpc"]}}},"repository":{"url":"git+https://github.com/hh-apiquest/fracture.git","type":"git","directory":"packages/plugin-auth"},"_npmVersion":"11.10.0","description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"got":"^14.6.6"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.7.0","rollup":"^4.57.1","vitest":"^4.0.18","typescript":"^5.0.0","@apiquest/types":"workspace:*","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3"},"peerDependencies":{"@apiquest/types":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-auth_1.0.5_1771032911820_0.1801747590882763","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@apiquest/plugin-auth","version":"1.0.6","keywords":["apiquest","auth","authentication","bearer","oauth2"],"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","_id":"@apiquest/plugin-auth@1.0.6","maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"homepage":"https://github.com/hh-apiquest/fracture#readme","bugs":{"url":"https://github.com/hh-apiquest/fracture/issues"},"dist":{"shasum":"b007c6614c51c15673accb138e387bdd9245e83b","tarball":"https://registry.npmjs.org/@apiquest/plugin-auth/-/plugin-auth-1.0.6.tgz","fileCount":22,"integrity":"sha512-A66bLu7CVLsEWSWhn8V9elO3Gtx96hvWUsbMUPLQ+IjkwxNrYzULkul/nwbnrNBTZFIrbhBzW894G+skbGjd+g==","signatures":[{"sig":"MEUCIERBa/hGpmWUCHs+xd7rk2/XS3XAtIKLOjob+CoEuL6cAiEAyq9t4i45MGMUXmE6OI8bq1Menz6Z4Jrj5i2LV0ptRKg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apiquest%2fplugin-auth@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1265685},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"17e6fe16873a66ae8ff3565d1f064752ef3b2f81","scripts":{"dev":"rollup -c --watch","test":"vitest","build":"rollup -c && tsc --emitDeclarationOnly"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fb72889-9272-4fb4-b5e3-335a91e636a1"}},"apiquest":{"type":"auth","runtime":["fracture"],"capabilities":{"provides":{"authTypes":["bearer","basic","apikey","oauth2"]},"supports":{"protocols":["http","graphql","grpc"]}}},"repository":{"url":"git+https://github.com/hh-apiquest/fracture.git","type":"git","directory":"packages/plugin-auth"},"_npmVersion":"11.10.0","description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"got":"^14.6.6"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.7.0","rollup":"^4.57.1","vitest":"^4.0.18","typescript":"^5.0.0","@apiquest/types":"workspace:*","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3"},"peerDependencies":{"@apiquest/types":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-auth_1.0.6_1771210859758_0.5374768247293884","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@apiquest/plugin-auth","version":"1.0.8","keywords":["apiquest","auth","authentication","bearer","oauth2"],"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","_id":"@apiquest/plugin-auth@1.0.8","maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"homepage":"https://github.com/hh-apiquest/fracture#readme","bugs":{"url":"https://github.com/hh-apiquest/fracture/issues"},"dist":{"shasum":"a34cd270537a22b98cfcaf850adfff4829135b6f","tarball":"https://registry.npmjs.org/@apiquest/plugin-auth/-/plugin-auth-1.0.8.tgz","fileCount":22,"integrity":"sha512-lQxgJ7QVt0g8IO7RoLRiFbXHpwftM+exYaq2m6pF68MosBDWlm7UoxggffHM//Oh8mYdVSEAesdQKffwhVfNUg==","signatures":[{"sig":"MEUCICc1FEqIqK62nmPggn1sPvbLL4DEJcojLLIBknb07N9qAiEAq+evGSUNhFblqmb7KnkJQ8fWsOXaw+ZFlfyA06yjqj0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apiquest%2fplugin-auth@1.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1265708},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"3437c3f8ec14a804ffc2a2dd072fe694b9287907","scripts":{"dev":"rollup -c --watch","test":"vitest","build":"rollup -c && tsc --emitDeclarationOnly"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fb72889-9272-4fb4-b5e3-335a91e636a1"}},"apiquest":{"type":"auth","runtime":["fracture"],"capabilities":{"provides":{"authTypes":["bearer","basic","apikey","oauth2"]},"supports":{"protocols":["http","graphql","grpc"]}}},"repository":{"url":"git+https://github.com/hh-apiquest/fracture.git","type":"git","directory":"packages/plugin-auth"},"_npmVersion":"11.11.0","description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"got":"^14.6.6"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.7.0","rollup":"^4.57.1","vitest":"^4.0.18","typescript":"^5.0.0","@apiquest/types":"workspace:*","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3"},"peerDependencies":{"@apiquest/types":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-auth_1.0.8_1772561822071_0.48891390541943824","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@apiquest/plugin-auth","version":"1.0.9","description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","type":"module","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/hh-apiquest/fracture.git","directory":"packages/plugin-auth"},"scripts":{"build":"rollup -c && tsc --emitDeclarationOnly","dev":"rollup -c --watch","test":"vitest"},"keywords":["apiquest","auth","authentication","bearer","oauth2","plugin","fracture"],"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","peerDependencies":{"@apiquest/types":"^1.0.0"},"dependencies":{"got":"^14.6.6"},"devDependencies":{"@apiquest/types":"workspace:*","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-typescript":"^12.3.0","rollup":"^4.57.1","tslib":"^2.7.0","typescript":"^5.0.0","vitest":"^4.0.18"},"apiquest":{"type":"auth","runtime":["fracture"],"capabilities":{"provides":{"authTypes":["bearer","basic","apikey","oauth2"]},"supports":{"protocols":["http","graphql","grpc"]}}},"gitHead":"f8a7595a8b6f65c9388c6a394fda2b23db45c850","_id":"@apiquest/plugin-auth@1.0.9","bugs":{"url":"https://github.com/hh-apiquest/fracture/issues"},"homepage":"https://github.com/hh-apiquest/fracture#readme","_nodeVersion":"20.20.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-O4xBGiSowDf0Ms02wn9O+FLWK+ltkgm47DO6TCoisWATvPPTIVXNtEZq7rW5Ra3uIQgF+EWkWsiYLqLux0bTOA==","shasum":"88c0a8837ada4d459a5c422be12b8ae53a3c0dfb","tarball":"https://registry.npmjs.org/@apiquest/plugin-auth/-/plugin-auth-1.0.9.tgz","fileCount":22,"unpackedSize":1265738,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apiquest%2fplugin-auth@1.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCjYKwD1fPlio9SE/pAbBd0W/v/XuOz0l4E6TDZ/Dlf4QIhANRJUERBPT8ANHpwKP8qVTk/A4naDXJInvFcp17rS1WR"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4fb72889-9272-4fb4-b5e3-335a91e636a1"}},"directories":{},"maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-auth_1.0.9_1772591647590_0.9732673537252039"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-11T03:14:59.318Z","modified":"2026-03-04T02:34:08.077Z","1.0.1":"2026-02-11T03:14:59.656Z","1.0.2":"2026-02-12T20:57:50.688Z","1.0.4":"2026-02-13T04:05:46.654Z","1.0.5":"2026-02-14T01:35:12.004Z","1.0.6":"2026-02-16T03:00:59.936Z","1.0.8":"2026-03-03T18:17:02.323Z","1.0.9":"2026-03-04T02:34:07.745Z"},"bugs":{"url":"https://github.com/hh-apiquest/fracture/issues"},"author":{"name":"ApiQuest Contributors"},"license":"AGPL-3.0-or-later","homepage":"https://github.com/hh-apiquest/fracture#readme","keywords":["apiquest","auth","authentication","bearer","oauth2","plugin","fracture"],"repository":{"type":"git","url":"git+https://github.com/hh-apiquest/fracture.git","directory":"packages/plugin-auth"},"description":"Authentication plugins for ApiQuest (Bearer, Basic, OAuth2, API Key)","maintainers":[{"name":"lto-dev","email":"lto-dev@humanhub.io"}],"readme":"# @apiquest/plugin-auth\n\nAuthentication plugins for ApiQuest. Provides Bearer, Basic, OAuth2, and API Key authentication support for HTTP-based protocols.\n\n## Installation\n\n```bash\n# Using npm\nnpm install -g @apiquest/plugin-auth\n\n# Or using fracture CLI\nfracture plugin install auth\n```\n\n## Supported Authentication Types\n\n- **Bearer Token** - Authorization: Bearer {token}\n- **Basic Auth** - Username/password authentication\n- **OAuth2** - OAuth 2.0 client credentials flow\n- **API Key** - Custom header or query parameter authentication\n\n## Usage\n\nAuthentication is configured at the collection, folder, or request level:\n\n```json\n{\n  \"auth\": {\n    \"type\": \"bearer\",\n    \"bearer\": {\n      \"token\": \"{{authToken}}\"\n    }\n  }\n}\n```\n\n### Bearer Token\n\n```json\n{\n  \"auth\": {\n    \"type\": \"bearer\",\n    \"bearer\": {\n      \"token\": \"your-access-token\"\n    }\n  }\n}\n```\n\n### Basic Authentication\n\n```json\n{\n  \"auth\": {\n    \"type\": \"basic\",\n    \"basic\": {\n      \"username\": \"{{username}}\",\n      \"password\": \"{{password}}\"\n    }\n  }\n}\n```\n\n### API Key\n\n```json\n{\n  \"auth\": {\n    \"type\": \"apikey\",\n    \"apikey\": {\n      \"key\": \"x-api-key\",\n      \"value\": \"{{apiKey}}\",\n      \"in\": \"header\"\n    }\n  }\n}\n```\n\n### OAuth2 Client Credentials\n\n```json\n{\n  \"auth\": {\n    \"type\": \"oauth2\",\n    \"oauth2\": {\n      \"grantType\": \"client_credentials\",\n      \"tokenUrl\": \"https://auth.example.com/oauth/token\",\n      \"clientId\": \"{{clientId}}\",\n      \"clientSecret\": \"{{clientSecret}}\",\n      \"scope\": \"api:read api:write\"\n    }\n  }\n}\n```\n\n## Compatibility\n\nWorks with protocol plugins that support HTTP-based authentication:\n- `@apiquest/plugin-http`\n- `@apiquest/plugin-graphql`\n- `@apiquest/plugin-sse`\n\n## Documentation\n\n- [Fracture Documentation](https://apiquest.net/docs/fracture)\n- [Schema Reference](https://apiquest.net/schemas/collection-v1.0.json)\n\n## License\n\nDual-licensed under AGPL-3.0-or-later and commercial license. See [LICENSE](LICENSE) for details.\n","readmeFilename":"README.md"}