TBA Setup Requirements
Using the OAuth protocol with RESTlets requires the Token-based Authentication (TBA) feature. Before you can use TBA, you must complete several setup tasks. These tasks include the following:
-
You must enable the Token-based Authentication feature. For details, see Enable the Token-based Authentication Feature.
-
You must create a role that permits logging in using token-based authentication. For details, see Set Up Token-based Authentication Roles.
-
You must assign a user to a role that has permission to log in by using token-based authentication. For details, see Assign Users to Token-based Authentication Roles.
-
You must create an integration record for the application on Setup > Integration > Manage Integrations. On the integration record, the Token-based Authentication box must be checked. Enabling this option causes the system to generate the consumer key and secret that represent the application. For details, see Create Integration Records for Applications to Use TBA.
-
You must create a token and token secret for the user who will call the RESTlet. For details on this process, see Manage TBA Tokens in the NetSuite UI.
For general details about NetSuiteās Token-based Authentication feature, see Token-based Authentication (TBA).
After you completed these steps, you can create logic for generating an OAuth header. For details on the data required for creating the header, see Step One Obtain An Unauthorized Request Token.