Authentication
Furnace knows two kinds of caller. People sign in through Falcata ID and get a session in each app they use. Everything programmatic (scripts, agents, the furnace CLI, MCP clients) sends a bearer token in the Authorization header. Both resolve to the same user account, and from there the same per-namespace permissions decide what the call may do.
Ways in
| Credential | Who uses it | How it is obtained | What it carries |
|---|---|---|---|
| Falcata ID session | People in a browser | Sign in with a password or an emailed magic link; each app receives its own session through a one-time handoff | The signed-in user's full permissions |
| Personal access token | Scripts and your own tools | Minted by the signed-in user; the secret starts with fpat_ and is shown once | The owner's permissions, optionally narrowed by a scope |
| Device authorization | The furnace CLI and other headless tools | The tool shows a code, you approve it in the browser, and the tool receives a personal access token | Same as a personal access token |
| OAuth 2.1 with PKCE | MCP clients and third-party apps | Authorization-code flow with consent at Falcata ID; the token exchange issues a personal access token | Same as a personal access token |
Device authorization and OAuth are ways to obtain a personal access token without copying a secret by hand, so every programmatic caller ends up as the same kind of token.
Sending a token
Authorization: Bearer fpat_...
The HTTP surface resolves the bearer before anything else:
- A token that starts with
fpat_is looked up by its hash. A revoked or expired token, a token whose scope cannot be parsed, or a token whose owner is banned, suspended or inactive does not resolve. - Any other bearer is treated as a session token, and only on the routes that explicitly accept sessions.
- A request that does not resolve gets
401with aWWW-Authenticate: Bearerchallenge whoseresource_metadatapoints at the server's OAuth protected-resource metadata, so an OAuth-aware client can discover how to sign in.
One permission model
Once the caller is known, two layers apply:
- API access. A token caller needs
api:read(reads) orapi:write(writes; it implies read) in thesystemnamespace before any REST route or MCP tool runs. A read-only token is refused for writes whatever the owner holds. A refusal here is403. - Per-namespace permissions. Each operation checks a permission such as
read:contentin the namespace it touches, against the user's role bundle for that namespace. A token's scope is checked first and can only narrow the answer, never widen it.
A session and a token belonging to the same person therefore reach the same data, except where the token's scope says less.
In this section
- Falcata ID: sign-in for people and how apps receive a session.
- Personal access tokens: token format, scopes, expiry and revocation.
- Device authorization: the RFC 8628 flow the CLI uses.
- OAuth 2.1 and PKCE: discovery, client registration and the code flow.
- Permissions, entitlements and flags: roles, permission strings, bans, and what flags do not do.
For the exact order of every check a call passes, see From request to data. Endpoint detail is in the API reference.