plug_hmac v0.4.1 PlugHmac

A Plug to validate and generate Authorization header. Authorization = hmac id=URI_encode(client_id),signature=URI_encode(Signature),nonce=URI_encode(Nonce) Signature = HMAC_SHA256(client_secret, HTTP verb + Path + Query string + Body + Nonce ) Nonce = Random string

Link to this section Summary

Link to this section Functions

Link to this function

call(conn, opts)

Callback implementation for Plug.call/2.

Link to this function

check_sign?(hmac_algo, secret_handler, credential, conn)

Callback implementation for Plug.init/1.

Link to this function

make_header(hmac_algo, get_secret_fun, method, path, query_string, body, nonce)

Link to this function

make_header(hmac_algo, secret_handler, client_id, method, path, query_string, body, nonce \\ nil)

Link to this function

sign(hmac_algo, secret, content_to_sign)

Link to this function

split_params_from_string(string)