You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: wire identity OAuth and gateway auth CLI options through to primitives (#522)
* fix: wire identity OAuth and gateway auth CLI options through to primitives
- CredentialPrimitive: register --type, --discovery-url, --client-id,
--client-secret, --scopes CLI options and route OAuth vs API key in
the action handler
- GatewayPrimitive: add allowedScopes, agentClientId, agentClientSecret
to AddGatewayOptions interface, pass them in the action handler, and
map them in buildGatewayConfig()
- useCreateMcp: pass allowedScopes, agentClientId, agentClientSecret
from TUI jwtConfig through to gatewayPrimitive.add()
These fields were documented, supported in TUI wizards, validated, and
handled by downstream code — but never wired through the CLI option
registration or the primitive plumbing layer. The identity bug caused
Commander.js to reject OAuth flags outright. The gateway bug silently
dropped the values.
* test: add integration tests for identity OAuth and gateway auth CLI flows
- add-identity.test.ts: verify OAuth credential creation via CLI with
--type oauth, --discovery-url, --client-id, --client-secret, --scopes
persists OAuthCredentialProvider to agentcore.json and env vars to
.env.local
- add-gateway.test.ts: verify --allowed-scopes and --agent-client-id/
--agent-client-secret persist allowedScopes to mcp.json and create
managed OAuth credential in agentcore.json
0 commit comments