mariovalney/laravel-keycloak-web-guard

Too few arguments to function Vizir\KeycloakWebGuard\Models\KeycloakUser::__construct()

Closed this issue · 2 comments

I tried make a test a simple authenticate, but after login page on Keycloak, i receive this callback error.

Too few arguments to function Vizir\KeycloakWebGuard\Models\KeycloakUser::__construct(), 0 passed in /var/www/html/projectpath/vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php on line 183 and exactly 1 expected

Someone have a suggestion to help me? Tks!!

Hi.

You should follow the configurations steps and change your provider too:
https://github.com/Vizir/laravel-keycloak-web-guard#laravel-auth

Hello Mario, thanks to help me! You're correct.
I had not configured the 'driver' => 'keycloak-users' in 'providers'