Multiple authentication methods?

Is it possible to use different authentication methods for front end panel users vs. admin panel users? I need to allow normal user registration and login for the general public and authenticate our internal users against our SSO provider. This is my first Filament app and I've never done both even on a plain Laravel site. Is it possible or do I have to split this into two distinct apps? On a related note, I have a basic solution for the SSO side in Laravel by changing where the Authenticate middleware points. But do I need to do anything specific to tell Filament to use that? Am I really overthinking this? Or is the whole thing as simple as duplicating that middleware and having an admin version and a normie version?
Solution:
You can specify middleware per panel, see https://filamentphp.com/docs/3.x/panels/configuration#applying-middleware. So no, you don’t need to create separate apps and you can probably reuse your existing middleware for the admin panel.
Jump to solution
2 Replies
Solution
Tim van Heugten
Tim van Heugten4mo ago
You can specify middleware per panel, see https://filamentphp.com/docs/3.x/panels/configuration#applying-middleware. So no, you don’t need to create separate apps and you can probably reuse your existing middleware for the admin panel.
phydeaux
phydeaux4mo ago
This looks to be working great. Thanks.