Connections
This guide is the authoritative reference for connections in DataLug. It covers the new-connection wizard, environment-specific overrides, the saved actions library, and the connector catalog. For provider-side OAuth and service-principal setup (Google Drive, OneDrive, Azure Blob, SharePoint, Dropbox, S3) follow the File hub setup guide.
The Connections page has two main tabs:
- Connections: your configured connections.
- Connectors: the connector catalog (browse available systems).
Workspace activation behavior:
?intent=createopens the New Connection wizard automatically.?projectId=...applies project context immediately and shows a project-context banner.?focusConnectionId=...highlights the requested connection row.
Navigation Links (Project + Environments)
In the Connections list:
- If a connection is Project scope, the Project name is a hyperlink to open that project.
- Environment names (from environment settings) are hyperlinks to open the Environments page filtered to that environment.
Create a Connection (Wizard)
- Go to
Connections. - Click
New Connection. - Wizard Page 1:
- Scope: Project or Global
- System: choose the connector (Salesforce, SQL Server, MySQL, PostgreSQL, Oracle, SFTP/FTP, SMTP, Generic API, etc.)
- Project: only required for Project-scoped connections
- Connection Name:
- The UI shows a prefix hint based on the system, such as
(Salesforce) - - Enter the suffix (for example,
DEV,Sandbox,Prod,Partner DB)
- The UI shows a prefix hint based on the system, such as
- Click
Next. - Wizard Page 2:
- The system-specific connection modal is rendered inside the wizard shell.
- Configure:
- Basic connection fields
- Security settings (SSL/TLS, auth, etc.)
- Advanced settings (timeouts, pool sizes, etc.)
- Add Environment Settings (recommended):
- Create per-environment overrides so DEV/QA/PROD use different hosts/credentials.
- Use
Test Connectionto verify the environment config.
- Click
Save.
Notes:
- If you click
Add Environment, the environment config should copy all relevant fields (Basic/Security/Advanced) into that environment entry so tests and deployments are consistent. - Connection testing may require a runtime mapped to the selected environment, depending on the connector and environment setup.
File Hub Setup Guide
For canonical provider-side setup instructions for DataLug file hubs, use:
Use that guide when you need to prepare:
- Google Drive and Google Sheets OAuth client apps
- OneDrive OAuth client apps
- SharePoint Files OAuth client apps and site/library setup
- Azure Blob Storage SAS or service principal access
- shipped Dropbox app setup plus shipped AWS S3 bucket access setup
The sections below are short DataLug-specific summaries only.
Google Client App Setup (Google Drive and Google Sheets)
Use the canonical file-hub setup guide for the full provider walkthrough:
For Google Drive and Google Sheets, DataLug expects:
Client IDClient SecretRedirect URI
Important reminders:
- One Google OAuth web application can support both connectors.
- DataLug uses a backend-owned OAuth callback.
- The Google redirect URI must exactly match the callback shown in the DataLug modal.
- After save, the client secret is write-only and is not returned to the browser.
Microsoft Client App Setup (OneDrive)
Use the canonical file-hub setup guide for the full provider walkthrough:
For OneDrive, DataLug expects:
Client IDClient SecretRedirect URITenant ID
Important reminders:
- The Microsoft Entra redirect URI must be registered as
Web, notSingle-page application (SPA). - DataLug uses a backend-owned OAuth callback and server-side code redemption.
- Use
commononly when the app registration supports that sign-in model. - After save, the client secret is write-only and is not returned to the browser.
Azure Blob Storage Access Setup
Use the canonical file-hub setup guide for the full provider walkthrough:
For Azure Blob Storage, DataLug supports these auth paths:
SAS TokenService Principal
Important reminders:
- Required shared fields are
Storage Account,Container, and optionalDefault Path Prefix. - Azure Blob supports the shared file-family actions:
List Files,Get File,Upload File(s),Write Rows To File(s),Move/Rename,Delete, andCreate Folder. - Blob paths are treated as virtual directories under the selected container.
Create Folderuses a hidden.datalug-foldermarker blob for folder-style compatibility.- After save, SAS tokens and client secrets are write-only and are not returned to the browser.
Salesforce Connected App Setup
Use this when you want Salesforce-hosted sign-in in the connector modal instead of manually entering a password or refresh token.
DataLug now supports these Salesforce auth modes:
OAuth Username/PasswordOAuth Refresh TokenJWT BearerHosted Salesforce Sign-In
For Hosted Salesforce Sign-In, set up a Salesforce Connected App and capture:
Login URLClient IDClient SecretRedirect URI
Provider-side setup:
- In Salesforce Setup, open
App Manager. - Create a new
Connected App. - Enable
OAuth Settings. - Add the exact
Redirect URIshown in the DataLug Salesforce modal. - Enable scopes that allow API access and refresh-token issuance for the connector workflow.
- Save the app and wait for the Connected App to finish provisioning.
- Copy the generated consumer key as the
Client ID. - Copy the consumer secret as the
Client Secret. - Choose the correct
Login URLfor the org you want users to sign in against:- production:
https://login.salesforce.com - sandbox:
https://test.salesforce.com - My Domain: your org-specific login URL
- production:
Important reminders:
- The popup uses Salesforce-hosted login. DataLug does not collect the Salesforce username/password in the popup flow.
- The redirect URI must exactly match what DataLug shows in the modal.
- After save, the client secret and OAuth tokens are stored securely on the server and are not returned to the browser in plaintext.
- Existing Salesforce auth modes continue to work; this popup flow is additive.
Manage Saved Actions for a Connection
From the Connections list:
- Use the "Actions" link/icon to view saved actions for that connection.
- Saved actions are filtered to the active project context where applicable (project-scoped actions vs global).
Export/Import Connections (Encrypted)
If you need to move a connection configuration between environments (for example local -> dev), DataLug supports exporting a connection as an encrypted file and importing it elsewhere.
Requirements:
- You must be logged in.
- The backend must be configured with
DLR_CONNECTION_TRANSFER_SECRET.- Important: any instances/environments that exchange exports must use the same secret value.
Export:
- Go to
Connections. - Find the connection row.
- Click
Download/Export. - Save the exported file.
Import:
- Go to
Connections. - Click
Import. - Upload the exported file.
- Review the imported connection name/scope and save.
Notes:
- Sensitive environment fields (passwords/tokens) are encrypted in the export.
- If the destination instance has a different secret, import will fail (cannot decrypt).
Connector Catalog
Use the Connectors tab to:
- browse available connectors
- see connector status (active/inactive)
- open the New Connection wizard for the selected connector