I configured laravel-keycloak-guard on my api. It works perfectly on standard routes, but on those with ->can(permission) (I use spatie-permission) access is systematically denied, as if the user weren't authenticated. I followed the installation instructions step by step.
I configured laravel-keycloak-guard on my api. It works perfectly on standard routes, but on those with ->can(permission) (I use spatie-permission) access is systematically denied, as if the user weren't authenticated. I followed the installation instructions step by step.
In this way I get the authenticated user:
In this way I am rejected (with the old authentication the ability was recognized)