Commit Graph

32 Commits

Author SHA1 Message Date
Manoj Bajaj 0a5126cc0f merge: resolve origin/main into docs-site cleanup branch
Keep v0.7 Mintlify refresh while adopting onboard/init renames and onboard
flow updates from main.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 13:10:02 -07:00
Manoj Bajaj 61515356a2 docs: refresh Mintlify site for v0.7 and remove stale profile/library references
Align public docs with Principal/Vault/Identity terminology, current daemon API paths, and the CLI/proxy/export integration surface instead of the removed AuthService library API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 13:02:11 -07:00
Manoj Bajaj e341d4ed3b Merge pull request #438 from agentrhq/feature/authsome-onboard
feat!: Add authsome onboard, remove init and scan
2026-06-16 21:33:28 +05:30
Manoj Bajaj d9936d5699 feat!: replace init and scan with authsome onboard
Unifies first-run setup into a single idempotent command that registers
identity, completes claim, and imports API keys from env. Persists
--base-url in client config for remote daemon connections.

Closes #434

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 02:22:10 -07:00
rishabhraj36 d9d2c60563 feat: derive agent identity from a single private-key env var 2026-06-16 13:32:04 +05:30
Ankit Ranjan 6645d7ef21 Merge branch 'main' into feature/expand-settings-page 2026-06-15 18:29:07 +05:30
beubax 71d52ad0f8 refactor: remove audit event filters 2026-06-15 18:06:50 +05:30
Ankit Ranjan 972e00c575 refactor: rename identity to agent throughout CLI and UI for improved terminology consistency 2026-06-15 17:27:10 +05:30
beubax 80cb249984 docs: describe scoped audit log access 2026-06-15 14:07:51 +05:30
Manoj Bajaj 54d7c3a200 docs: Update documentation to correctly reference current authsome state 2026-06-05 14:21:35 +05:30
Manoj Bajaj f661d8d360 feature!: Cleaner architechture, multi server compatible identities and cleaner ui 2026-06-03 15:34:55 +05:30
Manoj Bajaj cac5f9f2c4 fix(docs): remove all broken links to missing pages
Remove references to five pages that do not exist:
reference/provider-schema, reference/file-layout,
concepts/profiles-vs-connections, security/hosted-deployment,
guides/profiles.

Strategy: strip the links/sentences from the 59 source files rather than
creating stub pages. Card blocks pointing to missing pages are removed;
inline sentence references are removed or reworded so the surrounding
prose stays coherent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 16:33:45 +05:30
Manoj Bajaj 29bb29a388 refactor: remove legacy dashboard routes
Delete the server-rendered dashboard pages, remove the static asset mount, and route the Next dashboard provider login form through the browser-session auth path.
2026-06-01 16:04:36 +05:30
Manoj Bajaj d76304a911 docs: Update documentation
Entire-Checkpoint: cce258bcd5e8
2026-05-29 16:11:12 +05:30
Manoj Bajaj 30ec8d4ff6 docs: Update documentation
Entire-Checkpoint: fe02c73a3964
2026-05-29 16:00:30 +05:30
Manoj Bajaj bb5a2a6152 refactor!: Create version 0.4 which adds support for principal, identity, vault key loading precedence and many more fixes 2026-05-20 21:29:50 +05:30
Manoj Bajaj 8ba6967f49 Merge pull request #288 from zriyansh/docs/cli-prefix-sweep
docs(site): adopt skill-driven CLI conventions across the docs
2026-05-19 17:12:11 +05:30
Priyansh Khodiyar 71b89fd036 docs(site): adopt skill-driven CLI conventions across the docs
The skill rewrite (PR #284) and README update standardized on
"authsome <command>" (assumes "uv tool install authsome") and on
agent-driven login flows. The docs site still spoke "uvx authsome"
everywhere and didn't surface the auth-error decision tree the
skill teaches. This brings the docs in line.

Four kinds of change in one PR.

1. CLI prefix sweep ("uvx authsome" to "authsome").

Mechanical find/replace across docs/site/ excluding installation.mdx.
812 occurrences updated. installation.mdx keeps the literal "uvx"
references because they explain the one-off run path.

2. installation.mdx rewrite.

- "uv (recommended)" tab leads, with "uv tool install authsome".
- pip second.
- uvx demoted to "one-off, no install" with @latest pattern shown.
- From source unchanged.
- A Note at the top declares: every command in the docs is the
  installed form; uvx users prefix with "uvx authsome@latest".
- All subsequent code blocks updated to bare "authsome".

3. New troubleshooting/auth-errors.mdx page.

Captures the decision tree the skill teaches: 401 -> revoke +
re-login; 403 -> "authsome login --scopes" (not re-registering);
wrong client creds -> "authsome remove" then re-login. Registered
in docs.json under Troubleshooting.

4. quickstart.mdx pivoted to two paths + help reflex.

Path 1: agent-driven. Install the skill, ask the agent to do a
task that needs an external service. The agent runs login itself.
Path 2: CLI-driven. The existing manual walkthrough, preserved.
Adds a Tip about reading "authsome --help" and "authsome <cmd>
--help" before guessing flags.

5. Agent-mode note on the four skill-based integration pages.

claude-code, codex, cursor, opencode each get a one-paragraph Note
clarifying that the agent runs login, opens the browser on the
user's machine for OAuth, and that users should not paste keys
into prompts or pre-run login commands. The four SDK-style
integration pages (langchain, llamaindex, openai-agents-sdk,
anthropic-sdk) are unchanged because their pattern is
developer-driven, not agent-driven.

Verified clean: no "uvx authsome" outside installation.mdx,
docs.json valid, no em-dashes introduced.
2026-05-19 16:12:42 +05:30
Priyansh Khodiyar 857ec57205 chore: clean up stale repo references and skill provider bug
Two classes of bugs corrected, both verified against main at 69a0cb9.

Skill (skills/authsome/references/adding-provider.md):

- OAuth redirect URL was http://localhost:7999/callback. Source truth
  is http://127.0.0.1:7998/auth/callback/oauth (server/urls.py:8-9
  and the matching user-facing doc in custom-providers.mdx). Agents
  following the skill would tell users to register OAuth apps with
  a redirect URI that does not match what authsome actually serves,
  causing every PKCE login to fail.
