View Source Signaturex (Signaturex v1.5.0)

Summary

Functions

Sign a request using key, secret, HTTP method, query string params and an optional body

Functions

Link to this function

sign(key, secret, method, path, params)

View Source
@spec sign(binary(), binary(), binary() | atom(), binary(), map()) :: map()

Sign a request using key, secret, HTTP method, query string params and an optional body

Link to this function

validate(key, secret, method, path, params, timestamp_grace \\ 600)

View Source
@spec validate(binary(), binary(), binary() | atom(), binary(), map(), integer()) ::
  boolean()

Validate request

Returns true or false

Link to this function

validate!(key, secret, method, path, params, timestamp_grace \\ 600)

View Source
@spec validate!(binary(), binary(), binary() | atom(), binary(), map(), integer()) ::
  true

Validate request

Raises an AuthenticationError if the request is invalid