Products · Identity V1

Account management

An account page to view and update your details, delete your account, and create API keys for AI agents.

Version 1 · Identity, second partDesigned, not builtModule 2 of 15

ProductRequirement EPICSections

Requirement EPIC

Epic
MVP1 · E1 · Accounts with AWS Cognito
Goal
users can create and manage an account securely, through OIDC so the provider can be swapped in MVP2.
Stories in this module
4

IDENTITY-V1-E1-05 Account page

As a user, I want to see and manage my account.

  • AC1/account shows my email, when I joined, how many documents I've processed and my orders.
  • AC2"Change password" goes through Cognito's flow, and I come back to /account with a success message.
  • AC3"Delete account" requires typing DELETE. It then deletes the Cognito user, my S3 objects and my database rows (orders are kept, anonymized, for records) and signs me out. auth.account_deleted is audited.

IDENTITY-V1-E1-10 API keys for agents

As a person who uses an AI agent, I want to create, list and revoke API keys for it, so it can act for me without a browser (split from CORE-V1-E0-06 on 28 Nov 2026, Nikhil: the key store belongs to Identity; the gateway, audit and MCP stay in Platform Core). Issue #272. **Status: designed.** Split from CORE-V1-E0-06 (28 Nov 2026); size S is a proposal, reviewed with the two-phase sizes of CORE-V1-E8-18.

  • AC1A signed-in user can create, list and revoke API keys on /account/api-keys. The secret (sk_01s_…) is shown once; only its hash is stored, in Identity.
  • AC2A key carries scopes (upload:read, upload:write, extraction:read, …) and can never manage keys, change the password or delete the account; the gateway enforces them (CORE-V1-E0-06).

CORE-V1-E0-06 Agent access: API keys and MCP

As an AI agent acting for a user, I want to authenticate without a browser and discover what I can do.

  • AC1An API key is created, listed and revoked in Identity (IDENTITY-V1-E1-10). Split from this story on 28 Nov 2026 (Nikhil): the key store is Identity's; what every service relies on stays here.
  • AC2Authorization: Bearer <key> is accepted by the gateway wherever a session cookie is, limited to the key's scopes (upload:read, upload:write, extraction:read, …). Keys can never manage keys, change the password or delete the account.
  • AC3Every service has an MCP server at POST /api/{service}/mcp exposing its operations as tools with the same names, inputs and outputs as its OpenAPI document. A test fails if an operation tagged agent has no matching tool.
  • AC4Every API-key and MCP call is audited with actor_type: api_key and the key ID.
  • AC5Payment still needs a human: an agent receives a checkout_url for the user to open and cannot complete payment itself.

IDENTITY-V1-E1-09 Account screens as UI components (`ui-identity`)

**Status: built (#164), 23 Nov 2026,** in ui-identity 0.3.0, against a stand-in client until the service is built; every state is live on the module's UI Components section. Added 22 Nov 2026 (Nikhil), when CORE-V1-E0-19 AC5 marked these components "Designed, not built yet".

As the owner, I want the account page's screens built as Identity's UI components, so any app can offer account management without building it again.

  • AC1AccountDetails, PasswordChangeButton, DeleteAccountDialog and ApiKeysManager are built as designed in docs/services/identity/v1/account/UI-COMPONENTS.md. ApiKeysManager shows a new key's secret once, with Copy, and never again. DeleteAccountDialog asks the person to type DELETE.
  • AC2Each component is built in packages/ui-identity on @01scale/ui-core, calls only its own service's API through the package's client, and has every state its design lists (loading, empty, failed and each data state).
  • AC3Each component is shown live, in each of its states, on its module's UI Components section, replacing "Designed, not built yet" (CORE-V1-E0-19 AC5).
  • AC4Keyboard reachable, visible focus, labelled controls, WCAG AA contrast, usable at 320 pixels wide, in light and dark mode.