en un clic
authenticate-source
// Set up authentication for a source connector — generate connector spec, collect credentials interactively, and validate auth.
// Set up authentication for a source connector — generate connector spec, collect credentials interactively, and validate auth.
Create a pyproject.toml for a source connector and build it as an independent Python package.
Single step only: audit a completed connector — implementation, testing & simulator validation, artifacts, security smells, cross-doc consistency — and produce a scored markdown review report. Read-mostly; does not modify connector code.
Single step only: implement the connector in Python when the API doc already exists. Do NOT use for full connector creation — use the create-connector agent instead.
Single step only: run the per-source pytest suite, diagnose failures, and fix the connector or simulator until everything passes. Branches on mode={simulate|record}. Do NOT use for full connector creation — use the create-connector agent instead.
Implement test utilities that write test data to the source system and validate end-to-end read cycles.
Run the authenticate script to collect credentials from the user via a browser form.
| name | authenticate-source |
| description | Set up authentication for a source connector — generate connector spec, collect credentials interactively, and validate auth. |
Set up authentication for {{source_name}} in three sequential steps.
src/databricks/labs/community_connector/sources/{{source_name}}/{{source_name}}_api_doc.mdCheck if src/databricks/labs/community_connector/sources/{{source_name}}/connector_spec.yaml already exists.
connector-spec-generator subagent.
Run this step directly — not as a subagent. This step is interactive — the script blocks until the user submits the browser form.
2a. Ensure venv:
python3.10 -m venv .venv && source .venv/bin/activate && pip install -e ".[dev]"
2b. Run authenticate script in background (block_until_ms: 0 — it blocks until form submission):
source .venv/bin/activate && python tools/scripts/authenticate.py -s {{source_name}} -m browser
2c. Extract the URL
Read the background Bash output. The script prints a line like:
→ http://localhost:9876
The port may differ from 9876 if already in use.
2d. Ask the user to fill in credentials
Use AskUserQuestion to show the user the URL and ask them to:
Wait for the user to explicitly confirm before proceeding. If the user reports an error, help them debug.
2e. After confirmation, verify the user's chosen credentials JSON file
exists at the path they picked. Remember the path — it gets passed as
CONNECTOR_TEST_CONFIG_PATH in subsequent steps.
connector-auth-validator subagentSubagent_type: connector-auth-validator prompt: Generate and run an auth verification test for {{source_name}}.
Report error if the validation failed.
---
## Rules
- Steps run **sequentially** — each depends on the prior step's output.
- If a subagent fails, report clearly — do not redo its work.