tachybase_todo/packages/plugins/api-keys/package.json
Dunqing 6cfd586175
feat(plugin-api-keys): support fetch api via api-keys (#2136)
* feat(plugin-api-keys): support fetch api via api-keys

* feat: full support

* fix: missing parseToken in auth

* feat: add created at column

* feat: configure snippet

* fix: remove unused code

* fix: revert

* chore: update deps

* feat: improve role

* fix: avoid create api key without not exist role

* feat: improve select roles

* refactor: when no X-Role is found, roles should not be randomly assigned

* feat: improve code

* feat: improve current role

* fix: revert

* fix: revert apilicent

* fix: revert auth

* feat: improve currentRole logic

* feat: use resourcer.use instead it

* refactor: remove api-keys-auth

* fix: type

* refactor: move jwt to authManager

* refactor: remove unused code

* refactor: remove protected

* Revert "refactor: remove unused code"

This reverts commit 8f81535ab7e9c412bdc4d4bc05abad64ff60ba3f.

* feat: remove unused code

* feat: improve code

* fix: test error

* test: update test

* test: add test cases

* docs: update

* chore: update X-Role

* fix: token's roleName not work

* docs: update usage

* fix: i18n Add APi key

* docs: update capital

* docs: update

* feat: clean

* Update package.json

* Update roles.ts

* fix: api key

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-30 11:20:35 +08:00

25 lines
794 B
JSON

{
"name": "@nocobase/plugin-api-keys",
"displayName": "API keys",
"displayName.zh-CN": "API keys",
"description": "Allow user use API key to fetch nocobase api",
"description.zh-CN": "允许用户使用 api 密钥来访问 nocobase api",
"version": "0.10.0-alpha.5",
"license": "AGPL-3.0",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"dependencies": {
"@nocobase/actions": "0.10.0-alpha.5",
"@nocobase/database": "0.10.0-alpha.5",
"@nocobase/resourcer": "0.10.0-alpha.5",
"@nocobase/server": "0.10.0-alpha.5",
"@nocobase/utils": "0.10.0-alpha.5",
"jsonwebtoken": "^8.5.1"
},
"devDependencies": {
"@nocobase/test": "0.10.0-alpha.5",
"@types/jsonwebtoken": "^8.5.8"
},
"gitHead": "ce588eefb0bfc50f7d5bbee575e0b5e843bf6644"
}