@deque/axe-auth 1.9.0-rc.7a7cc7d6 → 1.9.1-next.967eb93b
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/credits.json +4 -4
- package/docs/architecture.md +3 -1
- package/package.json +4 -4
package/credits.json
CHANGED
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"publisher": "Ryan Govostes",
|
|
87
87
|
"copyright": "Copyright (c) 2018 Ryan Govostes"
|
|
88
88
|
},
|
|
89
|
-
"ts-dedent@2.
|
|
89
|
+
"ts-dedent@2.3.0": {
|
|
90
90
|
"name": "ts-dedent",
|
|
91
|
-
"version": "2.
|
|
91
|
+
"version": "2.3.0",
|
|
92
92
|
"licenses": "MIT",
|
|
93
|
-
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ts-dedent@2.
|
|
93
|
+
"path": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ts-dedent@2.3.0/node_modules/ts-dedent",
|
|
94
94
|
"licenseText": "MIT License\n\nCopyright (c) 2018 Tamino Martinius\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
|
95
|
-
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ts-dedent@2.
|
|
95
|
+
"licenseFile": "/home/runner/work/axe-mcp-server/axe-mcp-server/node_modules/.pnpm/ts-dedent@2.3.0/node_modules/ts-dedent/LICENSE",
|
|
96
96
|
"repository": "https://github.com/tamino-martinius/node-ts-dedent",
|
|
97
97
|
"publisher": "Tamino Martinius",
|
|
98
98
|
"email": "dev@zaku.eu",
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/axe-auth",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1-next.967eb93b",
|
|
4
4
|
"description": "CLI authentication utility for Deque services",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"cross-spawn": "^7.0.6",
|
|
35
35
|
"remove-trailing-slash": "^0.1.1",
|
|
36
36
|
"shlex": "^3.0.0",
|
|
37
|
-
"ts-dedent": "^2.
|
|
37
|
+
"ts-dedent": "^2.3.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@hono/node-server": "^2.1.
|
|
40
|
+
"@hono/node-server": "^2.1.6",
|
|
41
41
|
"@types/cross-spawn": "^6.0.6",
|
|
42
42
|
"@types/node": "^24.19.2",
|
|
43
43
|
"c8": "^12.0.0",
|
|
44
|
-
"hono": "^4.13.
|
|
44
|
+
"hono": "^4.13.16",
|
|
45
45
|
"tsx": "^4.23.15",
|
|
46
46
|
"typescript": "^6.0.3"
|
|
47
47
|
},
|