F
Filament2mo ago
June

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
krekas
krekas2mo ago
if same user can access both panels then yes
June
June2mo ago
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
toeknee
toeknee2mo ago
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.
June
June2mo ago
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?
toeknee
toeknee2mo ago
Yes that should be fine.
June
June2mo ago
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
toeknee
toeknee2mo ago
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
krekas
krekas2mo ago
i think sessions are domain based not subdomain
June
June2mo ago
do i need to create middleware to manage session for subdomain SESSION_DOMAIN=.example.com
toeknee
toeknee2mo ago
SESSION_DOMAIN=null That should ensure it's valid to the current sub/domain
June
June2mo ago
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
toeknee
toeknee2mo ago
Even after clearing the cache?
June
June2mo ago
Yes after clearing cache still not able to login
toeknee
toeknee2mo ago
ChatGPT
A conversational AI system that listens, learns, and challenges
June
June2mo ago
Okay
Want results from more Discord servers?
Add your server