Skip to content

LiveView authentication - Canary 2.0.0#88

Merged
quexpl merged 6 commits intomasterfrom
liveview
Feb 11, 2025
Merged

LiveView authentication - Canary 2.0.0#88
quexpl merged 6 commits intomasterfrom
liveview

Conversation

@quexpl
Copy link
Collaborator

@quexpl quexpl commented Feb 11, 2025

Initial implementation of Canary plugs for LiveView hooks for handle_params and handle_event stage.
I wanted to be as similar in use as possible to plugs. For Plug based authentication we have

plug  :load_and_authorize_resource, model: Post

now we can have the same functions but for Phoenix LiveView!

mount_canary  :load_and_authorize_resource, model: Post

@quexpl quexpl merged commit 61cee16 into master Feb 11, 2025
4 checks passed
@quexpl quexpl deleted the liveview branch February 11, 2025 23:30
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.

1 participant