Creating Magento Open Source integrations with OAuth

A planning and setup guide for connecting an ERP, PIM or marketplace to Magento Open Source with an integration, its consumer keys and access tokens, and the resource permissions that limit it.

On this page

When a Magento Open Source integration with OAuth is the right connector pattern

An integration in Magento Open Source is a credential record that lets an external system, such as an ERP, PIM or marketplace connector, call the store's APIs on its own behalf, without a shopper or staff member signing in. Teams choose it when a connector must read and write catalog, order, customer or inventory data on a schedule or in response to events, and when that work should run under a named, reviewable identity rather than under a person's login. The integration is the object you configure in the admin panel, and the access it grants is limited to the resources you select for it.

The distinction that matters is between an integration and the tokens used by customers and admin users. Customer and admin tokens represent a person signing in, so their lifetime, two-factor requirements and revocation follow that person's session. An integration represents a system. You define its resource permissions once, activate it to generate its credentials, and then manage it as a service account: it can be disabled or reissued without touching anyone's login. The same consumer key and access token model applies whether the connector later calls the REST, SOAP or GraphQL API, but the permissions you grant must cover every API surface the connector uses. Confirm in your own install which resources each API exposes before you grant them, because a connector that works on REST may still be missing permissions needed on another surface.

Before choosing this pattern, check two things with your connector vendor and your own environment. First, confirm whether the connector uses OAuth 1.0a with the consumer key and token pair that the integration produces, since a connector that expects a different flow will not fit this model. Second, decide who owns the integration record and how its access is reviewed when the connector or its maintainers change. Treat the integration as a privileged account from the start: scope its resources to the minimum the connector needs, and plan the review and rotation steps in the same change that activates it.

How an ERP connector gets authorized to call the store

The flow starts in the Magento admin, where staff create an integration and grant it only the resource permissions the connector needs. Activation then generates the consumer key and secret, which the connector exchanges for access tokens. Every API call from the ERP travels inside the client's own network to the self-hosted store, so the check to confirm is that each token maps to one integration with the narrowest scope that still works.

Integration setup, token exchange and API calls inside the client network.

Which integration settings fit which connector

This table compares three configuration choices for a Magento Open Source integration: resource scope, credential sharing and token secret handling. Read each row as a decision with its fit, its risk and the points to confirm in your own environment before activation. The main takeaway is that narrow scope and one integration per connector make each credential easier to review, rotate and revoke.

SettingWhen it fitsRisk it carriesWhat to confirm
Broad resource permissionsShort proof-of-concept connectors in a non-production store where the full data set must be testedAny leaked token can read or change every resource the integration was granted, including customers, orders and pricingWhich resources the connector truly calls, and whether the broad grant can be reduced before go-live
Narrow resource permissionsProduction ERP, PIM or marketplace connectors with a documented list of endpoints they useMissing a resource causes failed syncs, so the list needs testing against each connector jobThe connector vendor's endpoint list, and a test run that covers every scheduled job
One integration per connectorSeparate ERP, PIM and marketplace connectors that have different owners, schedules and data needsMore integrations to inventory and review, but a compromise or retirement affects only one connectorA named owner for each integration and a record of which system uses which credential
Shared credentials across connectorsRarely justified, sometimes found in legacy setups where one connector already holds a working tokenOne token exposure reaches every connected system, and removing one connector can break the othersWhether any existing connector depends on a credential it does not own, and how it would be migrated
Handling the token secret at creationStore the consumer secret and access token only in the connector's approved secrets store with restricted accessSecrets pasted into tickets, chat or configuration files are copied beyond the intended ownerWhere the connector platform keeps credentials, who can read them, and whether values are rotated on staff changes
Keeping the secret out of shared recordsAny environment where operations, support or consultants open integration screensScreens and exports can expose values to users who never needed themWhich admin roles can view integration details, and whether two-factor authentication applies to those roles

Setting up the integration step by step

