Skip to content

Conversation

@madhavanramachandran
Copy link

Node js snippets to generate hmac token from cli.

@shubhu251
Copy link
Contributor

@madhavanramachandran please add apiKeyId in the file
authentication/hmac_node_js/index.js

const apiKeyId = argv['apiKeyId']

reference https://github.com/cybrilla/fp-snippets/blob/master/authentication/hmac-postman-pre-request-script.js

@shubhu251
Copy link
Contributor

file : authentication/hmac_node_js/index.js link no 28 add replace tenant with apiKeyId

const httpHeaders = { 
    'content-type': 'application/json',
    'Authorization': apiKeyId +":"+hmacToken,
    'MFProDate': requesttime,
    'x-tenant-id': tenant
}

@shubhu251
Copy link
Contributor

remove default domain from here file authentication/hmac_node_js/index.js line no 12
const hostName = argv['domain'] || 'https://api.fintechprimitives.com'

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