Server routes.
The routes the server adds under /auth/ for agents, tokens, claims, OAuth, and devices.
15 routes, from the server's OpenAPI document. Every refusal is an RFC 9457 problem; the codes are in the error catalog.
/auth/admin
| Route | What it does |
|---|---|
POST /auth/admin/invites/accept | Spend an admin invitation from tensile-auth-server admin invite, and become an administrator. Needs a second factor within 15 minutesAuth: The __Host-session cookie |
/auth/agents
| Route | What it does |
|---|---|
POST /auth/agents | Create an agentAuth: The __Host-session cookie |
GET /auth/agents/tree | The signed-in person's live sessions, as a tree of delegationsAuth: The __Host-session cookie |
POST /auth/agents/{id}/delegate | Give one of the person's agents a token, shown onceAuth: The __Host-session cookie |
POST /auth/agents/{id}/revoke | Revoke one of the person's agents and every session it holdsAuth: The __Host-session cookie |
/auth/claims
| Route | What it does |
|---|---|
POST /auth/claims/claim | Claim an agent that signed up by itselfAuth: The __Host-session cookie |
POST /auth/claims/peek | Show an unclaimed agent and its pairing words before claiming itAuth: The __Host-session cookie |
/auth/device
| Route | What it does |
|---|---|
GET /auth/device/{code} | The pending device request for a user code, for the app's device pageAuth: The __Host-session cookie |
POST /auth/device/{code}/approve | Approve the device request for a user codeAuth: The __Host-session cookie |
POST /auth/device/{code}/deny | Deny the device request for a user codeAuth: The __Host-session cookie |
/auth/leakscan
| Route | What it does |
|---|---|
POST /auth/leakscan | Receive a secret-scanning alert in the format of GitHub's partner program, and revoke each leaked session or app key |
/auth/oauth
| Route | What it does |
|---|---|
GET /auth/oauth/requests/{id} | A pending OAuth authorization request, for the app's consent pageAuth: The __Host-session cookie |
POST /auth/oauth/requests/{id}/approve | Approve an OAuth authorization request, and answer where to send the browserAuth: The __Host-session cookie |
POST /auth/oauth/requests/{id}/deny | Deny an OAuth authorization request, and answer where to send the browserAuth: The __Host-session cookie |
/auth/tokens
| Route | What it does |
|---|---|
POST /auth/tokens | Create a personal access token, shown onceAuth: The __Host-session cookie |