statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Feature request: authentication based on Fortify #811

Open BrandonOldenhof opened 2 years ago

BrandonOldenhof commented 2 years ago

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:

duncanmcclean commented 2 years ago

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

BrandonOldenhof commented 2 years ago

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.

jasonvarga commented 2 years ago

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?