<?xml version="1.0"?>
<!--
/**
 * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Framework\Authorization">
        <plugin name="adminAuthorization" type="Temando\Shipping\Plugin\Authorization\Token" />
    </type>

    <type name="Temando\Shipping\Plugin\Authorization\Token">
        <arguments>
            <argument name="userContext" xsi:type="object">Magento\Webapi\Model\Authorization\TokenUserContext</argument>
        </arguments>
    </type>
</config>
