You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add identity commands and scoped process sessions #7
Platform adds organization-owned Identities and scoped API/MCP sessions in https://github.com/adapt/platform/pull/149. Issued credentials already work through ADAPT_TOKEN, but the CLI has no commands to discover/configure identities or start a session. Add CLI equivalents so users can complete this workflow from a terminal and the public docs can pair CLI and API examples.
Commands
List and inspect identities; create, update (with the API's configuration version), disable, and delete them.
Manage member assume/manage grants and select the current user's personal MCP account bindings.
Start, list, and revoke identity sessions. Session creation uses the user's signed-in credential; organization API keys and identity tokens cannot assume another identity.
Add adapt run --identity <name-or-id> -- <command> [args...]: resolve an identity unambiguously in the selected organization, request an expiring session, and pass its token as ADAPT_TOKEN only to the child process. Preserve the child exit status and signals, and revoke the session when the child exits when possible. Its expiry remains the fallback if cleanup cannot complete.
API routes are under /v1/identities: collection and detail CRUD, PUT /{id}/grants, PUT /{id}/accounts/{connectionId}, GET/POST /{id}/sessions, and DELETE /{id}/sessions/{sessionId}.
Acceptance
Respect organization selection and the server's assume/manage grants, session duration, and configuration versions.
Never write ephemeral credentials into the saved login, command output/logs, or command-line arguments. An explicit token-issuance command may return the new token once, with clear output handling.
Personal MCP bindings continue to use each human's explicit account, with no fallback to shared credentials.
Child processes receive the identity credential without the parent user's reusable credential; do not claim to sandbox arbitrary local processes or prevent them from accessing the user's filesystem.
Revoked/expired sessions produce actionable errors. Starting a new session requires current authorization; do not silently fall back to an organization API key or saved user credential.
Cover process exit/signals, issuance failure, expiry/revocation, ambiguous names, stale policy updates, and token redaction.
Closing as obsolete: adapt/platform#235 removed scoped identities from Platform, including the /v1/identities routes and identity session authentication, so there is no API for these CLI commands or adapt run --identity. The implementation in #27 was closed without merging.
Activity
miqui commentedon Nov 18, 2026
Closing as obsolete: adapt/platform#235 removed scoped identities from Platform, including the
/v1/identitiesroutes and identity session authentication, so there is no API for these CLI commands oradapt run --identity. The implementation in #27 was closed without merging.