plug_auth v1.1.0 PlugAuth.Authentication.Token
Implements token based authentication. To use add
plug PlugAuth.Authentication.Token, source: :params, param: "auth_token"
or
plug PlugAuth.Authentication.Token, source: :session, param: "auth_token"
or
plug PlugAuth.Authentication.Token, source: :header, param: "X-Auth-Token"
or
plug PlugAuth.Authentication.Token, source: { module, function, ["my_param"]} end
to your pipeline.
Summary
Functions
Utility function to generate a random authentication token