How to set up OAuth for existing Magento 2 integrations

Estimated 2 minute read
|
Updated Aug 29, 2024, 5:35 PM EST
Overview

Overview

This guide will cover how to update an existing Magento 2 integration from API credential authentication to the new OAuth workflow. Visit the guide here if you need to enable your Magento 2 integration for the first time. If you are using Magento 2 version 2.2.0 or older, follow this guide to manually enable OAuth.

Set up OAuth

Set up OAuth

Log in to your Magento 2 account. Here, we’ll enable OAuth to securely connect your Klaviyo account to the Magento 2 extension.

Navigate to Stores > Configuration from the admin dashboard. Click on Klaviyo and select the Setup OAuth tab. Give your integration a memorable name in the Name field, you will need to locate it by this name later. Click Save Config to proceed.

OAUTHtab.png

Next, locate System from the left hand navigation pane and select Integrations from the System tray. 

Locate the integration with the name you used above and click Activate.

activateoauth.png

Activating the integration will open up a window requesting you to approve access to several permissions. Click Allow to accept the permissions and get redirected to Klaviyo to complete the integration setup.

oauthperms.png

Sign in if you have not already done so, or confirm your account name is correct and click Integrate. This will update the Magento 2 integration in the Klaviyo account shown. If you are logged into multiple Klaviyo accounts and the correct account is not displaying, log out of any other sessions.

If the window closes automatically, the connection was successful. You can also confirm by opening your Klaviyo account in a new browser tab or window, selecting your account name in the lower left corner, then clicking Integrations. Find Magento 2 on the list of integrations - click on it, and you should see a screen like the one below:

If you receive the following error instead, ensure that the API keys used in the first step correspond to the account you are currently logged in to.

apierror.png

When establishing the connection between Magento and Klaviyo, if you receive a list of errors instead, you can click each error to learn more about the cause.
oauthgenerror.png

 

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type