Skip to content

feat: add json_body auth method type#87

Merged
matthiastjong merged 5 commits into
mainfrom
feature/json-body-auth-method
May 18, 2026
Merged

feat: add json_body auth method type#87
matthiastjong merged 5 commits into
mainfrom
feature/json-body-auth-method

Conversation

@matthiastjong
Copy link
Copy Markdown
Owner

Summary

  • New json_body auth method type that merges stored JSON credentials into the HTTP request body at the gateway
  • Stored fields override agent-supplied fields, keeping secrets safe from the agent
  • Use case: APIs like GoCardless Bank Account Data that require credentials in the POST body

Changes

  • Service: json_body added to VALID_TYPES + credential hint shows key names
  • Gateway: Body merge logic — parses stored JSON + agent body, merges with { ...agentBody, ...storedFields }
  • UI: Raw JSON textarea in auth method form
  • Form parsing: JSON object validation on create/edit
  • Tests: 3 integration tests (basic merge, stored-wins override, empty body)

Test plan

  • 268/268 tests passing (32 files)
  • 3 new gateway integration tests cover: basic merge, conflict resolution, empty body
  • Manual: create target, add json_body auth method, proxy POST request

🤖 Generated with Claude Code

Matthias 't Jong and others added 5 commits May 18, 2026 15:56
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…body

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matthiastjong matthiastjong merged commit 0e60502 into main May 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant