Skip to content

chore: removing api_key prefix in auth header#348

Merged
tanderson-ld merged 1 commit intomainfrom
ta/fix-auth-header
Apr 21, 2026
Merged

chore: removing api_key prefix in auth header#348
tanderson-ld merged 1 commit intomainfrom
ta/fix-auth-header

Conversation

@tanderson-ld
Copy link
Copy Markdown
Contributor

@tanderson-ld tanderson-ld commented Apr 21, 2026

Removes a very old prefix that hasn't been needed in awhile. FDv2 endpoints give 400s if the prefix is included, that is what is motivating this fix now.


Note

Medium Risk
Changes the Authorization header format sent on all SDK HTTP requests; if any backend/proxy still expects the legacy api_key prefix, requests could start failing. Test updates reduce regression risk but coverage is limited to mocked endpoints.

Overview
Removes the legacy api_key prefix from the SDK’s default Authorization header, sending the raw mobile key instead.

Updates unit/instrumentation tests (LDClientEventTest, HttpConfigurationBuilderTest, LDConfigTest) and deletes LDUtil.AUTH_SCHEME to reflect and enforce the new header value.

Reviewed by Cursor Bugbot for commit 2125955. Bugbot is set up for automated code reviews on this repo. Configure here.

@tanderson-ld tanderson-ld requested a review from kinyoklion April 21, 2026 20:47
@tanderson-ld tanderson-ld requested a review from a team as a code owner April 21, 2026 20:47
@tanderson-ld tanderson-ld merged commit 62255e9 into main Apr 21, 2026
9 checks passed
@tanderson-ld tanderson-ld deleted the ta/fix-auth-header branch April 21, 2026 20:59
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.

3 participants