@mcp-abap-adt/auth-broker 3.1.0 → 4.1.0

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +531 -0
  2. package/README.md +1062 -220
  3. package/dist/AuthBroker.d.ts +249 -30
  4. package/dist/AuthBroker.d.ts.map +1 -1
  5. package/dist/AuthBroker.js +681 -115
  6. package/dist/DestinationConfigError.d.ts +27 -0
  7. package/dist/DestinationConfigError.d.ts.map +1 -0
  8. package/dist/DestinationConfigError.js +36 -0
  9. package/dist/SessionWriter.d.ts +54 -0
  10. package/dist/SessionWriter.d.ts.map +1 -0
  11. package/dist/SessionWriter.js +135 -0
  12. package/dist/binding.d.ts +117 -0
  13. package/dist/binding.d.ts.map +1 -0
  14. package/dist/binding.js +223 -0
  15. package/dist/bindingOf.d.ts +37 -0
  16. package/dist/bindingOf.d.ts.map +1 -0
  17. package/dist/bindingOf.js +53 -0
  18. package/dist/clientAuthentication.d.ts +109 -0
  19. package/dist/clientAuthentication.d.ts.map +1 -0
  20. package/dist/clientAuthentication.js +218 -0
  21. package/dist/destinations.d.ts +164 -0
  22. package/dist/destinations.d.ts.map +1 -0
  23. package/dist/destinations.js +473 -0
  24. package/dist/index.d.ts +10 -4
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +14 -7
  27. package/dist/providers/ITokenProvider.d.ts +2 -1
  28. package/dist/providers/ITokenProvider.d.ts.map +1 -1
  29. package/dist/providers/index.d.ts +2 -2
  30. package/dist/providers/index.js +2 -2
  31. package/dist/stores/index.d.ts +2 -2
  32. package/dist/stores/index.js +2 -2
  33. package/dist/stores/interfaces.d.ts +4 -3
  34. package/dist/stores/interfaces.d.ts.map +1 -1
  35. package/dist/stores/interfaces.js +2 -2
  36. package/dist/types.d.ts +5 -2
  37. package/dist/types.d.ts.map +1 -1
  38. package/dist/types.js +3 -1
  39. package/package.json +16 -8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/auth-broker",
3
- "version": "3.1.0",
4
- "description": "Per-destination token broker for SAP BTP and ABAP: sessions and service keys from stores, tokens from an injected provider, results persisted",
3
+ "version": "4.1.0",
4
+ "description": "Per-destination credential broker for SAP BTP and ABAP: the IAuthProvider a destination states, built from its key store and session store, with every secret it obtains stored back; and a token API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -40,9 +40,14 @@
40
40
  "access": "public"
41
41
  },
42
42
  "scripts": {
43
- "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
43
+ "clean": "node -e \"for (const p of ['dist', 'tsconfig.tsbuildinfo', 'tsconfig.build.tsbuildinfo']) require('fs').rmSync(p, { recursive: true, force: true })\"",
44
44
  "build": "tsc -b tsconfig.build.json",
45
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
45
+ "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
46
+ "test:live": "cross-env NODE_OPTIONS=--experimental-vm-modules jest -c jest.live.config.js",
47
+ "test:live:x509": "tests/live/x509/run.sh",
48
+ "test:stand": "tests/stand/run.sh",
49
+ "stand:up": "tests/stand/up.sh",
50
+ "stand:down": "tests/stand/down.sh",
46
51
  "test:check": "tsc -p tsconfig.json --noEmit",
47
52
  "prepublishOnly": "npm run --prefix ../.. check"
48
53
  },
@@ -50,13 +55,16 @@
50
55
  "node": "^22 || ^24 || ^26"
51
56
  },
52
57
  "dependencies": {
53
- "@mcp-abap-adt/interfaces-auth": "^2.1.0",
54
- "@mcp-abap-adt/interfaces-auth-sap": "^1.0.1",
58
+ "@mcp-abap-adt/auth-providers": "^5.3.0",
59
+ "@mcp-abap-adt/interfaces-auth": "^3.2.0",
60
+ "@mcp-abap-adt/interfaces-auth-broker": "^1.2.0",
61
+ "@mcp-abap-adt/interfaces-auth-sap": "^2.0.0",
55
62
  "@mcp-abap-adt/interfaces-utils": "^1.1.0"
56
63
  },
57
64
  "devDependencies": {
58
- "@mcp-abap-adt/auth-providers": "^4.2.0",
59
- "@mcp-abap-adt/auth-stores": "^1.2.3",
65
+ "@mcp-abap-adt/auth-mocks": "^0.3.0",
66
+ "@mcp-abap-adt/auth-stores": "^3.3.0",
67
+ "@mcp-abap-adt/connection": "^10.0.3",
60
68
  "@mcp-abap-adt/logger": "^0.4.0",
61
69
  "@types/js-yaml": "^4.0.9",
62
70
  "js-yaml": "^4.1.1",