...
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:
|
Solution
...
Make sure admin.powersync.biz can receive requests
...
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
...
You need to mark the “oauth“ path acceptable for Magento admin area.
Open the app/etc/local.xml file
Find the “<routers>“ tag
Add a new router right under the “<adminhtml>“ tag:
Code Block language xml <oauth> <use>admin</use> <args> <frontName><![CDATA[oauth]]></frontName> </args> </oauth>
Here my corrected file:
Code Block | ||
---|---|---|
| ||
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
-->
<config>
<global>
<install>
<date><![CDATA[Mon, 24 Feb 2020 13:17:52 +0000]]></date>
</install>
<crypt>
<key><![CDATA[ab2ab549043e1fe93d27e6be8484c34c]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[root]]></username>
<password><![CDATA[root]]></password>
<dbname><![CDATA[m1cegit10]]></dbname>
<initStatements><![CDATA[SET NAMES utf8]]></initStatements>
<model><![CDATA[mysql4]]></model>
<type><![CDATA[pdo_mysql]]></type>
<pdoType><![CDATA[]]></pdoType>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><![CDATA[files]]></session_save>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontName><![CDATA[admin]]></frontName>
</args>
</adminhtml>
<oauth>
<use>admin</use>
<args>
<frontName><![CDATA[oauth]]></frontName>
</args>
</oauth>
</routers>
</admin>
</config>
|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...