一键导入
authenticate-source
Set up authentication for a source connector — generate connector spec, collect credentials interactively, and validate auth.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up authentication for a source connector — generate connector spec, collect credentials interactively, and validate auth.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate public-facing documentation for a connector targeted at end users.
Run the authenticate script to collect credentials from the user via a browser form.
Guide the user through creating or updating a pipeline for a source connector — read the docs, build a pipeline spec interactively, and run create_pipeline or update_pipeline.
Generate the connector spec YAML file defining connection parameters and external options allowlist.
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.
Generate and run an auth verification test to confirm that collected credentials are valid.
| 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.
OAuth connectors: when
connector_spec.yamldeclares aconnection.oauthblock with an interactive flow (u2m/u2m_per_user), the script runs the OAuth 2.0 authorization-code flow — the user suppliesclient_id+client_secret, then logs in and authorizes in the browser, and the token is obtained automatically (the source's OAuth app must have the redirect URI registered). For anm2mconnector the user just suppliesclient_id+client_secret(no browser). The steps below are otherwise unchanged.
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.