Fossil
Fossil
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
I added it to both middleware and authmiddleware now and it seems to finally work in prod now too. Cheers!
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Ah damn. Whenever I login with user/pass, I get shown the 2FA screen (diff URL). If I dont enter 2FA and instead open the dashboard (Filament) URL I am logged into Filament and can do anything. So need to make Filament aware of 2FA being logged in or not somehow
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Ok that works perfectly. So simple, nice.
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Ok cool, will try asap. Cheers! 😄
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Sorry for being a noob lol but add a redirect where to my /login url? AFAIK filament registers its own routes (/dashboard in my case) and idk if I can edit those.
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Hmm. Dont think I could make that work. It's expecting an invokable class. Yet my LoginController uses an index() and login() method.
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Ok. Meeting now, will try after and come back. Thanks!
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
My login controller just uses the AuthenticatesUsers trait.
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Any pointers? No clue where to look.
return $panel
->default()
->id('admin')
->path('dashboard')
->login()
return $panel
->default()
->id('admin')
->path('dashboard')
->login()
Part of my AdminPanelProvider. Do I remove the login method there?
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
Another thought: Is it possible to disable and bypass Filaments entire auth system and just rely on being logged on to the main app? That last part already works actually, just need to make FIlament inaccessable when the 2FA code hasnt been entered yet.
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
I have a 2FA middleware alias which is applied to my app routes. Any way to apply the same to Filament routes? When I add the FQDN to the middleware() function in my panel provider it doesnt do anything.
22 replies
FFilament
Created by Fossil on 5/18/2024 in #❓┊help
2FA Middleware
No starter kit. Older project
22 replies