Upgrade the CompanyUserAuthRestApi module

Edit on GitHub

Upgrading from version 1.* to version 2.*

CompanyUserAuthRestApi module version 2.0.0 brings the following major change: Glue layer authentication has been moved from OauthCompanyUser to CompanyUserAuthRestApi.

To perform the upgrade:

  1. Update Composer:
composer require spryker/company-user-auth-rest-api: "^2.0.0" --update-with-dependencies
  1. Generate transfer objects:
vendor/bin/console transfer:generate
  1. In \Pyz\Glue\AuthRestApi\AuthRestApiDependencyProvider::getRestUserExpanderPlugins() replace Spryker\Glue\OauthCompanyUser\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin with Spryker\Glue\CompanyUserAuthRestApi\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin:
 - use Spryker\Glue\OauthCompanyUser\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin;
 + use Spryker\Glue\CompanyUserAuthRestApi\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin;

Estimated migration time: ~5 minutes