Closed lifeiscontent closed 3 days ago
@SteffenDE @josevalim could you guys maybe shed some light on this? I'm wondering if there's just something I might be missing to make this work, but at least on the surface, it wasn't clear how to handle the unauthenticated state for a update action.
I didn’t have time to look into this yet, but it’s on my todo list. I’ll try to find some time tomorrow :)
Thank you!
This is a bug: LiveView should enforce a full page redirect when navigating across live sessions. We do it for navigation events, but we are not doing it for patch. You can read this guide for more information: https://github.com/phoenixframework/phoenix_live_view/blob/main/guides/server/security-model.md
I will transfer this to LiveView repo.
Environment
Actual behavior
running:
router.ex
live view does not redirect me when I click "edit" on the article
new
link and when I try to accesscurrent_user
I getnil
Expected behavior
I would expect live view to redirect me, as the default setup suggests it should do, if I place these routes in
require_authenticated_user