I know this is extremely early since this just got released -- but I'm wondering if there's any plans on adding the ability to override the included actions, or for the actions to utilize other authentication providers besides eloquent
?
The current RedirectIfTwoFactorAuthenticatable
action uses a getModel()
method that is not currently inside the Stateful
guard contract:
https://github.com/laravel/fortify/blob/f29ed3f63d6da006fb540e2894e4aa387ccabde2/src/Actions/RedirectIfTwoFactorAuthenticatable.php#L51
This action (RedirectIfTwoFactorAuthenticatable
) is also responsible for validating the users credentials -- but isn't the authentication UserProvider
responsible for this?
https://github.com/laravel/framework/blob/c87794fc354941729d1f0c4607693c0b8d2cfda2/src/Illuminate/Contracts/Auth/UserProvider.php#L48
The other concern is that the AttemptToAuthenticate
action only allows customization of the username passed into the $guard->attempt()
method, while Laravel UI allows you to customize the whole array of credentials passed in:
AttemptToAuthenticate Action in Fortify:
https://github.com/laravel/fortify/blob/4be99538e23fc4a04a4cbf305ab055f2e52537b6/src/Actions/AttemptToAuthenticate.php#L46-L53
AuthenticatesUsers Trait in Laravel UI:
https://github.com/laravel/ui/blob/6ed3b97576fc99049ba576de4cfab5cef4771ab3/auth-backend/AuthenticatesUsers.php#L93-L96
Please don't take these questions in any sort of negative manor -- I'm immensely grateful for the insane amount of free work that was put into this! ❤️
If there is interest in this possibility, I can work on a PR to add this extensibility and you can look at it to see if it's something you like / don't like. If it's denied, no hard feelings 👍
Related: #16, https://github.com/DirectoryTree/LdapRecord-Laravel/issues/196