@mcp-abap-adt/auth-broker 5.0.4 → 5.0.6
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 +22 -0
- package/README.md +9 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
Thank you to all contributors! See [CONTRIBUTORS.md](../../CONTRIBUTORS.md) for the complete list.
|
|
11
11
|
|
|
12
|
+
## [5.0.6] - 2026-10-12
|
|
13
|
+
|
|
14
|
+
The code is the same as 5.0.5.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Dependency `@mcp-abap-adt/interfaces-utils` `^1.1.1` (was `^1.1.0`), the current release of
|
|
18
|
+
the contract; its API is unchanged. The other contracts were already current.
|
|
19
|
+
- The lockfile is refreshed from the registry: the tests run on auth-providers 6.0.2,
|
|
20
|
+
auth-errors 2.2.1 and auth-stores 5.0.1.
|
|
21
|
+
|
|
22
|
+
## [5.0.5] - 2026-10-12
|
|
23
|
+
|
|
24
|
+
The library's code and runtime dependencies are the same as 5.0.4. What changed is the
|
|
25
|
+
docs, the README's connection note included, and the tests.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- The tests and live checks run on `@mcp-abap-adt/connection` 15.0.0 (dev dependency
|
|
29
|
+
`^15.0.0`, on `@mcp-abap-adt/interfaces-adt-connection` 2.0.0, one copy). Their
|
|
30
|
+
end-to-end suite is renamed `adtConnector.test.ts`.
|
|
31
|
+
- The docs name `connection` 14 or 15 as the connector `getProvider`'s provider is for.
|
|
32
|
+
The README says why a consumer that also uses `adt-clients` should take 15.
|
|
33
|
+
|
|
12
34
|
## [5.0.4] - 2026-10-12
|
|
13
35
|
|
|
14
36
|
The first published release after 5.0.1. The code is the same as 5.0.2 and 5.0.3, which were
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
A per-destination credential broker for SAP BTP and ABAP systems. For a destination — a name,
|
|
5
5
|
such as `TRIAL` — `getProvider` builds the `IAuthProvider` the destination states (basic, SNC, a
|
|
6
6
|
UAA, OIDC or SAML grant, or a credential handed over) from the *means* in the service key store
|
|
7
|
-
and the *secret* in the session store, ready for a `@mcp-abap-adt/connection` 14 connector, and
|
|
7
|
+
and the *secret* in the session store, ready for a `@mcp-abap-adt/connection` 14 or 15 connector, and
|
|
8
8
|
stores back every token or set of SAML session cookies that provider obtains or renews. The
|
|
9
9
|
token API (`getToken`, `refreshToken`, `createTokenRefresher`) serves whoever wants a token and
|
|
10
10
|
nothing else. It decides nothing about tokens itself: whether the cached token is still good,
|
|
@@ -23,7 +23,7 @@ auth-broker-cli 3.1.1, `mcp-auth --env <file>` (or `--destination <name>`) over
|
|
|
23
23
|
discards its session and logs in anew.
|
|
24
24
|
|
|
25
25
|
The `mcp-auth` command that writes destination files is
|
|
26
|
-
[`@mcp-abap-adt/auth-broker-cli`](../auth-broker-cli/README.md) (3.1.
|
|
26
|
+
[`@mcp-abap-adt/auth-broker-cli`](../auth-broker-cli/README.md) (3.1.2, on this version), in the
|
|
27
27
|
same repository. This package has no `bin`.
|
|
28
28
|
|
|
29
29
|
## Features
|
|
@@ -43,10 +43,10 @@ same repository. This package has no `bin`.
|
|
|
43
43
|
npm install @mcp-abap-adt/auth-broker @mcp-abap-adt/auth-providers @mcp-abap-adt/auth-errors @mcp-abap-adt/auth-stores
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
5.0.
|
|
46
|
+
5.0.6 depends on `@mcp-abap-adt/auth-providers` `^6.0.0`, `@mcp-abap-adt/auth-errors`
|
|
47
47
|
`^2.2.0`, `@mcp-abap-adt/interfaces-auth` `^7.5.0`, `@mcp-abap-adt/interfaces-auth-sap`
|
|
48
48
|
`^3.3.0`, `@mcp-abap-adt/interfaces-auth-broker` `^1.3.0` and
|
|
49
|
-
`@mcp-abap-adt/interfaces-utils` `^1.1.
|
|
49
|
+
`@mcp-abap-adt/interfaces-utils` `^1.1.1`. Declare `auth-providers` yourself — the renewal
|
|
50
50
|
strategies (`refreshThenLogin`, `refreshOnly`) and the interactive strategies come from it —
|
|
51
51
|
and `auth-errors` to read a failure. The stores are yours to choose: `@mcp-abap-adt/auth-stores`
|
|
52
52
|
`^4.0.0`, or any implementation of the `@mcp-abap-adt/interfaces-auth-broker` contracts. Keep
|
|
@@ -100,7 +100,7 @@ const provider = await broker.getProvider('TRIAL', { signal: session.signal });
|
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
`getProvider(destination)` returns the `IAuthProvider` (from `@mcp-abap-adt/interfaces-auth`
|
|
103
|
-
7) that a `@mcp-abap-adt/connection` 14 connector takes as it is. The broker reads two stores,
|
|
103
|
+
7) that a `@mcp-abap-adt/connection` 14 or 15 connector takes as it is. The broker reads two stores,
|
|
104
104
|
each for one role:
|
|
105
105
|
|
|
106
106
|
- **the means** — `authType`, `grantType`, basic's user and password, the SNC, OIDC and SAML
|
|
@@ -842,12 +842,15 @@ const current = await tokenRefresher.getToken();
|
|
|
842
842
|
const renewed = await tokenRefresher.refreshToken();
|
|
843
843
|
```
|
|
844
844
|
|
|
845
|
-
A `@mcp-abap-adt/connection` 14 connector takes an `IAuthProvider` instead: give it `await
|
|
845
|
+
A `@mcp-abap-adt/connection` 14 or 15 connector takes an `IAuthProvider` instead: give it `await
|
|
846
846
|
broker.getProvider('TRIAL', { signal })`.
|
|
847
847
|
|
|
848
848
|
Use `@mcp-abap-adt/connection` 14.1.0 or later. From 14.1.0 its `disconnect()` sends the
|
|
849
849
|
session's logoff. An earlier 14.x left each closed connection's SAP session open until the
|
|
850
850
|
server's own timeout, so a process that connects again and again collects sessions.
|
|
851
|
+
Connection 15 is built on `@mcp-abap-adt/interfaces-adt-connection` 2, as `adt-clients` is.
|
|
852
|
+
If your consumer uses both, choose 15: with 14 it installs two copies of that contract.
|
|
853
|
+
The broker hands either one the same `IAuthProvider`.
|
|
851
854
|
|
|
852
855
|
## Errors
|
|
853
856
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/auth-broker",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
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",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"@mcp-abap-adt/interfaces-auth": "^7.5.0",
|
|
62
62
|
"@mcp-abap-adt/interfaces-auth-broker": "^1.3.0",
|
|
63
63
|
"@mcp-abap-adt/interfaces-auth-sap": "^3.3.0",
|
|
64
|
-
"@mcp-abap-adt/interfaces-utils": "^1.1.
|
|
64
|
+
"@mcp-abap-adt/interfaces-utils": "^1.1.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@mcp-abap-adt/auth-mocks": "^0.4.0",
|
|
68
68
|
"@mcp-abap-adt/auth-stores": "^5.0.0",
|
|
69
|
-
"@mcp-abap-adt/connection": "^
|
|
69
|
+
"@mcp-abap-adt/connection": "^15.0.0",
|
|
70
70
|
"@mcp-abap-adt/logger": "^0.4.0",
|
|
71
71
|
"@types/js-yaml": "^4.0.9",
|
|
72
72
|
"js-yaml": "^4.1.1",
|