Skip to content

Fix critical auth: send access-token header instead of Authorization: Bearer#4

Merged
pimfeltkamp merged 1 commit intomainfrom
fix-auth-header-access-token
Apr 28, 2026
Merged

Fix critical auth: send access-token header instead of Authorization: Bearer#4
pimfeltkamp merged 1 commit intomainfrom
fix-auth-header-access-token

Conversation

@pimfeltkamp
Copy link
Copy Markdown
Contributor

Tracking: cryptohopper-resources#9. Sister PR to Node #9 and Python #4 — same critical bug, same fix.

The transport sent Authorization: Bearer <token> which the AWS API Gateway in front of api.cryptohopper.com/v1/* rejects with 405 Missing Authentication Token (it routes Authorization to a SigV4 parser). The Public API v1 uses access-token: <token> — confirmed by the live API docs and the legacy cryptohopper-ios-sdk / cryptohopper-android-sdk.

Changes:

  • cryptohopper.go:280 — header switched, comment added
  • cryptohopper_test.goTestRequest_BearerAndUserAgent renamed to TestRequest_AccessTokenAndUserAgent, asserts access-token: ch_test is set and Authorization is empty
  • Version constant + CHANGELOG bumped to v0.4.0-alpha.2

No public-API change.

Critical: every authenticated request was being rejected by the
AWS API Gateway in front of api.cryptohopper.com/v1/*. Switching to
access-token: <token> as documented in the official Cryptohopper
API docs and used by the legacy iOS/Android SDKs.

Bump to v0.4.0-alpha.2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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