ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Feature request: authentication based on Fortify

Open BrandonOldenhof opened this issue 2 years ago • 3 comments

Hello!

From what I've seen in the Laravel repo & documentation it seems to be moving towards using Fortify as the basis of the the authentication flow. This also includes other related frameworks such as Jetstream.

Would it be possible modify the authentication to use Fortify as the basis of the authentication? In my case it would make it possible to create a basic Laravel setup for normal Laravel-only projects as well as Statamic projects that includes a standardised authentication flow.

Benefits:

  • Authentication (registration & login flows) can be easily customized

BrandonOldenhof avatar Jun 03 '22 07:06 BrandonOldenhof

You can install Laravel first and then install Statamic later. Does that not work for you?

duncanmcclean avatar Jun 03 '22 08:06 duncanmcclean

You can install Laravel first and then install Statamic later. Does that not work for you?

I'm afraid not. The problem isn't that it doesn't work, the problem is that Laravel and its related framework use Fortify for authentication while Statamic uses (I think) custom authentication.

I'm pretty sure that Fortify configuration doesn't work with Statamic and Statamic configuration doesn't work with Fortify.

BrandonOldenhof avatar Jun 03 '22 08:06 BrandonOldenhof

I haven't tried Fortify and Statamic yet, but according to the docs, it says Fortify will use whatever auth guard your site is configured with.

I would think it should just work. If not, maybe open a more specific issue.

What have you tried?

jasonvarga avatar Jun 03 '22 15:06 jasonvarga