Repository navigation
Commit 2003bd1
committed
feat(plugin-auth): read the AI assistants a person has authorized, with a coarse last-use stamp
Two ObjectStack reads under the auth route: the caller's own OAuth consents,
keyed by the session alone with a closed empty query set, and another
person's for a platform administrator, gated as the admin session doors are.
Each row carries the consent id, client id and name, scopes, organization,
authorized-at and last-used-at, and no token material.
The last-use stamp is sys_oauth_consent.last_used_at: written server-side
after an MCP access token verifies, off the request path, at most once per
consent per hour, with the hour's start.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1LNDAUs8pz7DNjQFC1 parent a0ec7b1 commit 2003bd1
13 files changed
Lines changed: 987 additions & 8 deletions
File tree
- .changeset
- packages
- platform-objects/src/apps/translations
- plugins/plugin-auth/src
- qa/dogfood/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
1876 | 1880 | | |
1877 | 1881 | | |
1878 | 1882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
1876 | 1880 | | |
1877 | 1881 | | |
1878 | 1882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
1876 | 1880 | | |
1877 | 1881 | | |
1878 | 1882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
1876 | 1880 | | |
1877 | 1881 | | |
1878 | 1882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4457 | 4457 | | |
4458 | 4458 | | |
4459 | 4459 | | |
4460 | | - | |
| 4460 | + | |
| 4461 | + | |
4461 | 4462 | | |
4462 | 4463 | | |
4463 | 4464 | | |
4464 | 4465 | | |
4465 | 4466 | | |
4466 | 4467 | | |
4467 | | - | |
4468 | | - | |
| 4468 | + | |
| 4469 | + | |
4469 | 4470 | | |
4470 | | - | |
4471 | | - | |
4472 | | - | |
4473 | | - | |
4474 | | - | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
4475 | 4478 | | |
4476 | 4479 | | |
4477 | 4480 | | |
| |||
0 commit comments