Codelation Messenger v0.1.1 CodelationMessenger.Authorize

Authorizes a request by checking if the Authorization Bearer Header contains the token specifiec in its config.

Summary

Functions

Returns Plug.Conn that has either already returned a response of 401 or not at all. This will look in the conn’s HEADERS and validates the Authorization Bearer Token is the same as in the config

Functions

authorize(conn)

Returns Plug.Conn that has either already returned a response of 401 or not at all. This will look in the conn’s HEADERS and validates the Authorization Bearer Token is the same as in the config