Creating a Custom OAuth App
When to Create a Custom OAuth App
Creating a custom app is required in order to connect.
Follow the steps below to create a custom OAuth app and obtain the connection properties in a specific OAuth authentication flow.
Create a Custom OAuth App: Desktop
Register your NetSuite app on Setup --> Integrations --> Manage Integrations. Select the checkbox for each of Token-Based Authentication and TBA: Authorization Flow for OAuthVersion 1.0 support. Check the checkboxes for Authorization Code Grant, Restlets, and Rest Web Services for OAuthVersion 2.0 and set an appropriate Redirect URI. Then, obtain the following connection properties:
- OAuthClientId: Set this to the Consumer Key assigned when you registered your app.
- OAuthClientSecret: Set this to the Consumer Secret assigned when you registered your app.
- CallbackURL: Set this to the Redirect URI defined when you registered your app such as http://localhost:33333. Note that this must be an exact match including any trailing '/' characters.
Create a Custom OAuth App: Web Apps
Register your NetSuite app on Setup --> Integrations --> Manage Integrations. Select the checkbox for each of Token-Based Authentication and TBA: Authorization Flow for OAuthVersion 1.0 support. Check the checkboxes for Authorization Code Grant, Restlets, and Rest Web Services for OAuthVersion 2.0 and set an appropriate Redirect URI. Then, obtain the following connection properties:
- OAuthClientId: Set this to the Consumer Key assigned when you registered your app.
- OAuthClientSecret: Set this to the Consumer Secret assigned when you registered your app.
Create a Custom OAuth App: Headless Machines
Register your NetSuite app on Setup --> Integrations --> Manage Integrations. Select the checkbox for each of Token-Based Authentication and TBA: Authorization Flow for OAuthVersion 1.0 support. Check the checkboxes for Authorization Code Grant, Restlets, and Rest Web Services for OAuthVersion 2.0 and set an appropriate Redirect URI. Then, obtain the following connection properties:
- OAuthClientId: Set this to the Consumer Key assigned when you registered your app.
- OAuthClientSecret: Set this to the Consumer Secret assigned when you registered your app.