zuppler_users_client v0.0.2 ZupplerUsers.Auth.Plug

Plug that protects routes from unauthenticated access. If a header with name "authorization" and value "Bearer #{token}" is present, and "token" can be decoded with the applications token secret or the auth_token param is in the body, the user is authenticated and the decoded token is assigned to the connection under the key "user_info".

Summary

Functions

Callback implementation for c:Plug.call/2

Callback implementation for c:Plug.init/1

Functions

call(conn, opts)

Callback implementation for c:Plug.call/2.

init(opts)

Callback implementation for c:Plug.init/1.