@deque/axe-auth 1.8.0-next.ebe935a8 → 1.8.0-next.ec00c0d5
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/docs/architecture.md +3 -1
- package/package.json +1 -1
package/docs/architecture.md
CHANGED
|
@@ -29,6 +29,8 @@ flowchart TB
|
|
|
29
29
|
cli <-- "tokens + issuer/client/walnutURL<br/>(versioned blob)" --> keychain
|
|
30
30
|
cli -- "access token (stdout)" --> user
|
|
31
31
|
cli -- "axe-auth run: spawn + supervise,<br/>access-token push (loopback POST /token)" --> mcp
|
|
32
|
+
mcp -- "spawns axe-auth token<br/>(saved sign-in, npm only)" --> cli
|
|
33
|
+
cli -- "access token + serverURL (stdout)" --> mcp
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
**Components and their roles:**
|
|
@@ -40,7 +42,7 @@ flowchart TB
|
|
|
40
42
|
5. **OS keychain**: the platform-native credential store accessed through [`@napi-rs/keyring`](https://www.npmjs.com/package/@napi-rs/keyring) — macOS Keychain, Windows Credential Manager, or Linux Secret Service (GNOME Keyring, KWallet). The CLI writes one entry per machine.
|
|
41
43
|
6. **axe server**: the customer's deployment of the axe API. The CLI hits its `/api/sso-config` endpoint at the start of `login` to discover the Keycloak URL, realm, and OAuth client ID; no other CLI traffic flows through the axe server.
|
|
42
44
|
7. **Customer Keycloak**: the OAuth authorization server for the customer's deployment. Issues access and refresh tokens. Federation between Keycloak and any upstream enterprise IdP (Okta, AAD, etc.) is the customer's concern and out of scope for this document.
|
|
43
|
-
8. **axe MCP server**: the server that `axe-auth run` launches and supervises. It receives freshly-minted access tokens pushed over loopback (`POST /token`) so a long session survives token expiry without a restart.
|
|
45
|
+
8. **axe MCP server**: the server that `axe-auth run` launches and supervises. It receives freshly-minted access tokens pushed over loopback (`POST /token`) so a long session survives token expiry without a restart. An npm server started with no credential also runs `axe-auth token` itself, as a child process, to find out whether signing in with the saved session is enabled for the user's organization, and signs in with it only when it is; it reads only the access token and the axe server it was issued for from stdout, never the refresh token.
|
|
44
46
|
|
|
45
47
|
`axe-auth` itself does **not** communicate with Deque's API services directly. The access tokens it produces are consumed by downstream tools, most notably the axe MCP server, which presents them to Deque's services as `Authorization: Bearer ...`. The one exception is `axe-auth run`, which supervises a running axe MCP server and pushes freshly-minted access tokens to it over a loopback (`127.0.0.1`) connection so a long session survives token expiry without a restart; it never sends the refresh token, only short-lived access tokens.
|
|
46
48
|
|