@mcp-abap-adt/auth-broker 0.1.10 → 0.1.11
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/CHANGELOG.md +11 -0
- package/README.md +9 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,17 @@ Thank you to all contributors! See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the co
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.1.11] - 2025-12-07
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- **Dependency Updates**: Updated dependencies to latest versions
|
|
18
|
+
- `@mcp-abap-adt/interfaces`: `^0.1.1` → `^0.1.3` (includes new header constants and session ID header constants)
|
|
19
|
+
- `@mcp-abap-adt/auth-providers`: `^0.1.2` → `^0.1.3` (includes configurable browser auth port and implementation isolation)
|
|
20
|
+
- `@mcp-abap-adt/auth-stores`: `^0.1.4` → `^0.1.5` (updated to use latest interfaces package)
|
|
21
|
+
- **Documentation Updates**: Updated README with examples for `BtpTokenProvider` with custom browser auth port
|
|
22
|
+
- Added example showing how to use `BtpTokenProvider(4001)` to avoid port conflicts
|
|
23
|
+
- Added note about `browserAuthPort` parameter in token provider section
|
|
24
|
+
|
|
14
25
|
## [0.1.10] - 2025-12-07
|
|
15
26
|
|
|
16
27
|
### Added
|
package/README.md
CHANGED
|
@@ -45,6 +45,13 @@ const broker = new AuthBroker({
|
|
|
45
45
|
tokenProvider: new BtpTokenProvider(),
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
+
// Use BtpTokenProvider with custom browser auth port (to avoid port conflicts)
|
|
49
|
+
const brokerWithCustomPort = new AuthBroker({
|
|
50
|
+
serviceKeyStore: new AbapServiceKeyStore(['/path/to/destinations']),
|
|
51
|
+
sessionStore: new AbapSessionStore(['/path/to/destinations']),
|
|
52
|
+
tokenProvider: new BtpTokenProvider(4001), // Custom port for OAuth callback server
|
|
53
|
+
});
|
|
54
|
+
|
|
48
55
|
// Get token for destination (loads from .env, validates, refreshes if needed)
|
|
49
56
|
const token = await broker.getToken('TRIAL');
|
|
50
57
|
|
|
@@ -325,6 +332,8 @@ The package uses `ITokenProvider` interface for token acquisition. Two implement
|
|
|
325
332
|
- No refresh token provided
|
|
326
333
|
|
|
327
334
|
- **`BtpTokenProvider`** - For BTP/ABAP authentication (full scope)
|
|
335
|
+
- Constructor accepts optional `browserAuthPort?: number` parameter (default: 3001)
|
|
336
|
+
- Use custom port to avoid conflicts when running alongside other services (e.g., proxy server)
|
|
328
337
|
- Uses browser-based OAuth2 flow (if no refresh token)
|
|
329
338
|
- Uses refresh token if available
|
|
330
339
|
- Provides refresh token for future use
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/auth-broker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "JWT authentication broker for MCP ABAP ADT - manages tokens based on destination headers",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"node": ">=18.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@mcp-abap-adt/interfaces": "^0.1.
|
|
54
|
+
"@mcp-abap-adt/interfaces": "^0.1.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@mcp-abap-adt/auth-providers": "^0.1.
|
|
58
|
-
"@mcp-abap-adt/auth-stores": "^0.1.
|
|
57
|
+
"@mcp-abap-adt/auth-providers": "^0.1.3",
|
|
58
|
+
"@mcp-abap-adt/auth-stores": "^0.1.5",
|
|
59
59
|
"@types/express": "^5.0.5",
|
|
60
60
|
"@types/jest": "^30.0.0",
|
|
61
61
|
"@types/js-yaml": "^4.0.9",
|