Post
Topic
Board Exchanges
Re: Official Quoine Exchange Thread
by
Hauruck
on 29/01/2017, 18:17:10 UTC
Greetings!

I’m working on integrating Quoine in my bot written in PHP. Unfortunately I’m having a hard time with the JWT authentication token and I hope it will be possible to get some support here?

The error I get trying to authenticate is: "Signature does not match"

I have debugged the JWT token over at: https://jwt.io/ with positive results but when trying to send it with postman to Quoine I get an error.

Screenshots: https://postimg.org/gallery/2ecv2hk6s/

Debugging so far:

I have imported my API token and secret in the TabTrader app to make sure it should be working and it is working fine.

I have tried several different PHP libraries for generating the JWT token:

https://github.com/firebase/php-jwt
https://github.com/namshi/jose
https://github.com/rmcdaniel/angular-codeigniter-seed/blob/master/api/application/helpers/jwt_helper.php

But to no avail…

The PHP code I’m working on can be viewed here:

http://pastebin.com/zWAHuU0p

If anyone smarter then me can help I would be most grateful. Or if someone has an example of the JWT authentication function in PHP, that would probably do it as well.

Looking forward to your reply.