Too few arguments to function Vizir\KeycloakWebGuard\Models\KeycloakUser::__construct()
Closed this issue · 2 comments
fassumpcao commented
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!!
mariovalney commented
Hi.
You should follow the configurations steps and change your provider too:
https://github.com/Vizir/laravel-keycloak-web-guard#laravel-auth
fassumpcao commented
Hello Mario, thanks to help me! You're correct.
I had not configured the 'driver' => 'keycloak-users' in 'providers'