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

Call to undefined method Vizir\KeycloakWebGuard\Auth\Guard\KeycloakWebGuard::loginUsingId() #93

Open alaincheng opened 1 year ago

alaincheng commented 1 year ago

Hey

I'm using keycloak for authentication as replacement of my old login.

I'm trying to use this function Auth::loginUsingId($user->id, true);

But i got the following error. Call to undefined method Vizir\KeycloakWebGuard\Auth\Guard\KeycloakWebGuard::loginUsingId() Any way I can achieve this with keycloak?

mariovalney commented 1 year ago

Hi. This method do not exist. You should redirect user to Keycloak login page.

alaincheng commented 1 year ago

Well, i'm trying to impersonate a specific user as a "admin/root" user.