Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nico-gandara opened this issue Apr 22, 2024 · 3 comments

Comments

@nico-gandara
Copy link

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
Copy link
Author

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
Copy link

Hello @nico-gandara,

I have the same problem.

Did you find a solution?

@bojandavkov
Copy link

@nico-gandara Any updates? Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants