F
Filament5mo 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
krekas5mo ago
if same user can access both panels then yes
June
JuneOP5mo 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
toeknee5mo 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
JuneOP5mo 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 [email protected] try to log in shop.example.com
and [email protected] 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
toeknee5mo ago
Yes that should be fine.
June
JuneOP5mo 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
toeknee5mo 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
krekas5mo ago
i think sessions are domain based not subdomain
June
JuneOP5mo ago
do i need to create middleware to manage session for subdomain SESSION_DOMAIN=.example.com
toeknee
toeknee5mo ago
SESSION_DOMAIN=null That should ensure it's valid to the current sub/domain
June
JuneOP5mo 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
toeknee5mo ago
Even after clearing the cache?
June
JuneOP5mo ago
Yes after clearing cache still not able to login
toeknee
toeknee5mo ago
ChatGPT
A conversational AI system that listens, learns, and challenges
June
JuneOP5mo ago
Okay
krekas
krekas5mo ago
only setting SESSION_DOMAIN with a dot before domain isn't enough?
June
JuneOP5mo ago
no didn't work
Want results from more Discord servers?
Add your server