- Step numbering had two "3." entries and no "4."; renumbered.
- Provider registration link pointed at the stale
  raw.githubusercontent.com/manojbajaj95/authsome fork; repointed
  to agentrhq.

Stale repo owner in actively-rendered surfaces:

- CONTRIBUTING.md: git clone URL.
- docs/site/README.md: link to the repo.
- docs/site/reference/bundled-providers.mdx: "open a pull request
  against" link in the upstream contribution section.
- docs/site/concepts/credential-storage.mdx: replaced
  "manojbajaj95" example label with "octocat" so the sample
  connection record reads as a generic GitHub username.
- src/authsome/ui/templates/_layout.html: dashboard sidebar
  "Support" link and topbar "GitHub" button.
- src/authsome/ui/templates/overview.html: dashboard "Contact Us"
  button on the overview page.

Out of scope:

- pyproject.toml author attribution stays as Manoj Bajaj; that is
  the actual maintainer's name, not a stale fork reference.
- CHANGELOG.md has ~100 manojbajaj95 commit URLs but release-please
  regenerates it; manual edits would be overwritten on next release.
2026-05-19 15:58:22 +05:30
Manoj Bajaj bdf659ffff docs(cli): sync reference and manual-testing guide with 0.3.0 implementation
- cli.mdx: fix exit code table (all codes 2-9 were mapped to wrong errors);
  add profile command docs; add shell export format; fix --log-file default
  path; fix set-default to top-level command (not connection set-default);
  document --force/--yes distinction on register; update log command to
  describe tabular audit output and --raw flag; fix doctor check names;
  expand --quiet semantics note
- manual-testing.md: fix doctor expected checks (config→spec_version/identity/
  connections/integrity); fix log expected output (table not raw NDJSON);
  add --raw log test; fix connection set-default→set-default; fix --force
  register expected; fix ProviderNotFoundError exit code (3→4) and
  ConnectionNotFoundError note (exit 3)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 12f601dab847
2026-05-17 16:42:24 +05:30
Ankit Ranjan da185352b2 refactor: rename provider host_url configuration field to api_url throughout codebase and documentation 2026-05-15 19:01:55 +05:30
Manoj Bajaj 019bdd11e8 feat!: require server-registered identities
Make the daemon identity registry authoritative for protected PoP requests and remove implicit default-profile identity behavior.

Store daemon-owned state under server/ while keeping CLI signing identity files under identities/.

BREAKING CHANGE: Existing implicit default-profile installs must run authsome init again; profile:default credentials are not migrated.

Entire-Checkpoint: 557455816515
2026-05-12 19:58:43 +05:30
Ankit Ranjan a8fa1fe21f refactor: rename device_flow to device_code across codebase and documentation 2026-05-12 16:37:52 +05:30
Priyansh Khodiyar 3f3cdd8fcc docs(site): lead with CLI + proxy; demote library to embedding case
Across the docs the recommended pattern is now wrapping the agent with
`uvx authsome run --`. The Python library remains supported but is
positioned as the embedding case for orchestrators that need explicit
control.

Concrete changes:

- Every provider CodeGroup (45 pages) reordered to Proxy →
  Environment → Python library, with a one-line lead-in.
- Generator updated so future regenerations preserve the order.
- Agent integration pages reframed: "Pattern 1 / Pattern 2" headings
  replaced with "Run under the proxy" + "Embedding the library".
- index.mdx for agent frameworks no longer presents two equal patterns.
- reference/python-library.mdx adds a top callout pointing readers at
  the CLI + proxy as the supported surface.
- concepts/architecture.mdx re-frames Sidecar as the supported mode
  and Library as an embedding option that shares the same layers.
2026-05-12 15:56:14 +05:30
Priyansh Khodiyar 89700e5b11 docs(site): audit fixes across all four tiers
Tier 1 (critical — users were misconfiguring):
- Port + callback URL fixed everywhere. All `127.0.0.1:7999/callback`
  references replaced with `127.0.0.1:7998/auth/callback/oauth`, the
  value actually used by `src/authsome/server/urls.py`.
- Python API rewrite. Removed every reference to the non-existent
  `AuthsomeContext` and `ctx.auth.*` API. Library code samples now use
  `create_auth_service()` from `authsome.server.dependencies`, returning
  the real `AuthService`. Exception names corrected (the public exports
  in `authsome/__init__.py` all use the `*Error` suffix).
  `reference/python-library.mdx` rewritten end-to-end against the real
  surface; provider CodeGroup blocks regenerated with the corrected
  pattern.
- Dashboard URLs corrected. `/overview`, `/connections`, `/app/...`
  replaced with the real `/ui/`, `/ui/connections`, `/ui/apps/...`
  (matches the `/ui` prefix in `server/routes/ui.py`).
- `profiles-vs-connections.mdx` no longer claims a separate audit log
  per profile. The file at `~/.authsome/audit.log` is shared and tagged
  with the profile name.

Tier 2 (significant):
- `reference/cli.mdx` expanded with `scan`, `connection set-default`,
  `ui`, and the `daemon` subcommand group (`serve`, `start`, `stop`,
  `restart`, `status`, `logs`). Replaced the bogus `okta` example with
  GitHub Enterprise.
- `reference/audit-log.mdx` event table corrected: the documented
  `refresh` event with an `outcome` field doesn't exist; the real event
  is `refresh_failed` with `error` and `fallback_available`. Added the
  `scan` event.
- OAuth index: broken `/integrations/oauth/klaviyo` link fixed to
  `klaviyo-oauth`. Linear row corrected to `pkce` with the real regex
  host. Notion DCR host fixed to `mcp.notion.com`.
- Linear page no longer claims DCR support (the JSON has
  `supports_dcr: false` and `flow: pkce`).
- Provider count drift fixed in `index.mdx`, `provider-registry.mdx`,
  and `bundled-providers.mdx` (which was also missing the `notion_dcr`
  row).

Tier 2.7 (integration page corrections):
- `claude-code.mdx`: replaced fabricated `/anthropic-skills:authsome`
  namespace and `npx skills add` command with the real installation
  procedure for the bundled `skills/authsome/SKILL.md`.
- `cursor.mdx`: link to cursor.com (was cursor.sh); rewrote the
  terminal-tool advice against Cursor's real MCP config in
  `~/.cursor/mcp.json`.
- `cowork.mdx`: removed unverified `github.com/cowork-ai` link.
- `nanoclaw.mdx`: framed the runners more honestly; code example no
  longer assumes a specific `Agent` import.
- `anthropic-sdk.mdx`: model ID `claude-sonnet-4-6` → `claude-sonnet-4-5`.

Tier 3 (API-key dashboard URLs):
- 18 stale or wrong dashboard URLs reviewed. Five providers without a
  canonical key-management page (clearbit, g2, mailchimp, mention-me,
  wistia) now show a `docs` link plus a one-line note explaining why.
  The rest point at verified URLs as of May 2026. Changes flow through
  the generator's `APIKEY_NOTES` map and the regeneration of all 43
  provider pages.

Tier 4 (filler / repetition):
- CA-install instructions consolidated to canonical location in
  `troubleshooting/proxy-networking.mdx`; `installation.mdx` and
  `run-agents-with-proxy.mdx` link instead of duplicating.
- "Override bundled provider" deduplicated (canonical in
  `custom-providers.mdx`; removed from `provider-registry.mdx`).
