API Reference permit_phoenix v0.2.0

modules

Modules

Phoenix, Plug and LiveView integrations integration for Permit.

Extends the predefined Permit.Actions.CrudActions module and defines the following action mapping - usually applicable for most Phoenix applications

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.