HTTP Event Server v0.2.6 HTTPEventServer.Authorize View Source
Authorizes a request by checking if the Authorization Bearer Header contains the token specifiec in its config.
Link to this section Summary
Link to this section 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