authable v0.9.1 Authable.Plug.UnauthorizedOnly

Authable plug implementation to refute authencated users to access resources.

Link to this section Summary

Functions

Plug function to refute authencated users to access resources

Link to this section Functions

Link to this function call(conn, opts)

Plug function to refute authencated 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 not logged in user can access this action
  end
end