Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Ensure logout requires authentication #269

Merged
merged 1 commit into from
May 8, 2024
Merged

[4.x] Ensure logout requires authentication #269

merged 1 commit into from
May 8, 2024

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented May 8, 2024

Please see: laravel/fortify#536

laravel/ui specific considerations

This only fixes future installations.

We could throw an unauthenticated exception in the controller so that existing installs get this fix, but I don't love that solution as it wouldn't necessarily match what their apps Authenticate middleware does if they have made customisations.

Putting the auth middleware on the route in the routes file feels problematic as well as the app may not have an auth middleware. Everywhere a middleware is currently referenced is published as a stub so the user has full control.

This doesn't seems like a massive issue, so I feel this "simple" fix is reasonable.

@timacdonald timacdonald changed the title Ensure logout requires authentication [4.x] Ensure logout requires authentication May 8, 2024
@taylorotwell taylorotwell merged commit c75396f into laravel:4.x May 8, 2024
10 checks passed
@timacdonald timacdonald deleted the logout branch May 8, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants