Google Drive Connector
Cloud file storage. Authenticated by OAuth — DagFlux opens your browser to authorise, captures the redirect on a local port, exchanges the code for tokens, and stores them encrypted. Tokens auto-refresh within a five-minute buffer of expiry.
What it lets you do
- List the folders you have access to.
- List files in a folder.
- Download a file.
- Upload a file.
- Delete a file.
- Inspect file metadata.
- Export Google-native files (Docs, Sheets, Slides) into other formats — PDF, Word, Excel, plain text, etc. — at download time.
- Use the native Google file picker for selecting files in DataSource nodes (DagFlux fetches the picker credentials automatically).
Connection form
| Field |
Required |
Sensitive |
Default |
| OAuth Client ID |
Yes |
Yes |
— |
| OAuth Client Secret |
Yes |
Yes |
— |
| Redirect URI |
No |
No |
http://localhost:3000/oauth/callback |
The access token, refresh token, and expiry are filled in automatically when you authorise.
Setting up credentials
Step 1 — Open Google Cloud Console
Go to the Google Cloud Console and either pick an existing project or create a new one.
Step 2 — Enable the Google Drive API
Go to APIs & Services → Enabled APIs & services, click + Enable APIs and services, search for Google Drive API, and enable it.
Step 3 — Configure the OAuth consent screen
If you haven't yet:
- Go to APIs & Services → OAuth consent screen.
- Pick External (or Internal for Workspace orgs).
- Fill in app name, support email, and developer contact.
- Add the scopes:
https://www.googleapis.com/auth/drive.file — the safest default; restricts access to files DagFlux opens or creates.
- Add
https://www.googleapis.com/auth/drive.readonly if you need to read files DagFlux didn't create.
- Add
https://www.googleapis.com/auth/drive.metadata.readonly for metadata-only listing.
- Add yourself as a test user while the app is in "Testing" status.
Step 4 — Create OAuth credentials
- Go to APIs & Services → Credentials.
- Click + Create Credentials → OAuth client ID.
- Application type: Web application.
- Name:
DagFlux.
- Under Authorized redirect URIs, add
http://localhost:3000/oauth/callback.
- Click Create and copy the Client ID and Client Secret.
Step 5 — Enter the credentials in DagFlux
Paste the client id and secret. Leave the redirect URI as the default unless you changed it in step 4.
Step 6 — Authorise
Click Authorize in the form, sign in with the Google account that owns the files, and consent. DagFlux saves the resulting tokens encrypted.
Behaviour notes
- Files are identified by Google's file IDs, not by their human file names. The interactive UI handles the translation for you.
- Authorised scopes cover read/write of files DagFlux created, plus read access to files you've explicitly granted.
- Multiple Google scopes (drive.file, drive.readonly, drive.metadata.readonly) are supported for different permission models.