Understanding Filament's Authentication Mechanism in Laravel Applications

I am working on a Laravel Filament application where authentication is managed by Filament. When testing the /login endpoint using the POST method in Postman, the response indicates that the POST method is not supported for the route admin/login. Could you explain how Filament handles the authentication process and what method or mechanism it employs for user authentication?
6 Replies
undercode
undercode2w ago
The php artisan route:list command gives you the exactly information you are asking for.
No description
toeknee
toeknee2w ago
You also won't be able to login from postman because you don't have any CSRF token. And we use livewire so the login happens over the update request.
md sheik
md sheik2w ago
Is the login process happens using CSRF token ? I want to make a script for logging in in '/login' endpoint programatically. I want to know the which method I should use for log in programatically ?
toeknee
toeknee2w ago
just do whatever you want... you can login with:
Auth::loginUsingId($user_id)
Auth::loginUsingId($user_id)
md sheik
md sheik2w ago
I would like to perform load testing on my /admin/login endpoint using Locust. To achieve this, I need to first log in programmatically within Locust, and then proceed to access other endpoints. How can I accomplish for login process in Locust?
toeknee
toeknee2w ago
I don't know.
Want results from more Discord servers?
Add your server