Monitorex.Authentication (monitorex v0.3.0)

Copy Markdown

Phoenix LiveView on_mount hook for the Monitorex dashboard.

Reads the current user from the session (placed there by a Plug that calls resolve_user/1), calls resolve_access/1 on the configured resolver, and enforces the returned access level.

Configuration

config :monitorex, :resolver, MyApp.MonitorexResolver

If no resolver is configured, a default that grants :all access is used.