Skip to content

docs(auth): add Fill from Managed Auth how-to - #622

Open
bmsaadat wants to merge 2 commits into
mainfrom
bmsaadat/fill-from-managed-auth
Open

bmsaadat wants to merge 2 commits into
mainfrom
bmsaadat/fill-from-managed-auth

Conversation

@bmsaadat

@bmsaadat bmsaadat commented Sep 22, 2026

Copy link
Copy Markdown

Part of KERNEL-2298.

Adds auth/fill-from-managed-auth, a how-to under Fill from Vault, walking through: log in through Managed Auth, create a credential item that references the connection, attach the vault to a browser, fill. Also cross-links it from the Fill from Vault overview.

Do not merge yet. The page documents the managed_auth credential provider from kernel/kernel#4285, which is not in production. Merge order: API in production, SDK release, then this page.

Open items before it leaves draft:

  • SDK snippets follow the existing vaults.items call shapes; re-check them against the Stainless preview builds once those build cleanly (the current builds on #4285 hit merge conflicts).
  • The GitHub login selectors were checked against the live page. The authenticator-code selector in the last step was not, since that page needs a session.
  • If the provider is still gated per organization at merge time, add an "enabled for your organization" line like the hCaptcha page.

mint broken-links passes locally.

🤖 Generated with Claude Code


Note

Low Risk
Documentation and nav-only changes; no runtime code. Merge is intentionally gated on the managed_auth vault provider shipping in production.

Overview
Adds auth/fill-from-managed-auth, a how-to for wiring Managed Auth–saved credentials into the existing vault fill flow without re-collecting secrets. The guide covers when to use it vs Fill from Vault or full Managed Auth, requirements (Kernel-stored credential, same project), a GitHub walkthrough (login → credential item with spec.provider: managed_auth → vault attach → navigate → fill, including optional TOTP), item shape/status reasons, differences from kernel credential items, and security notes.

Navigation and cross-links: registers the page under Fill from Vault in docs.json and points Fill from Vault’s credential-sources section at the new guide.

Snippets: six reusable MDX snippets (login, verify saved credential, upsert item, sample API response, navigate, fill) in TypeScript, Python, and cURL where applicable.

Reviewed by Cursor Bugbot for commit d200cc1. Bugbot is set up for automated code reviews on this repo. Configure here.

Adds a page under Fill from Vault that walks through reusing a credential
collected by Managed Auth with the vault fill operation: log in through
Managed Auth, create a credential item that references the connection,
attach the vault to a browser, and fill. Cross-links it from the Fill from
Vault overview.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟢 Ready View Preview Sep 22, 2026, 9:59 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Pre-linked credentials qualify even with save_credentials off, the 409
covers a credential with no values, a deleted connection cannot recover,
the fill example narrows to the managed auth state before reading field
names, and the TOTP step notes sites that auto-submit the code.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk assessment: Very Low

I reviewed the diff (9 files, +308/−2). Every change is documentation for the Mintlify site:

  • New how-to page auth/fill-from-managed-auth.mdx and snippet files with TypeScript, Python, cURL, and an example JSON response.
  • One cross-link sentence in auth/fill-from-vault.mdx.
  • A sidebar entry for the new page in docs.json.

No application code, infrastructure, CI, authentication implementation, or agent-instruction files are modified. docs.json only adds the new page to navigation. Code owner review is not required on main.

Approving.

Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

@bmsaadat
bmsaadat marked this pull request as ready for review September 23, 2026 19:19
@bmsaadat
bmsaadat requested a review from AnnaXWang September 23, 2026 19:19

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk assessment: Very Low

Re-checked the current head (d200cc1). The diff is still documentation for the Mintlify site only: a new how-to (auth/fill-from-managed-auth.mdx), six example snippets, one cross-link in auth/fill-from-vault.mdx, and a sidebar entry in docs.json (9 files, +308/−2).

No application code, infrastructure, CI, authentication implementation, or agent-instruction files changed. require_code_owner_review is off on main, and there is no CODEOWNERS file.

This automation already approved this same commit. Risk has not increased, so that approval stands and I am not approving again.

Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d200cc1. Configure here.

`completed` means the selected fields were filled, not that login succeeded. If `fill` fails, returns an uncertain outcome, or loses its response, stop and [inspect the outcome](/vaults/fill#handle-the-outcome) rather than retrying automatically.
</Step>
<Step title="Submit and handle the response">
After `fill` completes, your application or agent submits the login form once and verifies the site's response. If the site asks for an authenticator code and `state.fields` includes `totp`, navigate to that prompt and invoke `fill` again with a single `totp` binding, for example `{ "field": "totp", "selector": "#app_totp" }` on `https://github.com/sessions/two-factor/app`. Kernel generates the code at fill time. Some sites submit the code as soon as it's entered, so check the page state after the fill. Handle any other prompt through your own interface.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dense submit-step paragraph

Low Severity

The submit step packs several separate actions and caveats into one paragraph: submit and verify the login, optionally navigate and fill totp, note that Kernel generates the code at fill time, watch for auto-submit, and handle any other prompt. Those are distinct steps, so the guidance is hard to scan and easy to miss.

Fix in Cursor Fix in Web

Triggered by learned rule: Use bullet lists when covering multiple distinct points in guides

Reviewed by Cursor Bugbot for commit d200cc1. Configure here.

This branch was successfully deployed

1 active deployment
staging d200cc1b Deployed Sep 22, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant