Looking for advice #2: How do you all store 3rd p...
# suitescript
d
Looking for advice #2: How do you all store 3rd party ClientId/Secret inside you netsuite for use in call outs?
My homegrown solution is to create a API KEY in NetSuite (random password). Then create a cipher (AES). cipher.update using {clientid: '', clientSecret:''}. and capture the cipherout.
Then, in the production release, decipher (using the cipherout) and get back the keys
There's gotta be a better way
d
There is a page in netsuite for creating / managing secrets - Setup > Company > API Secrets . I have not used this myself though
d
Yes, I've used it with great success ... for hold bearer tokens and other single string secrets
I suppose the ClientID doesn't need to be secure ... but the Secret does. I'll just do that