Skip to content

feat(analytics): add service account authentication support#88

Draft
lajohn4747 wants to merge 9 commits into
masterfrom
johnla-multi-564-add-service-account-support-to-java-sdk
Draft

feat(analytics): add service account authentication support#88
lajohn4747 wants to merge 9 commits into
masterfrom
johnla-multi-564-add-service-account-support-to-java-sdk

Conversation

@lajohn4747

@lajohn4747 lajohn4747 commented Jun 22, 2026

Copy link
Copy Markdown

Summary

Add service account authentication for /import endpoint and feature flags.

  • Add ServiceAccountCredential class with field validation
  • Update MixpanelAPI to support service account auth for /import
  • Add service account support to feature flags (BaseFlagsConfig, providers)
  • Automatically inject credentials from MixpanelAPI Builder into flags configs
  • Add basic tests for auth methods and backward compatibility
  • Update README with usage examples

@lajohn4747 lajohn4747 requested review from a team and ketanmixpanel June 22, 2026 20:18
@linear-code

linear-code Bot commented Jun 22, 2026

Copy link
Copy Markdown

MULTI-564

@lajohn4747 lajohn4747 marked this pull request as draft June 23, 2026 00:36
@lajohn4747 lajohn4747 changed the title Support Service Account Authentication feat(analytics): add service account authentication support Jun 23, 2026
…ous class after builder

Java doesn't support creating anonymous subclasses from builder.build() return values.
Changed to use local class declarations within test methods to override sendImportData
and sendData for testing purposes.
The Builder constructor is private so tests cannot subclass MixpanelAPI
via Builder pattern. Simplified tests to just verify API construction
with and without credentials works correctly.
@lajohn4747 lajohn4747 marked this pull request as ready for review June 23, 2026 03:10
@lajohn4747 lajohn4747 requested review from efahk and tylerjroach June 23, 2026 03:10
@lajohn4747 lajohn4747 marked this pull request as draft June 30, 2026 21: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.

1 participant