Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

If you use shop.mystore.com in the Salesforce configuration when trying to connect to Magento - the issue described above will occur.

Technical details:

  1. You use the shop.mystore.com domain in your configuration

  2. Magento redirects you to the admin area authorization form

  3. You put login/password and click the “Login

  4. Magento receives this request, detects that you are trying to authenticate into Magento Admin Panel and forwards the request to the admin.mystore.com domain

  5. The Form Key in your request is valid only for the shop.mystore.com domain.

  6. As a result, you see the “Invalid form key“ error.

Solution

  1. Make sure admin.powersync.biz can receive requests

  2. Make sure the following URLs work and make sure they are not causing a redirect somewhere else:

    • https://admin.mystore.com/oauth/initiate

    • https://admin.mystore.com/admin/oauth_authorize

    • https://admin.mystore.com/oauth/token

  3. Use the admin.powersync.biz domain for the OAuth configuration in Salesforce. 

...