API Reference permit_phoenix v#0.3.0
View SourceModules
Phoenix, Plug and LiveView integrations integration for Permit.
Provides default action groupings and singular actions for Phoenix controllers and live views. This module is used as a default implementation that can be overridden in individual modules.
Injects authorization plug (Permit.Phoenix.Plug), allowing to
provide its options either directly in options of use
, or
as overridable functions.
A live view module using the authorization mechanism should mix in the LiveViewAuthorization module
Hooks into the :mount and :handle_params lifecycles to authorize the current action. The current action is denoted by the :live_action assign (retrieved from the router), for example with the following route definition
Authorization plug for the web application.
Defines types for usage with Permit in the context of Phoenix applications.