@abtnode/blocklet-services 1.16.54-beta-20251023-041534-36eec6b9 → 1.16.54-beta-20251024-030947-6f2889bf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/socket/util.js +10 -5
- package/package.json +23 -23
package/api/socket/util.js
CHANGED
|
@@ -56,11 +56,16 @@ const ensureSenderApp = async ({ sender, node, nodeInfo }) => {
|
|
|
56
56
|
throw err;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
if (!sender.verified) {
|
|
60
|
+
// Requests from blocklet are signed by accessKeyWallet
|
|
61
|
+
let isValid = appInfo.accessKeyWallet && (await JWT.verify(sender.token, appInfo.accessKeyWallet.publicKey));
|
|
62
|
+
// Requests from service are signed by wallet
|
|
63
|
+
if (!isValid) {
|
|
64
|
+
isValid = await JWT.verify(sender.token, appInfo.wallet.publicKey);
|
|
65
|
+
}
|
|
66
|
+
if (!isValid) {
|
|
67
|
+
throw new Error(`Invalid authentication token for sender blocklet: ${sender.appDid}`);
|
|
68
|
+
}
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
appInfo.componentDid = sender.componentDid;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.54-beta-
|
|
6
|
+
"version": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@abtnode/analytics": "1.16.54-beta-
|
|
38
|
-
"@abtnode/auth": "1.16.54-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.54-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.54-beta-
|
|
41
|
-
"@abtnode/core": "1.16.54-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.54-beta-
|
|
43
|
-
"@abtnode/db-cache": "1.16.54-beta-
|
|
44
|
-
"@abtnode/logger": "1.16.54-beta-
|
|
45
|
-
"@abtnode/models": "1.16.54-beta-
|
|
46
|
-
"@abtnode/router-templates": "1.16.54-beta-
|
|
47
|
-
"@abtnode/util": "1.16.54-beta-
|
|
37
|
+
"@abtnode/analytics": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
38
|
+
"@abtnode/auth": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
40
|
+
"@abtnode/constant": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
41
|
+
"@abtnode/core": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
42
|
+
"@abtnode/cron": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
43
|
+
"@abtnode/db-cache": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
44
|
+
"@abtnode/logger": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
45
|
+
"@abtnode/models": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
46
|
+
"@abtnode/router-templates": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
47
|
+
"@abtnode/util": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
48
48
|
"@arcblock/did": "^1.26.3",
|
|
49
49
|
"@arcblock/did-connect-js": "^1.26.3",
|
|
50
50
|
"@arcblock/did-ext": "^1.26.3",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"@arcblock/jwt": "^1.26.3",
|
|
55
55
|
"@arcblock/validator": "^1.26.3",
|
|
56
56
|
"@arcblock/ws": "^1.26.3",
|
|
57
|
-
"@blocklet/constant": "1.16.54-beta-
|
|
57
|
+
"@blocklet/constant": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
58
58
|
"@blocklet/dbhub": "^0.2.9",
|
|
59
|
-
"@blocklet/env": "1.16.54-beta-
|
|
59
|
+
"@blocklet/env": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
60
60
|
"@blocklet/error": "^0.2.5",
|
|
61
61
|
"@blocklet/form-builder": "^0.1.12",
|
|
62
62
|
"@blocklet/form-collector": "^0.1.8",
|
|
63
|
-
"@blocklet/images": "1.16.54-beta-
|
|
64
|
-
"@blocklet/js-sdk": "1.16.54-beta-
|
|
65
|
-
"@blocklet/meta": "1.16.54-beta-
|
|
66
|
-
"@blocklet/rate-limit": "1.16.54-beta-
|
|
67
|
-
"@blocklet/sdk": "1.16.54-beta-
|
|
68
|
-
"@blocklet/server-js": "1.16.54-beta-
|
|
63
|
+
"@blocklet/images": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
64
|
+
"@blocklet/js-sdk": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
65
|
+
"@blocklet/meta": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
66
|
+
"@blocklet/rate-limit": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
67
|
+
"@blocklet/sdk": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
68
|
+
"@blocklet/server-js": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
69
69
|
"@blocklet/theme": "^3.1.51",
|
|
70
70
|
"@blocklet/theme-builder": "0.4.7",
|
|
71
71
|
"@blocklet/uploader-server": "^0.2.15",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"whatwg-url": "14.0.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@abtnode/ux": "1.16.54-beta-
|
|
128
|
+
"@abtnode/ux": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
129
129
|
"@arcblock/bridge": "^3.1.51",
|
|
130
130
|
"@arcblock/did-connect-react": "^3.1.51",
|
|
131
131
|
"@arcblock/icons": "^3.1.51",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@blocklet/did-space-react": "^1.1.34",
|
|
136
136
|
"@blocklet/launcher-layout": "^3.1.51",
|
|
137
137
|
"@blocklet/payment-react": "^1.21.17",
|
|
138
|
-
"@blocklet/tracker": "1.16.54-beta-
|
|
138
|
+
"@blocklet/tracker": "1.16.54-beta-20251024-030947-6f2889bf",
|
|
139
139
|
"@blocklet/ui-react": "^3.1.51",
|
|
140
140
|
"@blocklet/uploader": "^0.2.15",
|
|
141
141
|
"@emotion/react": "^11.14.0",
|
|
@@ -216,5 +216,5 @@
|
|
|
216
216
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
217
217
|
"email": "shijun@arcblock.io"
|
|
218
218
|
},
|
|
219
|
-
"gitHead": "
|
|
219
|
+
"gitHead": "73e5a3a80b82a2a7c62d42fdc08207b28e67633e"
|
|
220
220
|
}
|