plug_hmac v0.3.0 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?(credential, conn)
Link to this function
init(opts)
Callback implementation for Plug.init/1
.
Link to this function
make_header(client_id, method, path, query_string, body)
Link to this function
sign(secret, content_to_sign)
Link to this function