Hi, I am trying to develop in NodeJS. I am exploring if we can customize and use the passport node package. I am having difficulty in figuring out which flavour to use. Is this oauth1 or oauth2 ? Please clarify. Also it would help, if you can share the code in JavaScript to connect to Kite. Thanks Cheers, Rajendra
Hi, I figured out the above. btw, the HMAC value is coming out wrong. I got this hash ff7ef8bbe4de36b16d4908510e0cabda6a10e415
Please advise if there is anything wrong, the code follows :- -------------------------- var hmac = crypto.createHmac('sha256', ''); hmac.setEncoding('hex'); var ApiKey = 'xxxx'; var token = 'yyyy'; var ApiSecretKey = 'zzzz'; hmac.write(ApiKey + token + ApiSecretKey);
I figured out the above. btw, the HMAC value is coming out wrong. I got this hash
ff7ef8bbe4de36b16d4908510e0cabda6a10e415
Please advise if there is anything wrong, the code follows :-
--------------------------
var hmac = crypto.createHmac('sha256', '');
hmac.setEncoding('hex');
var ApiKey = 'xxxx';
var token = 'yyyy';
var ApiSecretKey = 'zzzz';
hmac.write(ApiKey + token + ApiSecretKey);