Skip to content

Refactor HttpApi auth middleware wiring#24168

Merged
kitlangton merged 1 commit intodevfrom
refactor-httpapi-route-middleware
Apr 24, 2026
Merged

Refactor HttpApi auth middleware wiring#24168
kitlangton merged 1 commit intodevfrom
refactor-httpapi-route-middleware

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Move experimental HttpApi authorization middleware into a shared route-level auth module.
  • Attach authorization in each HttpApi route definition instead of wrapping APIs centrally in the server composer.
  • Model auth_token as an HttpApi query security scheme instead of rewriting request headers.

Testing

  • bun typecheck from packages/opencode

@kitlangton kitlangton merged commit 435becb into dev Apr 24, 2026
13 checks passed
@kitlangton kitlangton deleted the refactor-httpapi-route-middleware branch April 24, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant