@mcp-abap-adt/auth-stores 1.0.2 → 1.0.4

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 CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.4] - 2026-03-14
11
+
12
+ ### Changed
13
+ - **Dependencies**: Updated `@mcp-abap-adt/interfaces` to `^5.0.0`, `dotenv` to `^17.3.1`, `@biomejs/biome` to `^2.4.7`, `@types/node` to `^25.5.0`, `jest` to `^30.3.0`.
14
+ - Added `jest-util` as dev dependency (required by `ts-jest@29` with `jest@30`).
15
+
16
+ ## [1.0.3] - 2026-03-14
17
+
18
+ ### Fixed
19
+ - **EnvFileSessionStore**: Auto-detect JWT auth type when `SAP_JWT_TOKEN` is present in `.env` file, even without explicit `SAP_AUTH_TYPE=jwt`. Previously defaulted to `basic`, causing "Basic authentication requires SAP_CLIENT" errors for cloud systems using `--env-path`.
20
+
10
21
  ## [1.0.2] - 2026-02-12
11
22
 
12
23
  ### Fixed
@@ -123,7 +123,13 @@ class EnvFileSessionStore {
123
123
  this.log?.error(`EnvFileSessionStore: .env file missing SAP_URL`);
124
124
  return null;
125
125
  }
126
- const authType = (envVars.SAP_AUTH_TYPE || 'basic');
126
+ // Auto-detect auth type: SAP_JWT_TOKEN presence implies JWT,
127
+ // otherwise fall back to SAP_AUTH_TYPE (default: basic)
128
+ const authType = envVars.SAP_JWT_TOKEN
129
+ ? 'jwt'
130
+ : (envVars.SAP_AUTH_TYPE || 'basic') === 'jwt'
131
+ ? 'jwt'
132
+ : 'basic';
127
133
  const data = {
128
134
  serviceUrl: envVars.SAP_URL,
129
135
  sapClient: envVars.SAP_CLIENT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/auth-stores",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Stores for MCP ABAP ADT auth-broker - BTP, ABAP, and XSUAA implementations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -53,20 +53,21 @@
53
53
  "node": ">=18.0.0"
54
54
  },
55
55
  "dependencies": {
56
- "@mcp-abap-adt/interfaces": "^2.3.0",
57
- "dotenv": "^17.2.1"
56
+ "@mcp-abap-adt/interfaces": "^5.0.0",
57
+ "dotenv": "^17.3.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@biomejs/biome": "^2.3.10",
60
+ "@biomejs/biome": "^2.4.7",
61
61
  "@mcp-abap-adt/logger": "^0.1.4",
62
62
  "@types/jest": "^30.0.0",
63
63
  "@types/js-yaml": "^4.0.9",
64
- "@types/node": "^24.2.1",
65
- "jest": "^30.2.0",
64
+ "@types/node": "^25.5.0",
65
+ "jest": "^30.3.0",
66
+ "jest-util": "^30.3.0",
66
67
  "js-yaml": "^4.1.1",
67
68
  "pino": "^10.1.0",
68
69
  "pino-pretty": "^13.1.3",
69
- "ts-jest": "^29.2.5",
70
+ "ts-jest": "^29.4.6",
70
71
  "typescript": "^5.9.2"
71
72
  }
72
73
  }