F
Filament13mo ago
PANC

Can i use breeze authentication on filament?

Like the title says. Is it possible to use the auth system from breeze in the filament login? I have a Laravel system that authenticates uses using LDAP and i build this inside breeze. I want to use the same system to auth users in filament using breeze package. Can i do this with the filament-breezy package? Thank you
Solution:
Was able to solve it creating a app/Filament/Auth/Login.php public function authenticate(): ?LoginResponse { $data = $this->form->getState();...
Jump to solution
2 Replies
einnlleinhatt_
einnlleinhatt_13mo ago
Yes you can
Solution
PANC
PANC13mo ago
Was able to solve it creating a app/Filament/Auth/Login.php public function authenticate(): ?LoginResponse { $data = $this->form->getState(); $user = User::where('username', $data['username'])->first(); //LDAP LOGIN using ldap_connect //Then if the LDAP returns true Filament::auth()->login($user); } Then i got an error saying that something went wrong with the getUserName() method from FIlament Was fixed by editing the user model implementing the HasName and declaring public function getFilamentName(): string { return $this->name; }
Want results from more Discord servers?
Add your server