Please tell me I'm wrong. Is it really impossible ...
# suitescript
l
Please tell me I'm wrong. Is it really impossible to generate consumer secret through SuiteScript?
b
if you mean the consumer secret generated in NetSuite by creating an integration record. then yes: impossible
l
correct, I was referring to the one from Users / Roles > Access Tokens > New.. thanks @battk. I'm assuming that TBA is then only recommended if the integration will run for one user only? if it's intended for 100 users, then one shall go with the Basic Authentication?
b
your response is confusing
TBA authentication has 2 parts to it
the consumer secret and consumer used by the integration and created via an integration record
and the token key and secret used by the user and created by an access token
neither supports suitescript
typically an integration uses 1 user's access token to interact with NetSuite, its unusual to need or even want an integration to use 100 different logins
l
sorry let me rephrase that.. we are trying to build an app wherein the credentials used will be the current users' log in.. we're not going to authenticate via a special user. that's why I asked if it's possible to generate it programatically as we don't want to do it via Admin. well, at least I'm familiar now with the usual set up, sorry for the confusion. thanks for your help, @battk!
b
if you can convince the user to giveup their credentials, you can use the token endpoint to generate tokens
its in the help center under
Issue Token and Revoke Token REST Services for Token-Based Authentication