akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
87 stars 89 forks source link

Error "Full authentication is required to access this resource." with user with full privileges #686

Open nico-gandara opened 6 months ago

nico-gandara commented 6 months ago

Environment and configuration

  1. akeneo/module-magento2-connector-community version 104.3.6, php 8.2, mariadb 10.6
  2. Akeneo 7
  3. Magento 2.4.6-p3 vanilla with sample data

Steps to reproduce

  1. Configure connection with full privileges
  2. Configure Magento connector with the connection created in Akeneo 7
  3. Import categories with the command bin/magento akeneo_connector:import --code=category

Expected result

    • The import of the job finished correctly.

Actual result

  1. The process ends abruptly due to an authentication error.

image

Others comments

Although the error is clear, the connection created and configured has full privileges, therefore that does not seem to be the problem.

image

image

Finally, the error occurs in the foreach, not in the API call, which seems very strange to me.

image

nico-gandara commented 6 months ago

On Akeneo Server I see the following errors:

[2024-04-24T20:06:11.447150+02:00] security.NOTICE: No Authentication entry point configured, returning a 401 HTTP response. Configure "entry_point" on the firewall "api" if you want to modify the response. [] [] [2024-04-24T20:06:11.447518+02:00] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "Full authentication is required to access this resource." at /var/www/akeneo/vendor/symfony/security-http/Firewall/ExceptionListener.php line 248 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\HttpException(code: 0): Full authentication is required to access this resource. at /var/www/akeneo/vendor/symfony/security-http/Firewall/ExceptionListener.php:248)\n[previous exception] [object] (Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException(code: 0): Full authentication is required to access this resource. at /var/www/akeneo/vendor/symfony/security-http/Firewall/ExceptionListener.php:147)\n[previous exception] [object] (Symfony\Component\Security\Core\Exception\AccessDeniedException(code: 403): Access Denied. at /var/www/akeneo/vendor/symfony/security-http/Firewall/AccessListener.php:132)"} [] [2024-04-24T20:06:12.648217+02:00] security.NOTICE: No Authentication entry point configured, returning a 401 HTTP response. Configure "entry_point" on the firewall "api" if you want to modify the response. [] [] [2024-04-24T20:06:12.648557+02:00] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "Full authentication is required to access this resource." at /var/www/akeneo/vendor/symfony/security-http/Firewall/ExceptionListener.php line 248 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\HttpException(code: 0): Full authentication is required to access this resource. at /var/www/akeneo/vendor/symfony/security-http/Firewall/ExceptionListener.php:248)\n[previous exception] [object] (Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException(code: 0): Full authentication is required to access this resource. at /var/www/akeneo/vendor/symfony/security-http/Firewall/ExceptionListener.php:147)\n[previous exception] [object] (Symfony\Component\Security\Core\Exception\AccessDeniedException(code: 403): Access Denied. at /var/www/akeneo/vendor/symfony/security-http/Firewall/AccessListener.php:132)"} []

Yonn-Trimoreau commented 5 months ago

Hello @nico-gandara,

I have the same problem.

Did you find a solution?

bojandavkov commented 4 weeks ago

@nico-gandara Any updates? Same issue here.