Filament v3, Multi-tenancy login
Is it possible to log in on same browser in Multiple tenants?
For example if i have two panels like , shop.example.com , vendor.example.com
is it possible to login on different panel on same browser
17 Replies
if same user can access both panels then yes
is there any way to do this because i have different user for different panel
i want it on same browser but different panel login
is there way to handle through session
Filament multi-tenancy has url based tenancy so it doesn't matter. You can switch between the two at the same time, the tenant-id is in the url.
Yes i have understood your point.
But my question is that if i have opened two subdomain on the same browser
like shop.example.com and vendor.example.com in that case
if user@gmail.com try to log in shop.example.com
and user2@gmail.com try to login vendor.example.com i want it to happen using filament multitenant In that case is there any idea to do this?
and user2@gmail.com try to login vendor.example.com i want it to happen using filament multitenant In that case is there any idea to do this?
Yes that should be fine.
Okay!
Need solution if anyone can help me with it, as i have SAAS based application need different user login details to be login on different panels on the same browser
because to login on different panel i have to open private window
I am confused, it shouldn't matter if you access under a different domain like you suggest it shouldn't be already logged in since logins are domain based
i think sessions are domain based not subdomain
do i need to create middleware to manage session for subdomain
SESSION_DOMAIN=.example.com
SESSION_DOMAIN=null
That should ensure it's valid to the current sub/domain
Earlier : SESSION_DOMAIN=example.com, at that time able to login
but when i changed it SESSION_DOMAIN to null , then not able to login
Even after clearing the cache?
Yes after clearing cache
still not able to login
Try this method from chatgpt:
https://chatgpt.com/share/094f6995-4eda-41e5-8604-16776e2bcbe7
ChatGPT
A conversational AI system that listens, learns, and challenges
Okay