-
Notifications
You must be signed in to change notification settings - Fork 144
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
Is there a way to hook into the auth middleware #243
Comments
Anyone? I'm just after a pointer of how to hook in to the panel login flow without forking the project. |
why you are not using same table for admins and tenant ? if you want change how middleware work send pull request , thank you |
That would only allow 1 admin per tenant. I guess the most flexible way would be to add a hook in the panel middleware to pull in a custom middleware if specified in a config file? |
that is good idea , if you can do that would be great |
OK, I will have a go at that. Won't be this week. |
thank you |
I am using the panel in a tenanted application. I need to prevent one tenant logging into another tenants panel. My theory is to add a tenant_id to the admins table. I just need to check that at the point of logging in. What is the recommended way of doing that?
The text was updated successfully, but these errors were encountered: