@datarails-ai/dr-appspace-cli 0.12.89 → 0.12.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -4
- package/dist/cli.js +1496 -1286
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,10 +14,18 @@ dr-appspace app-space whoami -s DEV
|
|
|
14
14
|
|
|
15
15
|
## What's inside
|
|
16
16
|
|
|
17
|
-
- **Auth —
|
|
18
|
-
OAuth device-flow `login`,
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
- **Auth — JWTs only** (the code is a port of dr-cli's auth stack, DR-60129):
|
|
18
|
+
OAuth v2 device-flow `login` (client `dr-cs-cli`, scope `DR-CLI`), the
|
|
19
|
+
access and refresh JWTs in the OS keychain (service `dr-appspace-cli`,
|
|
20
|
+
keyed by `(server, email)`), and a `Bearer` header on every request — never
|
|
21
|
+
a session cookie or a CSRF token. The CLI refreshes the access token at
|
|
22
|
+
`/jwt/api/external/token/refresh/`, saves each rotated refresh token, and
|
|
23
|
+
runs one refresh at a time for each identity, so parallel commands in one
|
|
24
|
+
process do not use one refresh token twice. `logout` revokes the refresh
|
|
25
|
+
token at `/jwt/api/token/revoke/`. An identity that an older `login` saved
|
|
26
|
+
with a session cookie is retired the first time the CLI loads it: the CLI
|
|
27
|
+
revokes its refresh token, removes it from the keychain (a credential file is
|
|
28
|
+
kept for the next `login` to overwrite), and tells you to log in again. The CLI also has the **credential-file store** for
|
|
21
29
|
keychain-less hosts (CI, containers, managed agents): when
|
|
22
30
|
`~/.dr/session.json` (or `$DR_CREDENTIALS_FILE`) exists it wins over the
|
|
23
31
|
keychain. The file contract is byte-compatible with dr-cli's
|