Adyen / adyen-shopware6

Adyen Payment plugin for Shopware 6
MIT License
21 stars 22 forks source link

Clean install token exception breaks administration panel with an infinite redirect loop #539

Open damian-pastorini opened 2 months ago

damian-pastorini commented 2 months ago

Describe the bug With a clean install of the plugin there's an exception on every admin route related to the access token. This is causing an infinite loop in the admin login page. image

// ...
Object { file: "/var/www/shopware/custom/plugins/AdyenPaymentShopware6/vendor/league/oauth2-server/src/Exception/OAuthServerException.php", line: 243, trace: […], … }
// ...
The token violates some mandatory constraints, details:- Token signature mismatch- The token is expired
// ...
Object { file: "/var/www/shopwar/custom/plugins/AdyenPaymentShopware6/vendor/lcobucci/jwt/src/Validation/RequiredConstraintsViolated.php", line: 24, trace: […] }

Versions Shopware version: 6.6.5.1 Plugin version: 4.1.0

To Reproduce Steps to reproduce the behavior:

  1. Install the plugin in a clean SW installation
  2. Go to the admin panel /admin
  3. See error in the console (you will need to enable the "persist logs" option otherwise the continuous redirect will not allow you to see it).

Expected behavior Allow admin panel access.

Desktop (please complete the following information):

adyen-integrations-support commented 2 days ago

Hello @damian-pastorini,

Thank you for reaching out to us regarding this issue.

Our team attempted to reproduce the issue in a local environment but, unfortunately, without success. We conducted several tests using a fresh installation, and all requests in the Network tab responded with a 200 status after installation.

To assist us in investigating further, could you please confirm how the Adyen plugin was installed when the issue occurred? Was it installed via a zip file or Composer?

Additionally, could you expand on the steps to reproduce the issue so that we can try to replicate it as precisely as possible?

Thank you,

Kind regards.