|
| 1 | +--- |
| 2 | +title: "Manage Auth Connections" |
| 3 | +description: "Create and operate managed auth connections for browser profiles" |
| 4 | +--- |
| 5 | + |
| 6 | +Use `manage_auth_connections` when you want Kernel to keep a browser profile logged in to a third-party site. A connection ties a domain to a profile, then drives login and re-auth flows with stored credentials, external provider credentials, or user-provided input. |
| 7 | + |
| 8 | +This tool is best for recurring workflows where the agent needs durable access to a site but the login flow can require MFA, SSO, or occasional user review. |
| 9 | + |
| 10 | +## Actions |
| 11 | + |
| 12 | +| Action | Description | |
| 13 | +|--------|-------------| |
| 14 | +| `create` | Start managing auth for a profile and domain. | |
| 15 | +| `list` | List auth connections. | |
| 16 | +| `get` | Poll one connection or login flow state. | |
| 17 | +| `delete` | Remove an auth connection. | |
| 18 | +| `login` | Begin a login flow. Returns a hosted URL and live view URL. | |
| 19 | +| `submit` | Submit discovered field values, an MFA option, or an SSO button selection. | |
| 20 | + |
| 21 | +## Recommended flow |
| 22 | + |
| 23 | +1. Call `create` with `domain` and `profile_name`. |
| 24 | +2. Call `login` to start a login flow. |
| 25 | +3. Share the returned hosted URL with the user or watch the returned live view URL. |
| 26 | +4. Call `get` to poll flow state and inspect `discovered_fields`. |
| 27 | +5. Call `submit` when the flow asks for field values, an MFA option, or an SSO choice. |
| 28 | + |
| 29 | +## Parameters |
| 30 | + |
| 31 | +| Parameter | Description | |
| 32 | +|-----------|-------------| |
| 33 | +| `action` | Operation to perform. Required. | |
| 34 | +| `id` | Auth connection ID. Required for `get`, `delete`, `login`, and `submit`. | |
| 35 | +| `domain` | (create) Target domain, such as `netflix.com`. | |
| 36 | +| `profile_name` | (create) Profile to manage auth for. Also filters `list`. | |
| 37 | +| `allowed_domains` | (create) Additional domains valid for this auth flow. Common SSO providers are allowed by default. | |
| 38 | +| `credential_name` | (create) Name of a stored Kernel credential for automatic login. | |
| 39 | +| `credential_provider` | (create) External credential provider name, such as `1password`. Use with `credential_path` or `credential_auto`. | |
| 40 | +| `credential_path` | (create) Provider-specific item path, such as `Engineering/Netflix Admin`. | |
| 41 | +| `credential_auto` | (create) If true, the provider auto-looks up credentials by domain. | |
| 42 | +| `login_url` | (create) Explicit login page URL to skip discovery. | |
| 43 | +| `health_check_interval` | (create) Seconds between automatic re-auth checks. The max is 86400. | |
| 44 | +| `save_credentials` | (create) Save credentials after each successful login. Default true. | |
| 45 | +| `proxy_id` / `proxy_name` | (create, login) Proxy to route the auth flow through. | |
| 46 | +| `domain_filter` | (list) Filter by domain. | |
| 47 | +| `limit` | (list) Max results per page. Must be 1-100. | |
| 48 | +| `offset` | (list) Pagination offset. Must be 0 or greater. | |
| 49 | +| `fields` | (submit) Map of field name to value, such as `{ "mfa_code": "123456" }`. Check `discovered_fields` from `get`. | |
| 50 | +| `mfa_option_id` | (submit) MFA option ID from the connection. | |
| 51 | +| `sso_button_selector` | (submit) XPath of an SSO button to click instead of submitting fields. | |
| 52 | + |
| 53 | +## Create a managed login |
| 54 | + |
| 55 | +```json |
| 56 | +{ |
| 57 | + "action": "create", |
| 58 | + "domain": "accounts.example.com", |
| 59 | + "profile_name": "work-accounts", |
| 60 | + "credential_name": "example-work-login", |
| 61 | + "login_url": "https://accounts.example.com/login", |
| 62 | + "health_check_interval": 3600 |
| 63 | +} |
| 64 | +``` |
| 65 | + |
| 66 | +## Submit an MFA code |
| 67 | + |
| 68 | +```json |
| 69 | +{ |
| 70 | + "action": "submit", |
| 71 | + "id": "authconn_2vE3Nq8WmY5bL0sC9pR1", |
| 72 | + "fields": { |
| 73 | + "mfa_code": "123456" |
| 74 | + } |
| 75 | +} |
| 76 | +``` |
0 commit comments