File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-webapi/etc/webapi_soap/di.xml
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Webapi\Model\Authorization\OauthUserContext">
<arguments>
<argument name="request" xsi:type="object">Magento\Webapi\Controller\Soap\Request</argument>
</arguments>
</type>
<type name="Magento\Authorization\Model\CompositeUserContext">
<arguments>
<argument name="userContexts" xsi:type="array">
<item name="tokenUserContext" xsi:type="array">
<item name="type" xsi:type="object">Magento\Webapi\Model\Authorization\TokenUserContext</item>
<item name="sortOrder" xsi:type="string">10</item>
</item>
<item name="guestUserContext" xsi:type="array">
<item name="type" xsi:type="object">Magento\Webapi\Model\Authorization\GuestUserContext</item>
<item name="sortOrder" xsi:type="string">100</item>
</item>
</argument>
</arguments>
</type>
<preference for="Magento\Framework\App\FrontControllerInterface" type="Magento\Webapi\Controller\Soap" />
<preference for="Magento\Framework\Model\ActionValidator\RemoveAction" type="Magento\Framework\Model\ActionValidator\RemoveAction\Allowed" />
<type name="Magento\Webapi\Controller\Rest\Router\Route" shared="false" />
<type name="Magento\Webapi\Controller\Soap">
<arguments>
<argument name="soapServer" xsi:type="object">Magento\Webapi\Model\Soap\Server\Proxy</argument>
<argument name="errorProcessor" xsi:type="object">Magento\Framework\Webapi\ErrorProcessor\Proxy</argument>
</arguments>
</type>
<preference for="Magento\Framework\Authorization\RoleLocatorInterface" type="Magento\Webapi\Model\WebapiRoleLocator" />
<type name="Magento\Framework\Authorization">
<plugin name="guestAuthorization" type="Magento\Webapi\Model\Plugin\GuestAuthorization" />
</type>
<!-- Configuration to check that the permissions are checked on fields -->
<virtualType name="Magento\Framework\Reflection\ExtensionAttributesProcessorPermissionChecked" type="Magento\Framework\Reflection\ExtensionAttributesProcessor">
<arguments>
<argument name="isPermissionChecked" xsi:type="boolean">true</argument>
<argument name="dataObjectProcessor" xsi:type="object">Magento\Framework\Reflection\DataObjectProcessor\Proxy</argument>
</arguments>
</virtualType>
<virtualType name="Magento\Framework\Reflection\DataObjectProcessorPermissionChecked" type="Magento\Framework\Reflection\DataObjectProcessor">
<arguments>
<argument name="extensionAttributesProcessor" xsi:type="object">Magento\Framework\Reflection\ExtensionAttributesProcessorPermissionChecked</argument>
<argument name="customAttributesProcessor" xsi:type="object">Magento\Framework\Reflection\CustomAttributesProcessor\Proxy</argument>
</arguments>
</virtualType>
<type name="Magento\Webapi\Controller\Soap\Request\Handler">
<arguments>
<argument name="dataObjectProcessor" xsi:type="object">Magento\Framework\Reflection\DataObjectProcessorPermissionChecked</argument>
</arguments>
</type>
<!-- End of configuration to check that permissions are checked on fields -->
</config>