Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using You Own Model #74

Open
aamoldez opened this issue Jun 8, 2022 · 0 comments
Open

Using You Own Model #74

aamoldez opened this issue Jun 8, 2022 · 0 comments

Comments

@aamoldez
Copy link

aamoldez commented Jun 8, 2022

Hello , I want to implement my own user model, but I'm new to Laravel, can you give me an example of this statement in the FAQ section.

"How to implement my Model?
We registered a new user provider that you configured on config/auth.php called "keycloak-users".

In this same configuration you setted the model. So you can register your own model extending Vizir\KeycloakWebGuard\Models\KeycloakUser class and changing this configuration.

You can implement your own User Provider: just remember to implement the retrieveByCredentials method receiving the Keycloak Profile information to retrieve a instance of model.

Eloquent/Database User Provider should work well as they will parse the Keycloak Profile and make a "where" to your database. So your user data must match with Keycloak Profile."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant