Magento 2 - Updating the API Key and fixing authorization issues.

When there is a sync issue between Remarkety and your Magento 2 website after the plugin was initially installed and worked, there are 2 things to verify first:

  1. Is the plugin still installed?
  2. Did the API Key change?

In this article, we will focus on checking the API Key and fixing authorization issues.

  1. In your Magento 2 Admin, go to: System > IntegrationsDashboard___Magento_Admin.png
     
  2. Locate the "remarkety" integration and click "edit":

    Integrations___Extensions___System___Magento_Admin.png
     
  3. Make sure that the value in "Access Token" matches the API Key found on your Remarkety account under Settings > Connection.

    Edit__remarkety__Integration___Extensions___System___Magento_Admin__1_.png
    If the value does not match the connection settings in Remarkety, update the API Key in Remarkety.
     
  4. On the "API" tab,  "Resource Access" should be set to "Custom", and the following options are selected:
    1.  
      • Sales > Operations > Orders > Actions > View
      • Catalog
      • Customers
      • Carts
      • Stores > Settings > All Stores
      • Marketing > Promotions > Cart Price Rules
      • Marketing > Communications > Newsletter Subscribers
      • Remarkety

        blobid0.png
        Click "Save" if there were any changes made.
  5. If the API Key in Remarkety did not match the Access Token in Magento, it's also required to make sure that webhooks are currently working.

    In Remarkety, go to Settings > Webhooks and make sure that webhooks are being received and no warning is shown.
  6. Check OAuth Settings

  • Ensure that the option to allow the OAuth Access Token to be used as a standalone Bearer token is correctly configured.
  • Navigate to:
  • Stores > Settings > Configuration > Services > OAuth
  • Steps:
  • Locate the setting for “Allow OAuth Access Token to be used as standalone Bearer tokens.”
  • Ensure that it is set to Yes.
  • If this setting is already enabled, try re-authorizing the Remarkety integration.
  • 7. Disable Web API Security (Optional)

  • In some cases, Magento’s Web API Security features may block the necessary API access. Disabling these settings could resolve the issue.
  • Navigate to:
  • Stores > Settings > Configuration > Services > Magento Web API > Web API Security
  • Steps:
  • Find the Allow Anonymous Guest Access setting.
  • Set it to Yes.

    8. Remarkety Plugin Configuration

  • In addition to the OAuth settings adjustment, you may also want to ensure that the Remarkety plugin settings are correctly configured. This step is essential if Remarkety is causing additional issues.
  • Enable Category View, Search View, and Cart Updates

  • Go to Stores > Configuration > Sales > Remarkety within the Magento Admin Panel.
  • Under the Remarkety settings, look for options related to enabling Category View, Search View, and Cart Updates. Ensure that these options are enabled as needed.
  • Save any changes by clicking the "Save Config" button.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.