This sequence takes an ERP, PIM or marketplace connector from data requirements to a tested integration with a documented consumer key, secret and access tokens, and with access limited to the resources it needs.

  1. Define the connector's data needs

    Before anyone opens the admin panel, the integration owner lists every entity the connector must read or write, such as products, categories, inventory sources, orders, customers or prices, and notes the direction and frequency of each flow. Security and the store team review the list together. The step is done when the list is written down, each line names one resource group, and the owner has marked which lines need write access. Anything not on the list should stay out of the integration.

  2. Create the integration in the admin panel

    A store administrator opens the integration screen in the Magento Open Source admin panel and creates a new integration with a name that identifies the connector and its owner, such as the ERP name and the team responsible. Leave the integration in its inactive state at this point. The step is complete when the integration appears in the list with a status that shows it has not yet been activated and no tokens have been issued.

  3. Set resource permissions

    In the integration's API tab, the administrator selects only the ACL resources that match the data needs from step one, and clears the rest. Permissions should be granted by resource rather than by broad group where the admin panel allows it. Check each selected resource against the list, and confirm that write resources are limited to the flows that require them. The step is done when the saved resource tree matches the written list exactly.

  4. Activate the integration and approve it

    The administrator activates the integration, which opens the screen that issues the consumer key and consumer secret. Activation should be done by an administrator who is not the connector's developer, so that one person does not both define and approve access. Record the confirmation that the integration now shows an active status. The step is done when the activation is logged in the store's admin activity records and the integration status reads as active.

  5. Record the consumer key and secret

    The connector's operator copies the consumer key and consumer secret into the connector's secret store, not into a shared document, a ticket or source code. The secret is shown once in the admin flow, so the operator should confirm the value is saved before closing the screen. The step is done when both values are stored in the approved vault, the storage location is recorded in the integration runbook, and no copy remains in chat or email.

  6. Generate and store the access tokens

    The connector completes the OAuth 1.0a handshake using the consumer key and secret, which produces an access token and token secret tied to this integration. The administrator approves the request from the admin panel where the flow requires it. The connector stores the token pair in the same secret store as the consumer credentials. The step is done when the connector holds a working token pair and the integration screen shows the token as issued.

  7. Test a read and a write from the connector

    The connector runs one read request against a resource in the allowed list, then one write request against a non-production record or a test product in a staging store. Both calls should return success for the expected resource. Confirm the write is visible in the admin panel and then removed or reverted. The step is done when the read and write both succeed and the results are logged with the request time and token identifier.

  8. Confirm that only listed resources respond

    The tester sends requests to at least one resource that was not selected in step three, and to a resource in the store that the connector should never reach. Each of these calls should be refused with an authorization error. Repeat the check with a token from a deactivated or revoked integration to confirm it no longer works. The step is done when every unlisted resource is refused, the result is recorded in the integration runbook, and any unexpected success sends the work back to step three.

Why bearer token use is off by default and when to enable it

Bearer token authentication is off by default, so an ERP, PIM or marketplace connector set up through the Magento Open Source admin normally authenticates with OAuth 1.0a: a consumer key and secret exchanged for an access token and token secret, with each request signed. Turning bearer use on changes how that integration may authenticate. The connector can then send the access token as a single value in the Authorization header, which many third-party tools find simpler to implement. Before changing the setting, confirm whether it applies to the whole instance or only to the integration, because that determines how much of the store the change affects.

The trade-off is interoperability against credential exposure. Some connectors can only send bearer headers, and enabling the option lets them connect without custom signing code. The cost is that a bearer token works for anyone who holds it. If it is copied from a connector's configuration, a proxy log, a debug trace or a backup, it can be replayed from another machine, and the request carries no proof that the holder knows the token secret. OAuth 1.0a signing makes captured requests much harder to reuse. Ask the connector vendor how it stores the token, and confirm how long integration tokens remain valid on your version, since a leaked long-lived token stays usable until someone revokes it.

Enable bearer use only for a named connector that cannot sign requests, and only after its documentation confirms that it requires bearer authentication. Give that integration the narrowest resource permissions it needs, keep the token out of logs and shared tickets, record who approved the change, and plan revocation for when the connector is retired or staff change. Confirm the current default and the exact location of the setting in the documentation for your installed version, and check it again after each upgrade, because defaults and menu locations can change between releases. Test the connector in a non-production store first.

Security and operational controls for integration credentials

An OAuth integration is a long-lived machine identity with its own permissions, so its risk outlives the project that created it. The six controls below work together: they limit what a token can reach, keep the secrets out of reach, and make sure access can be seen, changed and ended.

