authable v0.10.0 Authable.Plug.UnauthorizedOnly
Authable plug implementation to refute authenticated users to access resources.
Link to this section Summary
Functions
Plug function to refute authenticated users to access resources
Link to this section Functions
Link to this function
call(conn, opts)
Plug function to refute authenticated users to access resources.
Examples
defmodule SomeModule.AppController do
use SomeModule.Web, :controller
plug Authable.Plug.UnauthorizedOnly when action in [:register]
def register(conn, _params) do
# only logged out users can access this action
end
end
Link to this function
init(list)