@voyant-travel/hono 0.127.0 → 0.127.2
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/dist/middleware/auth.js +8 -1
- package/package.json +5 -5
package/dist/middleware/auth.js
CHANGED
|
@@ -122,8 +122,15 @@ function applyAuthContext(c, auth) {
|
|
|
122
122
|
c.set("callerType", auth.callerType);
|
|
123
123
|
if (auth.actor)
|
|
124
124
|
c.set("actor", auth.actor);
|
|
125
|
-
if (auth.audience)
|
|
125
|
+
if (auth.audience !== undefined) {
|
|
126
126
|
c.set("audience", auth.audience);
|
|
127
|
+
}
|
|
128
|
+
else if (auth.actor) {
|
|
129
|
+
// VoyantAuthContext defines an omitted grant audience as the authenticated
|
|
130
|
+
// actor. Normalize once here so every downstream surface, including MCP,
|
|
131
|
+
// receives the same complete authorization context.
|
|
132
|
+
c.set("audience", auth.actor);
|
|
133
|
+
}
|
|
127
134
|
if (auth.scopes !== undefined)
|
|
128
135
|
c.set("scopes", auth.scopes);
|
|
129
136
|
if (auth.isInternalRequest !== undefined)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/hono",
|
|
3
|
-
"version": "0.127.
|
|
3
|
+
"version": "0.127.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -130,18 +130,18 @@
|
|
|
130
130
|
"drizzle-orm": "^0.45.2",
|
|
131
131
|
"hono": "^4.12.27",
|
|
132
132
|
"zod": "^4.4.3",
|
|
133
|
-
"@voyant-travel/core": "^0.
|
|
134
|
-
"@voyant-travel/db": "^0.114.
|
|
133
|
+
"@voyant-travel/core": "^0.124.0",
|
|
134
|
+
"@voyant-travel/db": "^0.114.7",
|
|
135
135
|
"@voyant-travel/types": "^0.109.2",
|
|
136
136
|
"@voyant-travel/utils": "^0.107.1",
|
|
137
|
-
"@voyant-travel/workflows": "^0.
|
|
137
|
+
"@voyant-travel/workflows": "^0.121.0"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
140
|
"@cloudflare/workers-types": "^4.20260702.1",
|
|
141
141
|
"typescript": "^6.0.3",
|
|
142
142
|
"vitest": "^4.1.9",
|
|
143
143
|
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
144
|
-
"@voyant-travel/workflows-orchestrator": "^0.
|
|
144
|
+
"@voyant-travel/workflows-orchestrator": "^0.121.0"
|
|
145
145
|
},
|
|
146
146
|
"files": [
|
|
147
147
|
"dist"
|