Least-privilege resource permissions

Select only the resources the connector needs in the integration's resource access setting, rather than granting all resources to get the sync running. An ERP connector that reads orders and posts inventory usually does not need customer account administration or store configuration. Before activation, list each resource the connector calls and confirm it against the vendor's documentation for that connector. Re-check the list after every connector upgrade, because new versions often request extra endpoints.

Release notes

Secret storage in a vault

The consumer key, consumer secret and access tokens should live in a secrets manager that your platform team controls, not in a spreadsheet, a ticket or a shared chat channel. Inject them into the connector at runtime and restrict read access to the service account that runs it. Confirm that the connector can read from your vault without writing the secret to its own configuration files or logs.

Rotation after staff or vendor changes

Rotate the integration's credentials whenever someone who held the secret leaves, or when a vendor's support engineer who configured the connector rotates off the account. Treat a change of managed service provider the same way. Record the owner of each integration in your change system so that the question of who holds the secret has an answer before an offboarding happens. Ask the connector vendor how it handles a rotated token in a running sync.

Logging and review of API calls

Log which integration called which endpoint, from which address, and how often, then review those records on a fixed schedule. Unexpected calls to admin or customer endpoints from an integration that should only read catalog data are an early sign of misuse. Confirm where Magento writes API request information in your install and whether it reaches your central log platform. Keep the review owner separate from the person who maintains the connector.

Network restriction of the connector

Limit which systems can reach the Magento REST and GraphQL endpoints with OAuth credentials. Allow only the connector's outbound addresses at the load balancer or web application firewall, and keep the admin area off the same path. A connector hosted in a separate network segment should reach the store through a fixed route rather than through the public internet. Confirm the address ranges with the connector vendor, since a hosted connector may use a shared egress pool.

Revocation when an integration is retired

When a connector is replaced or a project ends, disable the integration and revoke its tokens in the same change ticket. Removing the connector software alone leaves a valid credential behind. Keep a retirement checklist that names the vault entry to delete, the scheduled jobs to stop and the admin user to check. Run a test call with the retired credential afterward to confirm that it is rejected.

How upgrades and patching affect an existing integration

Treat every patch cycle as a potential change to your integration. Adobe's upgrade guide recommends upgrading every patch cycle to stay secure and PCI compliant, and it names customizations, extension count, third-party integrations and coding practices as the main drivers of upgrade effort. An ERP, PIM or marketplace connector that holds an integration's consumer key and access token sits squarely in that category, so the integration should be part of the upgrade plan from the first day, not an afterthought discovered during testing. Access tokens issued for an integration are tied to the integration's resource permissions, so a patch that changes the API surface or the behavior of an endpoint can break a call that worked before the upgrade.

After each patch, retest the calls the integration actually makes, not only the storefront. Build a short regression set that covers token issuance and renewal behavior, each REST or GraphQL resource the connector reads or writes (products, stock, orders, customers and any custom module endpoints), and the error responses your connector handles. Confirm that the resource permissions granted to the integration still match what it needs, since permission trees can change between releases. Check the release notes for the target 2.4.x line and confirm the PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ and nginx versions against Adobe's system requirements for that line, because an integration can fail on a supporting service long before it fails on Magento code.

Plan around the support calendar. Adobe's lifecycle policy gives each 2.4.x release three years of standard support, with end of regular support on August 11, 2026 for 2.4.6, May 31, 2027 for 2.4.7, May 31, 2028 for 2.4.8 and May 31, 2029 for 2.4.9. An integration built against a line that is nearing end of support will need a larger upgrade window later, so confirm which line your store runs today and schedule the next move before the date arrives. Ask your connector vendor which Magento versions and patch levels they certify, and record the answer in your integration register so that a patch does not silently move you outside a supported combination.

Questions buyers ask before setting up a Magento integration

What does a Magento Open Source integration with OAuth cost, and what drives the price?

Cost depends on how many resources the connector touches, how much custom mapping sits between the ERP, PIM or marketplace and the store, and how many environments must be validated. Part of the spend is one-time: scoping, permission design, mapping, build and testing. Part recurs: monitoring, token reviews and patch-cycle retesting after each Magento release. Ask any provider for a quote that separates these lines and names who is paid for each. DeployOpen does not publish a price list, and a quote follows from a written scope. Confirm how changes to the scope after signing are priced before you agree to the work.

