Skip to content

fix: use single auth token for Helix Authorization header - #197

Merged
tripodsan merged 1 commit into
mainfrom
helix-single-auth-header
Sep 2, 2026
Merged

fix: use single auth token for Helix Authorization header#197
tripodsan merged 1 commit into
mainfrom
helix-single-auth-header

Conversation

@tripodsan

Copy link
Copy Markdown
Contributor

Summary

  • Helix (api.aem.live) only accepts a single bearer token in the Authorization header. persistence.put was comma-joining every connected user's auth token (as it does for da-admin), which breaks Helix writes whenever more than one user with write access is connected.
  • persistence.put now branches on isHelixDoc(ydoc.name): for Helix docs it sends just the first connection's auth token; for da-admin docs it keeps the existing dedup + comma-join behavior.

Test plan

  • Added persistence.put for a Helix doc with multiple connections uses only the first auth (no comma-join) in test/shareddoc.test.js, covering the regression this fix addresses.
  • npm test — 177 passing, coverage 99.68%.
  • npm run lint — clean.

🤖 Generated with Claude Code

Helix (api.aem.live) only accepts one bearer token in the Authorization
header, but multi-connection saves were comma-joining every connection's
auth like da-admin does, breaking Helix writes when multiple users had
write access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tripodsan
tripodsan requested a review from bosschaert September 2, 2026 09:01
@tripodsan
tripodsan merged commit 1a4f2e1 into main Sep 2, 2026
6 checks passed
@tripodsan
tripodsan deleted the helix-single-auth-header branch September 2, 2026 09:39
kptdobe pushed a commit that referenced this pull request Sep 2, 2026
## [1.7.9](v1.7.8...v1.7.9) (2026-09-02)

### Bug Fixes

* use single auth token for Helix Authorization header ([#197](#197)) ([1a4f2e1](1a4f2e1))
@kptdobe

kptdobe commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.7.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants