use CMS authMiddleware

I am using Statamic CMS hand in hand with filament, statamic allows admins to impersonate users however, i cant figure out the auth to allow the admin to impersonate the user on statamic and then move over to the filament side and still be impersonating the user (at the moment it logs them out). I have tried using statamic authGuard in authMiddleware() in the adminPanelProvider and defining the authGuard but neither have worked. Is it possible for this to work?
Solution:
for anyone who encounters this issue - statmic and filaments middleware has some clashes so you just need to remove the filament middleware that is already provided by statamic
Jump to solution
5 Replies
toeknee
toeknee2mo ago
Are they on the same domain?
garethfrost
garethfrost2mo ago
yes they are any idea on this?
Dennis Koch
Dennis Koch2mo ago
I have no Statamic experience but I think both should just use the same Laravel auth guard and it should be fine. Does Statamic have some specific middlewares?
garethfrost
garethfrost2mo ago
yes statamic has its own authGuard could filament use statamics login page rather than have 2 separate ones?
Solution
garethfrost
garethfrost2mo ago
for anyone who encounters this issue - statmic and filaments middleware has some clashes so you just need to remove the filament middleware that is already provided by statamic
Want results from more Discord servers?
Add your server