Support custom auth guards #68
Replies: 2 comments 1 reply
-
|
Just a thought, you might be able to pull the User model and auth guard from the target panel? That would be sweet. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your interest in my package/plugin! I am currently reviewing another large PR to this repo at the moment but interesting timing as I am on the cusp of needing this same feature for a personal project. I will try to give this some thought soon. Expecting my first child soon so my time is stretched a bit thin. I do like your idea of the guard being tied to the panel as one of my sites (the aforementioned one) uses a different guard per panel. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Chris,
Great plugin, thank you.
I'm trying to separate out filament authentication to use an "admin" auth guard, "admin_users" table and AdminUser model.
I used the socialment config to specify the model; and modified the migration so that user_id foreignKey points to the admin user table. However, I was unable to login as Auth::login() doesn't allow a custom guard to be configured.
I wonder if you'd consider supporting this use case?
eg. in SocialmentController
Thanks again.
Beta Was this translation helpful? Give feedback.
All reactions