Oracle NetSuite SuiteScript Configuration for enabling Token Based Authentication

  • Updated

If you are implementing any of Oracle NetSuite Integrations in GoSweetspot using Token-based Authentication, you'll be asked to provide a Consumer Key, Consumer Secret, Access Token,and Access Token Secret.
In this tutorial, we'll walk through how to find those in your Oracle NetSuite account, and then connect with GoSweetspot using the Netsuite Integration settings option from Integration Page.

 

1) Enable Token-Based Authentication 

Log into Oracle NetSuite and navigate to Setup then CompanySetup Tasks, Enable Features,and then SuiteCloud. Enable Client SuiteScriptand Server SuiteScript.

InkedScreen_Shot_2019-08-12_at_9.22.20_am__1__LI.jpg

 

2) Setup and Assign Authentication Roles

Under the setup tab, you can now configure Token Based Authentication roles to ensure only authorized users are able to access your NetSuite Cloud. Under Setupcreate a new role and clickAddto select the following permissions to create a new role to enable token access (Administrator roles have the following already enabled):

  • Access Token Management
  • Log in using Access Tokens
  • User Access Tokens

InkedScreen_Shot_2019-08-12_at_10.18.55_am_LI.jpg

 

Now, navigate toListsthen Employees,and the Employees tab. Click Editnext to each employee you want to add token authentication permissions to. Click Accessand under Roleadd the token authentication role we just created. Click Addthen Save.

Inkednetsuite2_LI.jpg

Finally, navigate toGlobal Permissionsthen set Webservices to Fulland Departmentsto View.

3) Generate Keys 

Navigate to Setupthen Integrationsand Manage Integrations.Click New. Fill in the name with whatever makes sense, and check theTOKEN-BASED AUTHENTICATION (TBA) box. Uncheck the USER CREDENTIALSbox if users should only be able to authenticate using tokens.

InkedScreen_Shot_2019-08-12_at_10.30.53_am_LI.jpg

Once you save you'll be given a Consumer Key and Consumer Secret. Copy and paste these somewhere safe.

InkedScreen_Shot_2019-08-12_at_10.37.11_am_LI.jpg

Save these two keys immediately. Once you leave this screen you will never be able to get them again, or you'll have to repeat Step 3 with a new integration.

 

4) Creating the Token

Now login with the user who is going to use the access tokens in GoSweetspot. Navigate to Manage Access Tokenson the home dashboard under Settings.

InkedScreen_Shot_2019-08-12_at_10.51.18_am_LI.jpg

Create New Token and select the integration name you set in Step 3. A Token IDand Token Secretwill be created. Copy and paste these somewhere safe.

Inked__LI.jpg

Save these two keys immediately. Once you leave this screen you will never be able to get them again, or you'll have to repeat Step 3 with a new integration.

 

5) Add Credential in GoSweetspot

Remember to add the credentials back to GoSweetspot Integration Setting using this article.