mariovalney / laravel-keycloak-web-guard

Simple Keycloak Guard to Laravel Web Routes - https://packagist.org/packages/vizir/laravel-keycloak-web-guard
146 stars 80 forks source link

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

Closed fassumpcao closed 3 years ago

fassumpcao commented 3 years ago

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 3 years ago

Hi.

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

fassumpcao commented 3 years ago

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