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

Error: Call to undefined method Vizir\KeycloakWebGuard\Auth\Guard\KeycloakWebGuard::attempt() #30

Closed bavamca closed 3 years ago

bavamca commented 4 years ago

When I try on laravel 7 it throws an error While register and login

Anything I need to do I had set up both /config/keycloak-web.php, /config/auth.php files as per the documentation

For more info: https://ibb.co/b2ct0xp

bavamca commented 4 years ago

Is anyone able to help me out with this issue?

bavamca commented 4 years ago

Still no replay

mariovalney commented 4 years ago

As a open source project it's maintained in my free time. Perhaps in weekend or in the end of day I'll be able to check this.

Thanks.

mariovalney commented 4 years ago

Hi. I'm using Laravel 7 here and all is OK.

The attempt method is not required on Guards and we do not use it. But it's presented on SessionGuard. Maybe you missed the 'drive' configuration (keycloak-web) or are implementing SessionGuard too?

UPDATE:

I saw the printscreen now.

I'm not sure about using laravel/ui but if you are using Keycloak you should not implement any auth flow, as everything will happen on Keycloak itself. The login route should be keycloak.login (we will redirect user to Keycloak and wait for return on callback page).

bavamca commented 4 years ago

thanks for the heads up, let me debug my self

mariovalney commented 3 years ago

Hi. Closing due to inactivity.