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 more information, see Enable the Token-based Authentication Feature.
-
You must create a role that permits logging in using token-based authentication. For more information, see Set Up Token-based Authentication Roles.
-
You must assign a user to a role with permission to log in by using token-based authentication. For more information, 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 more information, 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 more information, see Manage TBA Tokens in the NetSuite UI.
For general information about the Token-based Authentication (TBA) feature, see Token-based Authentication (TBA).
After you completed these steps, you can create logic for generating an OAuth header. For more information about the data required for creating the header, see Step One Obtain An Unauthorized Request Token.