Get Started with Widget
Airbyte Credentials
To use Airbyte Embedded, you must have an active Airbyte Cloud with Embedded enabled. (Please connect with us if you would like to sign up for a trial of Airbyte Embedded). Once you have your Airbyte instance enabled, log onto cloud.airbyte.com/embedded, and complete the onboarding flow, including your destination configuration. Then navigate to Settings > Embedded and note down the following values.
Organization Id
: Unique identifier to your Airbyte instance.Client Id
: Unique app id. Required for API access.Client Secret
: Secret key used to obtain a refresh token for API access.
If the client Id and Client Secret are blank, you will need to create a new Application via Settings > Applications.
In addition to the Embedded keys above, you will require an external user id. This is a unique identifier you create and assign when initiating the Embedded Widget. You must create one unique identifier for each of your users using a UUID generator or internal customer identifier. The sample onboarding app uses the email provided for the external user id. In production, you may need to change this to use a common UUID library such as this.
Configure .env
Clone the sample app via Github, and navigate to embedded-sampleweb-reactjs/server.
git clone <repository-url>
cd embedded-sampleweb-reactjs/server
Then, copy the .env.local.example to .env:
cp .env.example .env
Set the SONAR_ALLOWED_ORIGIN
to be the url where your onboarding app will be deployed. Or use http://localhost:5173 for the default React host/port when running locally
# Airbyte Embedded Configuration
## For security reasons, we require that the widget can only we attached to a specific origin.
## If you're developing locally, it will look like: http://localhost:5173
## Once you're in production, it will look like: https://app.abc.com
SONAR_ALLOWED_ORIGIN=your_deployed_webapp_url
Paste in your the Organization Id, Client Id, Client Secret to the following keys:
## These 3 pieces of information are available in your initial workspace: Settings > Embedded
SONAR_AIRBYTE_ORGANIZATION_ID=your_organization_id
SONAR_AIRBYTE_CLIENT_ID=your_client_id
SONAR_AIRBYTE_CLIENT_SECRET=your_client_secret
The sample web app uses basic authentication to protect the webapp. This is fine for testing, but it is recommended to be changed for product use. Set your password in the .env file:
SONAR_WEBAPP_PASSWORD=your_password