JDBC Driver for NetSuite

Build 22.0.8462

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.
Set Callback URL to http://localhost:portnumber and set CallbackURL to match. You can specify any port available.

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.
Set the Callback URL to a page on your website where you would like the user to be returned after the user grants permissions to 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.
Set the Callback URL to http://localhost:portnumber. You can specify any port available.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462