Skip to content

Nowhere to get A2APP_AUTH_TOKEN #30

Open

Description

@zfoong

Right now there's nowhere to get A2APP_AUTH_TOKEN. The framework offers no method to generate it for human or agent.

It's supposed to be the login token from the app's own sign-in.
No app or toolkit in this repo is multi-user or has a user login. They all use authMode: "none", so there's no token to get and none is needed.
If user build a multi-user app, they would get the token from that app's own sign-in. With a PocketBase backend, for example, that's the token returned by auth-with-password. Human then give it to the agent through A2APP_AUTH_TOKEN or credentials.json.

However, it is not sure how a human obtains it or hands it over to agent. The framework would need to define that.

Activity

  1. zfoong commented on Oct 28, 2026

    @zfoong
    CollaboratorAuthor

    Today authMode: "multi-user" is mostly a label:

    • Only PocketBase reads the user's token; adapter-core and the Go/Python/Rust/Ruby ports never read Authorization (adapters/adapter-core/src/server.ts:477-518).
    • Every adapter seeds one grant {principal: "owner", scopes: ["*"]}; nothing mints another.
    • No starter but PocketBase has sign-in; the View is trusted as owner (server.ts:486).
    • The only token path signs in with a plaintext password from .principal (framework/cli/src/lib/project.ts:169-191), contradicting skills/connect.

    Design: the agent never holds the user's session. The user approves the agent in the app (device code, like gh auth login); the app mints a token bound to that user. Allowed = grant scopes ∩ what the user can do now. Hashed at rest, expiring, revocable.

    Order: [1] spec → [2] ceiling, [3] login, [4] connected agents → [5] accounts in starters → [6] bridge task tokens → [7] skills/validate → [8] remove legacy → [9] conformance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions