hamidali's avatar

Fortify for multi-auth

Quick question... Can I use Fortify for multi guard auth?

0 likes
7 replies
bobbybouwmann's avatar

As far as I can see in the code it's only focused on one guard. In general, an extra guard is normally used for APIs or third party access. Not for a user and admin guard.

Also, note that Fortify is there to give you a quick start, it won't fit all cases.

1 like
alexteie's avatar

Well actually if you want to use frontend users seperate from the backend users is it cleaner to create two tables with user credentials so one cant login to other and where you can authenticate between different guards

so does anyone know when fortify will ben multi guard authentication work?

1 like
jlrdw's avatar

What is a front-end user versus a back-end user? I think of the front-end as just the data sitting there in the browser waiting to be acted on.

I.e., you fill out a form, nothing's going to happen until it's submitted or sent with Ajax.

hamidali's avatar

True, I guess we can still use laravel/UI to get the multi auth...

jlrdw's avatar

It looks like fortify is set up for only a smaller type scenario. Allowing only one type of login and redirect at a time rather than a robust Enterprise type authentication system. The redirect part has been solved however.

There are a large insurance chains , such as Humana that has major login sections Physicians, patients, and government entities all separate of course.

Fortify does not seem to be geared up for such an Enterprise development.

Whereas with laravel UI the developer has much more freedom to program such a large Enterprise development scenario.

Please or to participate in this conversation.