View Source TeslaHmacAuth (tesla_hmac_auth v0.1.0)
A tesla middleware, for use with PlugHmac as a http client.
Example usage
Setting by client_id & secret:
defmodule MyClient do use Tesla plug TeslaHmacAuth, client_id: "id", secret: "secret" end
Setting by get_secret_fun:
defmodule MyClient do use Tesla plug TeslaHmacAuth, get_secret_fun: &MyConfig.get_secret/0 end
Setting by config:
config :tesla_hmac_auth, auth: {"client_id", "secret"}
defmodule MyClient do use Tesla plug TeslaHmacAuth end
Summary
Functions
Callback implementation for Tesla.Middleware.call/3
.