Commit 1227210
server/conat/api: include project_id in system.test response
For project-scoped API keys, the hub endpoint's system.test() method
was only returning account_id (empty string), making it impossible for
callers to distinguish project-scoped keys from invalid keys.
Now the method accepts and returns both account_id and project_id
depending on the key scope. This allows the Python cocalc-api client
to properly identify key scope during discovery, matching the behavior
of the project endpoint's system.test() implementation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ab4ab26 commit 1227210
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
31 | 42 | | |
32 | 43 | | |
| |||
0 commit comments