Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid signature on authenticated GET request #15

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

aquamatt
Copy link
Contributor

The signature for GET requests must be made with the path+arg string
and not just the path. Prior to this patch authenticated GET requests
would fail with an "invalid signature" error:

iex(19)> ExGdax.list_fills(%{product_id: "BTC-EUR"})
{:error, "invalid signature", 400}

This patch ensures that the signature is created with the query string,
not just the URI path. list_fills, as above, then returns data.

The signature for GET requests must be made with the path+arg string
and not just the path. Prior to this patch authenticated GET requests
would fail with an "invalid signature" error:

iex(19)> ExGdax.list_fills(%{product_id: "BTC-EUR"})
{:error, "invalid signature", 400}

This patch ensures that the signature is created with the query string,
not just the URI path. `list_fills`, as above, then returns data.
@bnhansn bnhansn merged commit f3baf6a into bnhansn:master Oct 16, 2018
@aquamatt aquamatt deleted the fix/invalid_signature branch October 16, 2018 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants