A Plug to authenticate and authorize users based on Cassette
The package can be installed as:
-
Add cassette_plug to your list of dependencies in
mix.exs
:def deps do [{:cassette_plug, "~> 1.0"}] end
-
Ensure cassette-plug is started before your application:
def application do [applications: [:cassette_plug]] end
Please check the module docs on Cassette.Plug
and Cassette.Controller
for usage