- "Known v1 limitations" canonical in `daemon-trust-boundary.mdx`;
  trimmed from `threat-model.mdx`.
- `quickstart.mdx` H2 duplicate dropped; export-sourcing instruction
  corrected to use `eval`.
- `troubleshooting/doctor.mdx` removed "Inspect specific state" block
  that duplicated `cli.mdx`.
- `concepts/the-daemon.mdx` "When the daemon is reused" subsection
  promoted into the lifecycle body.
- `run-agents-with-proxy.mdx` "Limitations" H2 absorbed into one line.
- Postiz cross-linked with `headless-device-code.mdx` and vice versa.
- New "Uninstall" section in `installation.mdx`.
2026-05-12 14:02:57 +05:30
Priyansh Khodiyar 02d97f025b docs(site): add CodeGroup, Expandable; remove now-unused proxy-injection snippet
CodeGroup across all 45 provider pages: the "Use the token / key" section
now collapses Library / Proxy / Environment into a single tabbed widget
instead of three sequential subsections. Higher information density, one
copy-paste interaction per page.

Expandable on the daemon-api /ready response: nested checks fields render
as a typed, collapsible block instead of inline prose.

The proxy-injection.mdx snippet is no longer referenced anywhere; its
content is folded into the CodeGroup trailer prose with the env-var and
host inlined per page. Removed.
2026-05-12 14:02:57 +05:30
Priyansh Khodiyar ced242215e docs(site): rebuild docs into tabbed structure with shared snippets and component upgrades
Structure:
- Two-tab navigation (Documentation / Integrations) in docs.json.
- Documentation tab: Get started, Guides, Concepts, Security, Reference,
  Troubleshooting, Project (roadmap/changelog/compared).
- Integrations tab: Agent frameworks (12), OAuth providers (14), API-key
  providers (31). All 45 bundled providers have per-page entries with
  facts pulled from src/authsome/auth/bundled_providers/.

Content added (75 new pages):
- Onboarding gap: installation.
- Concepts: the-daemon, profiles-vs-connections.
- Security: threat-model, encryption, daemon-trust-boundary,
  hosted-deployment, disclosure.
- Guides: multiple-connections (extracted from login-with-oauth).
- Reference: file-layout, python-library, daemon-api, audit-log.
- Troubleshooting: daemon-issues.
- Project: roadmap, changelog, compared.
- Integrations: 3 overviews, 12 agent frameworks, 14 OAuth providers,
  31 API-key providers.

Shared snippets in docs/site/snippets/ used by 45 of 47 provider pages:
proxy-injection, multi-connections-cta, masked-input-note,
whats-next-oauth, whats-next-apikey.

Component upgrades:
- Prompt on agent integration pages with copy-to-clipboard / Open in Cursor.
- Tree on 4 filesystem layouts (replacing ASCII art).
- Accordion + AccordionGroup on troubleshooting/doctor, oauth-callbacks,
  token-refresh.
- Badge on roadmap (Shipped / Planned / Future status pills).
- Frame on architecture call graph and index mermaid with captions.
- Tooltip on PKCE, DCR, AES-256-GCM, fcntl.flock, NIST SP 800-38D.
- ResponseField on daemon-api typed responses.

docs.json:
- background.color light/dark to match marketing palette.
- appearance default dark.
- seo block with canonical, og, twitter, indexing.
- banner pointing at the GitHub repo.
- contextual options (copy, view, chatgpt, claude, cursor).
- feedback (thumbs + suggest edit).
- navbar llms.txt link.
- Footer expanded to three columns.

Sidebar icons:
- Brand icons (verified against Font Awesome GraphQL API) for atlassian,
  discord, github, gitlab, google, hubspot, microsoft, notion, slack,
  x-twitter, buffer, intercom, mailchimp, openai.
- Other providers and overview pages render without an icon to avoid
  echoing the group icon.

Em-dashes stripped from every MDX file.
2026-05-12 14:02:56 +05:30
beubax 006ce3f19a fix: resolve circular import in server dependencies 2026-05-08 14:37:34 +05:30
rishabhraj36 45c3a4bf91 fix: add non-interactive register confirmation flag 2026-05-08 13:25:21 +05:30
Ankit Ranjan cc1030ffda docs: update CLI commands in documentation to use uvx for execution 2026-05-04 16:50:51 +05:30
rishabhraj36 09fd6bc687 fix(cli): distinct exit code for cancelled credential entry 2026-05-02 08:08:40 +05:30
rishabhraj36 13031438e2 fix: refactored docs 2026-04-30 15:42:36 +05:30