User Guides
Data Intelligence
Integration Setup
Configure Authentication Method

Configure Authentication Method


In this step, you select and configure the authentication method required by the third-party platform (e.g., OAuth 2.0, API Key, Basic Auth). This configuration defines how Item DI obtains and refreshes tokens for authorized API access.

Step 2: Configure Authentication Method

auth-methods

  1. Choose the Auth Method that matches the platform’s requirements.
  2. Provide the required credentials and parameters based on the selected method.
Auth MethodRequired FieldsBehavior
API KeyAPI keyToken passed in headers or query parameters
Basic AuthUsername and passwordSends credentials as base64-encoded HTTP header
Session AuthLogin URL
Session cookie/header name
Logs in once and reuses session cookie or header
OAuth 2.0 CodeClient ID
Client Secret
Redirect URI
Auth URL
Token URL
Refresh URL
Standard OAuth flow with user consent
OAuth 2.0 ClientClient ID
Client Secret
Token URL
Server-to-server token exchange (no user interaction)
OAuth 2.0 RefreshRefresh URL
Refresh Token
Headers
Exchanges long-lived refresh token for new access token

The system automatically pre-fills default fields such as Auth URLs, token methods, and header structures based on the selected authentication type. Developers only need to confirm and customize values such as Client ID, API key, or specific query parameters.

  1. If the platform requires additional input (e.g. region, seller_id, customer_id), enable JSON Schema to define these variables as dynamic values used in token or refresh requests.

selling-region

  1. Each authentication method has a different configuration flow beyond the basic setup. Below are use cases that illustrate how to configure specific platforms:
  2. Complete the setup and click Save and Next.

OAuth 2 Code Example

Flowchart

Besides of the basic configuration, the following tables show how to configure a standard OAuth 2.0 Code authentication flow in Item DI.

oauth2-code

Build Authorization URL

ConfigDescriptionDeveloper Action
Auth URLOAuth consent endpoint from the platformEnter URL from platform docs
MethodHTTP request methodTypically GET
ParametersRequired query parameters (e.g. client_id, redirect_uri, scope)Define as key-value pairs
Assert ExpressionValidate redirect contains auth codeSet assert: query.code exists
Output Processingextract code from redirect URLquery.code

Code to Token Exchange

ConfigDescriptionDeveloper Action
Token URLEndpoint to exchange code for tokensFrom platform docs
MethodHTTP methodTypically POST
Body ParametersParameters for token exchange (e.g. grant_type, code, redirect_uri)Map from platform requirements
HeadersToken request headers (e.g. Authorization)As required (often Basic with client credentials)
Assert ExpressionEnsure token is returnedCheck HTTP 200 and $.access_token
Output ProcessingExtract tokens from JSON body$.access_token, $.refresh_token
Token ExpirationDefine how long the token is validEnter a fixed number (in seconds)

Refresh Token Configuration

ConfigDescriptionDeveloper Action
Refresh URLToken refresh endpointOften same as token URL
MethodHTTP methodTypically POST
Body ParametersFields like grant_type=refresh_token, refresh_tokenFrom docs
HeadersHeaders for refresh requestUsually same as token request
Assert ExpressionEnsure token refreshedHTTP 200 and $.access_token
Output ProcessingExtract new token valuesUse: $.access_token, $.refresh_token
Token ExpirationTrack new expiration timeEnter a fixed number (in seconds)