Closed ghost closed 5 years ago
Hey Jenkiiz! How are you?
I guess we missed to add the Guzzle in AppProvider.
Can you retry? I added it to repo code.
Hey ! Tried with the new version, Auth login form is still here and getting another error now : Call to undefined method Vizir\KeycloakWebGuard\Auth\Guard\KeycloakWebGuard::attempt()
The rep is up to date : https://github.com/Jenkiiz/web_guard.git I forgot a line somewhere I think
I succeded to make it work, but in a project without the default Laravel Auth system. Any Idea about this conflict ?
No. It's everything OK if you follow the README.
The intent of this project is to be a complete auth system to routes guarded by Keycloak.
This way, Laravel Auth system will not work with that.
You are able to implement your User model and create your own User Provider to manage Laravel stuff, but to make Keycloak work as "Facebook Login button" more work will be needed.
Tried with the new version, Auth login form is still here and getting another error now : Call to undefined method Vizir\KeycloakWebGuard\Auth\Guard\KeycloakWebGuard::attempt()
Attempt is used by Laravel's authentication to try to login the user into guard with credentials. In Keycloak, this is the Resource Owner Password Credentials Flow (or Direct Grant) and "it’s not recommended unless you absolutely need to."
So, the recommended way is to redirect user to Keycloak login page and proceed.
Seems to be working after deleting the default Auth files and controllers generated by make:auth. Also added the : Route::prefix('admin') ->middleware('keycloak-web') ->namespace($this->namespace) ->group(base_path('routes/web.php'));
To have the right redirections
Hello,
I'm facing this error when trying to use the library.
Any Idea ?
git repo : https://github.com/Jenkiiz/web_guard.git