Skip to content

Update merchant authentication to handle multiple merchants on one Segment instance - #3974

Open
jramorris wants to merge 2 commits into
segmentio:mainfrom
friendbuy:fix-mapi-auth
Open

Update merchant authentication to handle multiple merchants on one Segment instance#3974
jramorris wants to merge 2 commits into
segmentio:mainfrom
friendbuy:fix-mapi-auth

Conversation

@jramorris

@jramorris jramorris commented Aug 24, 2026

Copy link
Copy Markdown

A summary of your pull request, including the what change you're making and why.

Previously a single merchant authentication was cached, causing the same token to be used for multiple merchants when running on the same instance. This update sets a cached token per merchant.

Testing

Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.

  • Added unit tests for new functionality
  • Tested end-to-end using the local server
  • [If destination is already live] Tested for backward compatibility of destination. Note: New required fields are a breaking change.
  • [Segmenters] Tested in the staging environment
  • [Segmenters] [If applicable for this change] Tested for regression with Hadron.

Security Review

Please ensure sensitive data is properly protected in your integration.

  • Reviewed all field definitions for sensitive data (API keys, tokens, passwords, client secrets) and confirmed they use type: 'password'

New Destination Checklist

  • Extracted all action API versions to verioning-info.ts file. example

leaving this unchecked as this is not a new destination

@jramorris
jramorris requested a review from a team as a code owner August 24, 2026 17:57
@jramorris jramorris changed the title Fix mapi auth Update merchant authentication to handle multiple merchants on one Segment instance Aug 24, 2026
@jramorris
jramorris marked this pull request as draft August 24, 2026 18:03
@jramorris
jramorris marked this pull request as ready for review August 24, 2026 18:26
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