Phoenix Scopes

MANDATORY for Phoenix 1.8+ authentication and authorization. Covers Scope-based authentication replacing current_user, including Scope struct definition with roles and permissions, scope creation and usage in LiveViews and controllers, safe template access patterns, and step-by-step migration from current_user to scopes. Use when working with Phoenix 1.8+ authentication, authorization, Scope structs, current_scope, scope-based auth, roles, permissions, or migrating from current_user to the new scope-based model. Trigger words: Scope, current_scope, scopes, phoenix scopes, role, roles, permission, permissions, authorization, authorize, can?, authenticated?, anonymous, on_mount, require_scope.

igmarin 2c2c437 7.2 KB Updated

File contents

igmarin/elixir-phoenix-skills/tree/main/skills/phoenix-scopes commit 2c2c437251

Frequently asked questions

npx skillmds@latest add igmarin/phoenix-scopes