Filament Auth via an external api

Hi, is there a way to login/register users via an external api, I'm working on a project where all the users are in AWS cognito and my team has an api wrapper over it where I can do all the auth stuff, the rest of the data is in a postgresql database so filament works so well, is there a way to login into the panel using the external api?
5 Replies
Julien B. (aka yebor974)
Hi, It’s possible by defining custom guard and user provider. To map your guard you can follow this article : https://filamentmastery.com/articles/implementing-filament-auth-guard
Filament Mastery
Implementing Filament Auth Guard - Filament Mastery
Learn how to configure multi auth guards in Filament by creating a Member panel with a custom guard, provider, and password reset flow, linked to a Member Model
Julien B. (aka yebor974)
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Tudor
TudorOP2w ago
Thanks, ill try it @Julien B. (aka yebor974) it worked, thanks a lot
Julien B. (aka yebor974)
You’re welcome
Julien B. (aka yebor974)
You can register or subscribe to https://filamentmastery.com to discover other tutorials. All it’s free
Filament Mastery
Filament Mastery
Discover Filament Mastery, your go-to platform for all things FilamentPHP. Dive into tutorials, articles, plugins, and tips to level up your Laravel development projects with ease and efficiency.

Did you find this page helpful?