Docs menu

Docs Connectors

Build a connector

A connector is one Python module per app. Learn what it must do, what it must never do, and how to record an admin panel for a browser connector.

Draft This page is a draft. It describes the plan for this part of Open Revoke and will change.

What a connector is

A connector is one Python module per app in backend/app/connectors/<key>/. It:

  • reads the full account list of the app, or fails;
  • optionally creates and removes accounts;
  • never writes to the Open Revoke database. The worker does that with what the connector returns.

The step-by-step guide is skills/backend/new-connector.md in the repository.

Record an admin panel for a browser connector

A browser connector sends the same requests the app’s admin panel sends. To see them, click through the admin panel in the live view while the capture tool records:

docker compose exec app python -m app.devtools.capture --host app.slack.com --out captures/slack.jsonl

The tool saves every fetch and XHR request to that host as JSON lines, with tokens and auth headers masked. The file still contains real names and e-mails: captures/ is in .gitignore, keep it out of git and delete it when the connector is done.

Send it upstream

Open a pull request with the module and a page for it in these docs. See Contribute.