Steps to Set Up Token-Based Authentication:
- Create an Integration Record in NetSuite:
- Log in to your NetSuite account as an administrator.
- Navigate to Setup > Integration > Manage Integrations > New.
- Fill in the required fields, such as Name, Integration Type (e.g., User or Account), and any other relevant details.
- Ensure you select the “Token-Based Authentication” checkbox.
2. Generate and Retrieve Consumer Key and Secret:
- After saving the integration record, NetSuite generates a Consumer Key and Consumer Secret.
- These credentials will be used by your connector to authenticate with NetSuite’s API.
3.Assign Roles and Permissions:
- Assign appropriate roles to the integration record based on the permissions required for API access.
- Typically, you would assign roles that grant access to relevant records and operations needed by your integration.
4.Implement Token Authentication in your Connector:
- In your connector or integration code, implement logic to authenticate using the Consumer Key and Consumer Secret.
- Use OAuth 1.0a protocol to generate and sign requests with these credentials when interacting with NetSuite’s API endpoints.
5.Testing and Validation:
- Test the integration thoroughly in a sandbox environment to ensure proper authentication and functionality.
- Verify that the connector can securely access and manipulate data within NetSuite as expected.
6.Deploy and Monitor:
- Once testing is successful, deploy the integration to your production environment.
- Monitor the integration for performance, errors, and security compliance on an ongoing basis.
By following these steps, we can effectively set up token-based authentication for a NetSuite connector, ensuring secure and reliable integration with NetSuite’s API services.