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

LiveView authentication - Canary 2.0.0 #88

Merged
merged 6 commits into from
Feb 11, 2025
Merged

LiveView authentication - Canary 2.0.0 #88

merged 6 commits into from
Feb 11, 2025

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