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

Is there a way to hook into the auth middleware #243

Open
warksit opened this issue Jul 7, 2016 · 6 comments
Open

Is there a way to hook into the auth middleware #243

warksit opened this issue Jul 7, 2016 · 6 comments

Comments

@warksit
Copy link
Contributor

warksit commented Jul 7, 2016

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?

@warksit
Copy link
Contributor Author

warksit commented Jul 14, 2016

Anyone? I'm just after a pointer of how to hook in to the panel login flow without forking the project.

@AlirezaAlgo
Copy link
Contributor

why you are not using same table for admins and tenant ? if you want change how middleware work send pull request , thank you

@warksit
Copy link
Contributor Author

warksit commented Jul 19, 2016

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?

@AlirezaAlgo
Copy link
Contributor

that is good idea , if you can do that would be great

@warksit
Copy link
Contributor Author

warksit commented Jul 19, 2016

OK, I will have a go at that. Won't be this week.

@AlirezaAlgo
Copy link
Contributor

thank you

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

2 participants