How long does a typical Magento connector setup take?

Duration depends on the number of entities the connector syncs, the complexity of the data mapping, and whether the target system already has tested sample data. A simple read-only product feed takes far less time than a bidirectional order and inventory sync with custom attributes. Do not plan around a generic figure. Ask the provider for a written estimate that lists the phases, the test store work and the cutover window, and check each phase against your own change calendar.

Can our own team set up a Magento OAuth integration without a partner?

Yes, if your team has administrators who can create integrations, a clear list of resources the connector needs and someone who can test token behavior on a non-production store. The admin panel flow itself is not complex. The effort sits in scoping least-privilege resource permissions, handling activation and token exchange correctly, and building retry and error paths in the connector. Teams without prior Magento experience often underestimate the upgrade work that follows. Confirm your staff can own the integration through at least one Magento patch cycle before you commit to an in-house build.

What must we provide before an integration project starts?

Prepare four inputs. First, an API inventory listing every REST, SOAP or GraphQL endpoint the connector will call, with the resources each one needs. Second, a data mapping document that connects ERP or PIM fields to Magento attributes, categories, customer groups and order statuses. Third, a test store on the same Magento version and extension set as production, with realistic but non-sensitive data. Fourth, named owners on both sides who can approve permission changes and cutover. Missing any of these usually moves cost and time into discovery, so ask the provider to confirm them in writing during scoping.

Who owns the consumer keys and access tokens after handover?

Your organization should own them. Consumer keys and access tokens are credentials tied to an integration in your store, so the handover record must name the Magento administrator who owns each integration, where the secrets are stored, and who can revoke them. Store secrets in your approved secrets manager rather than in shared documents or source repositories. Agree a rotation and revocation procedure for staff changes and for vendor offboarding. Keep the list of integrations and their resource permissions in your change records, and review them after every Magento upgrade.

Should we choose a partner or build the integration in-house?

Build in-house when your team already runs Magento, owns the ERP or PIM side, and can staff upgrade work for the life of the connector. Choose a partner when the connector needs specialized mapping, when your team lacks Magento integration experience, or when you need a fixed-scope delivery with written deliverables and a test handover. Compare both options on the same written scope, including who maintains the connector through each Magento release line. Adobe's lifecycle and release schedule make that maintenance timing predictable, so ask both options to show how they will track it.

Why is bearer token use off by default, and does it affect our connector?

Magento keeps bearer-style use of integration tokens off by default for the integration setup described here, so a connector that expects to send tokens in a standard authorization header may fail until the correct configuration is confirmed for your version. Confirm the exact setting and default in your installed release's documentation and in a test store before you write connector code. Do not enable a broader access method to make a failing test pass. Record the decision, the reason and the owner in your change log.

How DeployOpen works on this

DeployOpen plans, builds, documents and supports the OAuth integration work for your ERP, PIM or marketplace connector inside your own infrastructure. Each engagement starts from a written scope that names the integration, the resources it reads and writes, and the handover your team needs to run it after go-live.

How we scope

  • Inventory every system the integration calls and map each one to the Magento resource permissions it needs.
  • Record which Magento Open Source version and PHP, MySQL and OpenSearch combination the store runs, so tokens are tested on a supported stack.
  • Agree in writing who owns consumer keys, access tokens and revocation after staff or vendor changes.

How we build

  • Create the integration with the narrowest resource set, then activate it and capture the consumer key and access tokens in your secrets store.
  • Test each endpoint the connector calls, including failure paths for expired or revoked tokens, on a staging copy of your store.
  • Keep bearer token use disabled unless your scope documents a reason to enable it, and confirm the setting in configuration review.

How we hand over

  • Deliver a runbook covering token issuance, rotation, revocation and the permission map for each integration.
  • Provide test scripts and a short list of log locations and error codes your team checks when the connector fails.
  • Walk your administrators and engineers through the handover so they can rotate credentials without outside help.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer, including re-checking permissions after each Magento patch.
  • Ask for a written quote that lists the integrations, environments, test cycles and documents included before you commit.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.