feat(agent-bff): mint an agent token from the OAuth principal - #1800
Conversation
|
Coverage Impact This PR will not change total coverage. Modified Files with Diff Coverage (2)
🛟 Help
|
e31fe3f to
faa793a
Compare
faa793a to
4d6a0a1
Compare
|
Only rendering_id is validated at the trust boundary; other principal fields are silently coerced — src/api-key/agent-token.ts:88-96 + src/oauth/bff-token.ts:16-28 (raised independently by type-design + silent-failure hunter)
|
|
Thanks for digging in. I checked the three points against the code, here's where I land. 1. Only You're right that But the only producer of a
This becomes a real concern the day a second 2.
The On the 3. Redundant
At runtime though, the value comes out of a decoded JWT — Your underlying point is the real one: the field is What I did change: the One thing worth flagging while we're here, pre-existing and outside this diff: the same |
f461ca5 to
fe3ee88
Compare
# @forestadmin/agent-bff [1.11.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/agent-bff@1.10.0...@forestadmin/agent-bff@1.11.0) (2026-08-07) ### Features * **agent-bff:** mint an agent token from the OAuth principal ([#1800](#1800)) ([b2414db](b2414db))

fixes PRD-866
Problem
OAuth
bff_accesstokens authenticate successfully, but Mode 1 requests fail on agent routes because no downstream agent token is created.Fix
role, permissions, tags, and numericrenderingId.typeandsidclaims.Scope and safety
packages/agent-bff.How to test
yarn workspace @forestadmin/agent-bff test yarn workspace @forestadmin/agent-bff build yarn workspace @forestadmin/agent-bff lintDefinition of Done
General
Security