Here are all details about configuring Connectors to authenticate with OAuth2
Introduction
Before diving into configuration details, it is useful to first understand at a high level how OAuth2 works.
This helps with troubleshooting and understanding the process flow.
Redirect URI
The redirect URI is always https://api.locoia.com/v1/oauth2/callback/connectorname
For one-word Connectors, use the lowercase connector name
For multi-word Connectors, replace spaces with %20
TikTok - Alternative client keys and access token path
TikTok has a few deviations from the OAuth2 standard:
The client id key is app_id instead of client_id, thus alternative_client_id_key needs to be set accordingly
The client id key is secret instead of client_secret, thus alternative_client_secret_key needs to be set accordingly
The access token is returned inside a dictionary called data, instead of in the 'root' dictionary, thus access_token_path needs to be set accordingly
The base domain for the access url, is always https://business-api.tiktok.com/, even though the base domain for the endpoints itself is based on the environment: https://{% if environment is defined and environment == 'Sandbox' %}sandbox{% else %}business{% endif %}-api.tiktok.com/open_api/v1.2/
The Authentication Configuration thus needs to be setup like this: