@mcp-abap-adt/connection 15.1.0 → 17.0.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.
- package/CHANGELOG.md +187 -1
- package/README.md +137 -33
- package/dist/connection/AbstractAbapConnection.d.ts +140 -58
- package/dist/connection/AbstractAbapConnection.d.ts.map +1 -1
- package/dist/connection/AbstractAbapConnection.js +349 -255
- package/dist/connection/AdtCloudConnector.d.ts +6 -1
- package/dist/connection/AdtCloudConnector.d.ts.map +1 -1
- package/dist/connection/AdtCloudConnector.js +7 -2
- package/dist/connection/AdtOnPremConnector.d.ts +6 -1
- package/dist/connection/AdtOnPremConnector.d.ts.map +1 -1
- package/dist/connection/AdtOnPremConnector.js +7 -2
- package/dist/connection/CloudHttpTransport.d.ts +8 -1
- package/dist/connection/CloudHttpTransport.d.ts.map +1 -1
- package/dist/connection/CloudHttpTransport.js +30 -18
- package/dist/connection/CredentialAbapConnection.d.ts +3 -1
- package/dist/connection/CredentialAbapConnection.d.ts.map +1 -1
- package/dist/connection/CredentialAbapConnection.js +4 -2
- package/dist/connection/GenericWebSocketTransport.d.ts.map +1 -1
- package/dist/connection/GenericWebSocketTransport.js +7 -4
- package/dist/connection/HttpTransport.d.ts +80 -6
- package/dist/connection/HttpTransport.d.ts.map +1 -1
- package/dist/connection/HttpTransport.js +258 -25
- package/dist/connection/IAdtTransport.d.ts +46 -22
- package/dist/connection/IAdtTransport.d.ts.map +1 -1
- package/dist/connection/OnPremHttpTransport.d.ts +2 -13
- package/dist/connection/OnPremHttpTransport.d.ts.map +1 -1
- package/dist/connection/OnPremHttpTransport.js +16 -32
- package/dist/connection/RfcTransport.d.ts +7 -6
- package/dist/connection/RfcTransport.d.ts.map +1 -1
- package/dist/connection/RfcTransport.js +27 -49
- package/dist/connection/createConnection.d.ts +95 -0
- package/dist/connection/createConnection.d.ts.map +1 -0
- package/dist/connection/createConnection.js +44 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/docs/INDEX.md +6 -2
- package/docs/MIGRATION-16.0.md +123 -0
- package/docs/MIGRATION-17.0.md +119 -0
- package/docs/SCOPE.md +22 -45
- package/docs/STATEFUL_SESSION_GUIDE.md +49 -49
- package/docs/USAGE.md +244 -120
- package/package.json +2 -2
- package/dist/connection/requestAbort.d.ts +0 -32
- package/dist/connection/requestAbort.d.ts.map +0 -1
- package/dist/connection/requestAbort.js +0 -69
- package/dist/utils/timeouts.d.ts +0 -18
- package/dist/utils/timeouts.d.ts.map +0 -1
- package/dist/utils/timeouts.js +0 -37
|
@@ -29,6 +29,11 @@ export declare class AdtCloudConnector<TCredential extends IAuthProvider = IAuth
|
|
|
29
29
|
*/
|
|
30
30
|
TTransport extends ICloudTransport = CloudHttpTransport> extends CredentialAbapConnection<TCredential> {
|
|
31
31
|
readonly transport: TTransport;
|
|
32
|
-
constructor(config: SapConfig, credential: TCredential, transport: TTransport, logger?: ILogger | null, sessionId?: string
|
|
32
|
+
constructor(config: SapConfig, credential: TCredential, transport: TTransport, logger?: ILogger | null, sessionId?: string,
|
|
33
|
+
/**
|
|
34
|
+
* An existing session to take over instead of logging on: the cookies
|
|
35
|
+
* `sessionCookies()` returned for it. HTTP wires only.
|
|
36
|
+
*/
|
|
37
|
+
session?: string);
|
|
33
38
|
}
|
|
34
39
|
//# sourceMappingURL=AdtCloudConnector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtCloudConnector.d.ts","sourceRoot":"","sources":["../../src/connection/AdtCloudConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAA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,EAC7B,SAAS,CAAC,EAAE,MAAM;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM;CAInB"}
|
|
@@ -20,8 +20,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
exports.AdtCloudConnector = void 0;
|
|
21
21
|
const CredentialAbapConnection_js_1 = require("./CredentialAbapConnection.js");
|
|
22
22
|
class AdtCloudConnector extends CredentialAbapConnection_js_1.CredentialAbapConnection {
|
|
23
|
-
constructor(config, credential, transport, logger = null, sessionId
|
|
24
|
-
|
|
23
|
+
constructor(config, credential, transport, logger = null, sessionId,
|
|
24
|
+
/**
|
|
25
|
+
* An existing session to take over instead of logging on: the cookies
|
|
26
|
+
* `sessionCookies()` returned for it. HTTP wires only.
|
|
27
|
+
*/
|
|
28
|
+
session) {
|
|
29
|
+
super(config, credential, transport, logger, sessionId, session);
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
exports.AdtCloudConnector = AdtCloudConnector;
|
|
@@ -38,6 +38,11 @@ TTransport extends IOnPremTransport = OnPremHttpTransport> extends CredentialAba
|
|
|
38
38
|
* taking any connection and casting.
|
|
39
39
|
*/
|
|
40
40
|
readonly transport: TTransport;
|
|
41
|
-
constructor(config: SapConfig, credential: TCredential, transport: TTransport, logger?: ILogger | null, sessionId?: string
|
|
41
|
+
constructor(config: SapConfig, credential: TCredential, transport: TTransport, logger?: ILogger | null, sessionId?: string,
|
|
42
|
+
/**
|
|
43
|
+
* An existing session to take over instead of logging on: the cookies
|
|
44
|
+
* `sessionCookies()` returned for it. HTTP wires only.
|
|
45
|
+
*/
|
|
46
|
+
session?: string);
|
|
42
47
|
}
|
|
43
48
|
//# sourceMappingURL=AdtOnPremConnector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtOnPremConnector.d.ts","sourceRoot":"","sources":["../../src/connection/AdtOnPremConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OA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G;AACH,UAAU,SAAS,gBAAgB,GAAG,mBAAmB,CACzD,SAAQ,wBAAwB,CAAC,WAAW,CAAC;IAC7C;;;;;;;OAOG;IACH,SAAiB,SAAS,EAAE,UAAU,CAAC;gBAGrC,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,WAAW,EACvB,SAAS,EAAE,UAAU,EACrB,MAAM,GAAE,OAAO,GAAG,IAAW,EAC7B,SAAS,CAAC,EAAE,MAAM;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM;CAInB"}
|
|
@@ -21,8 +21,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
exports.AdtOnPremConnector = void 0;
|
|
22
22
|
const CredentialAbapConnection_js_1 = require("./CredentialAbapConnection.js");
|
|
23
23
|
class AdtOnPremConnector extends CredentialAbapConnection_js_1.CredentialAbapConnection {
|
|
24
|
-
constructor(config, credential, transport, logger = null, sessionId
|
|
25
|
-
|
|
24
|
+
constructor(config, credential, transport, logger = null, sessionId,
|
|
25
|
+
/**
|
|
26
|
+
* An existing session to take over instead of logging on: the cookies
|
|
27
|
+
* `sessionCookies()` returned for it. HTTP wires only.
|
|
28
|
+
*/
|
|
29
|
+
session) {
|
|
30
|
+
super(config, credential, transport, logger, sessionId, session);
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
33
|
exports.AdtOnPremConnector = AdtOnPremConnector;
|
|
@@ -22,6 +22,13 @@
|
|
|
22
22
|
* back to the platform logoff — an inference, and the only one left in this
|
|
23
23
|
* layer. A consumer that reaches an on-prem system with this transport has
|
|
24
24
|
* taken the wrong one, and finds out rather than being silently downgraded.
|
|
25
|
+
*
|
|
26
|
+
* **The platform logoff when no link was published.** Not an inference about
|
|
27
|
+
* the system: `/sap/public/bc/icf/logoff` ends a cloud security session too
|
|
28
|
+
* (measured on a BTP trial with bare HTTP, 2026-10-13: a preflight answered
|
|
29
|
+
* without a logoff link yet set a live `SAP_SESSIONID`; after that logoff the
|
|
30
|
+
* same cookies got `401`, before it `200`). So a held session with no link is
|
|
31
|
+
* logged off there, as the on-prem wire does.
|
|
25
32
|
*/
|
|
26
33
|
import { HttpTransport } from './HttpTransport.js';
|
|
27
34
|
import type { IAdtSessionContext, ICloudTransport } from './IAdtTransport.js';
|
|
@@ -51,7 +58,7 @@ export declare class CloudHttpTransport extends HttpTransport implements ICloudT
|
|
|
51
58
|
/** The logoff resource this server linked to beside our session, resolved — the close target. */
|
|
52
59
|
private logoff;
|
|
53
60
|
open(context: IAdtSessionContext): Promise<void>;
|
|
54
|
-
close(context: IAdtSessionContext): Promise<void>;
|
|
61
|
+
close(context: IAdtSessionContext, written?: () => void): Promise<void>;
|
|
55
62
|
/**
|
|
56
63
|
* An href resolved against the document that published it, as a link in an
|
|
57
64
|
* Atom document is. Resolved at open, so the close has nothing left that can
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudHttpTransport.d.ts","sourceRoot":"","sources":["../../src/connection/CloudHttpTransport.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CloudHttpTransport.d.ts","sourceRoot":"","sources":["../../src/connection/CloudHttpTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgB9E,qBAAa,kBACX,SAAQ,aACR,YAAW,eAAe;IAE1B,SAAkB,IAAI,gBAAgB;IAEtC,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAG,OAAO,CAAU;IAEnC;;;;;;;;;;;;;;;;;OAiBG;cACgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3D,iGAAiG;IACjG,OAAO,CAAC,MAAM,CAAuB;IAEtB,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAiEhD,KAAK,CAClB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,GACnB,OAAO,CAAC,IAAI,CAAC;IA8ChB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAenB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;CAWjB"}
|
|
@@ -23,11 +23,17 @@
|
|
|
23
23
|
* back to the platform logoff — an inference, and the only one left in this
|
|
24
24
|
* layer. A consumer that reaches an on-prem system with this transport has
|
|
25
25
|
* taken the wrong one, and finds out rather than being silently downgraded.
|
|
26
|
+
*
|
|
27
|
+
* **The platform logoff when no link was published.** Not an inference about
|
|
28
|
+
* the system: `/sap/public/bc/icf/logoff` ends a cloud security session too
|
|
29
|
+
* (measured on a BTP trial with bare HTTP, 2026-10-13: a preflight answered
|
|
30
|
+
* without a logoff link yet set a live `SAP_SESSIONID`; after that logoff the
|
|
31
|
+
* same cookies got `401`, before it `200`). So a held session with no link is
|
|
32
|
+
* logged off there, as the on-prem wire does.
|
|
26
33
|
*/
|
|
27
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
35
|
exports.CloudHttpTransport = void 0;
|
|
29
36
|
const cookies_js_1 = require("../utils/cookies.js");
|
|
30
|
-
const timeouts_js_1 = require("../utils/timeouts.js");
|
|
31
37
|
const authErrors_js_1 = require("./authErrors.js");
|
|
32
38
|
const HttpTransport_js_1 = require("./HttpTransport.js");
|
|
33
39
|
const SESSIONS_PATH = '/sap/bc/adt/core/http/sessions';
|
|
@@ -80,8 +86,8 @@ class CloudHttpTransport extends HttpTransport_js_1.HttpTransport {
|
|
|
80
86
|
// from anything's cache — a cached session document would hand back an
|
|
81
87
|
// address that belongs to a session somebody else already ended.
|
|
82
88
|
url: `${context.baseUrl}${SESSIONS_PATH}?_=${Date.now()}`,
|
|
83
|
-
//
|
|
84
|
-
|
|
89
|
+
// No deadline: a client deadline closes the socket, and SAP then
|
|
90
|
+
// ends what was running on it. connect() waits for SAP's answer.
|
|
85
91
|
headers: {
|
|
86
92
|
...auth,
|
|
87
93
|
...context.extraHeaders,
|
|
@@ -104,8 +110,8 @@ class CloudHttpTransport extends HttpTransport_js_1.HttpTransport {
|
|
|
104
110
|
this.logger?.debug(`Session resource answered ${response.status} but published no securitysession link`);
|
|
105
111
|
return;
|
|
106
112
|
}
|
|
107
|
-
// Published only while its ICF service is active; without it
|
|
108
|
-
//
|
|
113
|
+
// Published only while its ICF service is active; without it the close
|
|
114
|
+
// sends the platform's own logoff instead.
|
|
109
115
|
this.logoff = this.resolveLink(this.linkHref(response.data, LOGOFF_REL), `${context.baseUrl}${SESSIONS_PATH}`);
|
|
110
116
|
this.logger?.debug(`Security session opened: ${resource}`);
|
|
111
117
|
}
|
|
@@ -120,27 +126,33 @@ class CloudHttpTransport extends HttpTransport_js_1.HttpTransport {
|
|
|
120
126
|
this.logger?.debug(`Could not open a security session: ${error instanceof Error ? error.message : String(error)}`);
|
|
121
127
|
}
|
|
122
128
|
}
|
|
123
|
-
async close(context) {
|
|
129
|
+
async close(context, written) {
|
|
124
130
|
const logoff = this.logoff;
|
|
125
131
|
this.logoff = null;
|
|
126
|
-
// Read SYNCHRONOUSLY, before the first await.
|
|
127
|
-
//
|
|
128
|
-
//
|
|
129
|
-
//
|
|
130
|
-
|
|
132
|
+
// Read SYNCHRONOUSLY, before the first await. The teardown's
|
|
133
|
+
// `forgetSession()` runs as soon as the close is dispatched — the
|
|
134
|
+
// connection waits for its write only after the transition — so a
|
|
135
|
+
// goodbye assembled after an await would carry no cookie, which is the
|
|
136
|
+
// one thing that proves the session is ours to end.
|
|
137
|
+
// Without `sap-contextid`: see `logoffCookies()`.
|
|
138
|
+
const cookies = this.logoffCookies();
|
|
131
139
|
// Snapshotted for the same reason: the logoff must reach the server holding
|
|
132
140
|
// this session, not whichever one the wire is pinned to when it goes out.
|
|
133
141
|
const affinity = this.affinityHeaders();
|
|
134
142
|
const session = this.sessionHeaders();
|
|
135
|
-
if (!cookies) {
|
|
136
|
-
//
|
|
137
|
-
//
|
|
143
|
+
if (!cookies || !this.holdsSessionCookie()) {
|
|
144
|
+
// The same rule as on-prem: a logoff only for a non-empty
|
|
145
|
+
// `SAP_SESSIONID_*` this wire received — here the security session the
|
|
146
|
+
// preflight created. Holding that cookie is the whole permission to end
|
|
147
|
+
// one, and without it the ICF logoff ends nothing.
|
|
138
148
|
return;
|
|
139
149
|
}
|
|
140
150
|
if (!logoff) {
|
|
141
|
-
// A session
|
|
142
|
-
//
|
|
143
|
-
|
|
151
|
+
// A session is held, but the server linked no logoff resource (a
|
|
152
|
+
// preflight that published none, or failed): the platform's own logoff
|
|
153
|
+
// ends it, sent exactly as the on-prem wire sends it.
|
|
154
|
+
this.logger?.debug('The server published no logoff resource; sending the platform logoff');
|
|
155
|
+
await this.sendIcfLogoff(context, { cookies, affinity }, written);
|
|
144
156
|
return;
|
|
145
157
|
}
|
|
146
158
|
await this.sendLogoff(context, logoff, {
|
|
@@ -149,7 +161,7 @@ class CloudHttpTransport extends HttpTransport_js_1.HttpTransport {
|
|
|
149
161
|
// `x-sap-security-session: use`, as Eclipse sends it on the logoff: it
|
|
150
162
|
// names the session the logoff ends, like every other request here.
|
|
151
163
|
session,
|
|
152
|
-
});
|
|
164
|
+
}, written);
|
|
153
165
|
}
|
|
154
166
|
/**
|
|
155
167
|
* An href resolved against the document that published it, as a link in an
|
|
@@ -22,7 +22,9 @@ export declare abstract class CredentialAbapConnection<TCredential extends IAuth
|
|
|
22
22
|
readonly credential: TCredential;
|
|
23
23
|
constructor(config: SapConfig,
|
|
24
24
|
/** Public because the type is the point: a caller can reach what it gave. */
|
|
25
|
-
credential: TCredential, transport: IAdtTransport, logger?: ILogger | null, sessionId?: string
|
|
25
|
+
credential: TCredential, transport: IAdtTransport, logger?: ILogger | null, sessionId?: string,
|
|
26
|
+
/** An existing session to take over; see `createConnection`'s `session`. */
|
|
27
|
+
session?: string);
|
|
26
28
|
/**
|
|
27
29
|
* Whatever the credential needs before the first request goes out.
|
|
28
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/CredentialAbapConnection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAoB,KAAK,aAAa,EAAW,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,oBAAoB,CAAC;AAGnE,8BAAsB,wBAAwB,CAC5C,WAAW,SAAS,aAAa,GAAG,aAAa,CACjD,SAAQ,sBAAsB;IAG5B,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,EAAE,WAAW;gBAFhC,MAAM,EAAE,SAAS;IACjB,6EAA6E;IACpE,UAAU,EAAE,WAAW,EAChC,SAAS,EAAE,aAAa,EACxB,MAAM,GAAE,OAAO,GAAG,IAAW,EAC7B,SAAS,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"CredentialAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/CredentialAbapConnection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAoB,KAAK,aAAa,EAAW,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,oBAAoB,CAAC;AAGnE,8BAAsB,wBAAwB,CAC5C,WAAW,SAAS,aAAa,GAAG,aAAa,CACjD,SAAQ,sBAAsB;IAG5B,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,EAAE,WAAW;gBAFhC,MAAM,EAAE,SAAS;IACjB,6EAA6E;IACpE,UAAU,EAAE,WAAW,EAChC,SAAS,EAAE,aAAa,EACxB,MAAM,GAAE,OAAO,GAAG,IAAW,EAC7B,SAAS,CAAC,EAAE,MAAM;IAClB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM;IAKlB;;;;;;;;;;OAUG;cACsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU3D;;;;;;;OAOG;cACsB,gBAAgB,CACvC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;IAYhB,6EAA6E;cACpD,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnE;;;OAGG;cACsB,kBAAkB,CACzC,SAAS,EAAE,cAAc,GACxB,OAAO,CAAC,aAAa,CAAC;cAIT,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CA+ClD"}
|
|
@@ -22,8 +22,10 @@ class CredentialAbapConnection extends AbstractAbapConnection_js_1.AbstractAbapC
|
|
|
22
22
|
credential;
|
|
23
23
|
constructor(config,
|
|
24
24
|
/** Public because the type is the point: a caller can reach what it gave. */
|
|
25
|
-
credential, transport, logger = null, sessionId
|
|
26
|
-
|
|
25
|
+
credential, transport, logger = null, sessionId,
|
|
26
|
+
/** An existing session to take over; see `createConnection`'s `session`. */
|
|
27
|
+
session) {
|
|
28
|
+
super(config, transport, logger, sessionId, session);
|
|
27
29
|
this.credential = credential;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericWebSocketTransport.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E,OAAO,CAAC,aAAa,CAEd;gBAEsB,OAAO,EAAE,iBAAiB;IAEjD,OAAO,CACX,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"GenericWebSocketTransport.d.ts","sourceRoot":"","sources":["../../src/connection/GenericWebSocketTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IACvD,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3C,OAAO,EACH,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC,GACzE,IAAI,CAAC;CACV;AAED,UAAU,iBAAiB;IACzB,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EAC7B,OAAO,CAAC,EAAE,wBAAwB,GACjC,cAAc,CAAC;CACnB;AAID,qBAAa,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
|
19
|
-
|
|
19
|
+
// The caller's deadline, or none: no default of this package's own.
|
|
20
|
+
const connectTimeoutMs = options?.connectTimeoutMs;
|
|
20
21
|
const socket = this.factory.create(url, options?.protocols, options);
|
|
21
22
|
this.socket = socket;
|
|
22
23
|
await new Promise((resolve, reject) => {
|
|
23
|
-
const timeoutId =
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const timeoutId = connectTimeoutMs === undefined
|
|
25
|
+
? undefined
|
|
26
|
+
: setTimeout(() => {
|
|
27
|
+
reject(new Error(`WebSocket connect timeout after ${connectTimeoutMs}ms`));
|
|
28
|
+
}, connectTimeoutMs);
|
|
26
29
|
socket.onopen = () => {
|
|
27
30
|
clearTimeout(timeoutId);
|
|
28
31
|
this.emitOpen().catch(() => {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* not the credential). Material that changes between logons drops the client;
|
|
19
19
|
* the cookie jar and the CSRF token are the session's and stay.
|
|
20
20
|
*/
|
|
21
|
+
import { type ClientRequest, type IncomingMessage, type RequestOptions } from 'node:http';
|
|
21
22
|
import { type AgentOptions } from 'node:https';
|
|
22
23
|
import type { ILogonTarget } from '@mcp-abap-adt/interfaces-auth';
|
|
23
24
|
import type { ILogger } from '../logger.js';
|
|
@@ -85,6 +86,25 @@ export declare class HttpTransport implements IAdtTransport {
|
|
|
85
86
|
ingest(headers?: Record<string, unknown>): void;
|
|
86
87
|
/** What to put on the `Cookie` header, or nothing if the jar is empty. */
|
|
87
88
|
cookies(): string | null;
|
|
89
|
+
/**
|
|
90
|
+
* The session's cookies, for the caller to keep and hand back to
|
|
91
|
+
* `resume()`: the jar without `sap-XSRF_*`, which belongs to the CSRF token
|
|
92
|
+
* and is earned again with it. `SAP_SESSIONID_*`, `sap-usercontext`,
|
|
93
|
+
* `sap-contextid` — so a stateful request after the resume reaches the same
|
|
94
|
+
* ABAP context — and whatever else the server set to keep the session where
|
|
95
|
+
* it lives. `null` while the wire holds no live `SAP_SESSIONID`.
|
|
96
|
+
*/
|
|
97
|
+
sessionCookies(): string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Take over the session `session` names: see `IAdtTransport.resume`.
|
|
100
|
+
*
|
|
101
|
+
* The request is the CSRF fetch on the discovery endpoint — the fallback on
|
|
102
|
+
* a `404` there, as `establish()` does, in the same session — with no
|
|
103
|
+
* credential and no retry. On the cloud wire it says
|
|
104
|
+
* `x-sap-security-session: use`, because the seeded jar holds a session
|
|
105
|
+
* (`sessionHeaders`).
|
|
106
|
+
*/
|
|
107
|
+
resume(context: IAdtSessionContext, session: string): Promise<void>;
|
|
88
108
|
/**
|
|
89
109
|
* Which ABAP session this wire is on.
|
|
90
110
|
*
|
|
@@ -93,6 +113,34 @@ export declare class HttpTransport implements IAdtTransport {
|
|
|
93
113
|
* replacement every time the client was re-asserted.
|
|
94
114
|
*/
|
|
95
115
|
sessionFingerprint(): Map<string, string>;
|
|
116
|
+
/**
|
|
117
|
+
* The cookies a logoff carries: the jar without `sap-contextid`.
|
|
118
|
+
*
|
|
119
|
+
* The logoff ends the HTTP security session `SAP_SESSIONID` names, and with
|
|
120
|
+
* it every ABAP context of that session. Measured on an on-premise system with bare HTTP
|
|
121
|
+
* (2026-10-13): a LOCK held in a stateful context, then a logoff carrying
|
|
122
|
+
* `SAP_SESSIONID_ABC_001` and `sap-usercontext` but no `sap-contextid` →
|
|
123
|
+
* 200, `SAP_SESSIONID` deleted, and an independent session then got the
|
|
124
|
+
* LOCK: the context ended and the lock was released. A logoff that carried a
|
|
125
|
+
* stale (deleted) `sap-contextid` got 400 and closed nothing. So the
|
|
126
|
+
* context cookie never rides on a logoff.
|
|
127
|
+
*/
|
|
128
|
+
protected logoffCookies(): string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Whether this wire holds a non-empty `SAP_SESSIONID_*` cookie it received —
|
|
131
|
+
* the one condition under which a logoff is sent.
|
|
132
|
+
*
|
|
133
|
+
* Read from the jar, never from `sessionEstablished()`, which a wire may
|
|
134
|
+
* answer otherwise (BASIS 7.40 says yes with no such cookie). The evidence,
|
|
135
|
+
* on an on-premise system (ABAP code and measurement): `CL_HTTP_SERVER_NET->send_response`
|
|
136
|
+
* sets `SAP_SESSIONID_<SID>_<CLIENT>` only when that request created a
|
|
137
|
+
* security session (`m_security_session_created`), whatever the status — a
|
|
138
|
+
* 404 or 403 after logon carried it and the session was alive; and the ICF
|
|
139
|
+
* logoff ends a session only when that cookie is present. So a logoff
|
|
140
|
+
* without it ends nothing, and one with it is owed whatever the status that
|
|
141
|
+
* brought it.
|
|
142
|
+
*/
|
|
143
|
+
protected holdsSessionCookie(): boolean;
|
|
96
144
|
/**
|
|
97
145
|
* A session exists when the server named one.
|
|
98
146
|
*
|
|
@@ -223,7 +271,20 @@ export declare class HttpTransport implements IAdtTransport {
|
|
|
223
271
|
* session document links to, the on-prem one the platform logoff. A bare HTTP wire has
|
|
224
272
|
* neither, and says so by doing nothing.
|
|
225
273
|
*/
|
|
226
|
-
close(_context: IAdtSessionContext): Promise<void>;
|
|
274
|
+
close(_context: IAdtSessionContext, _written?: () => void): Promise<void>;
|
|
275
|
+
/**
|
|
276
|
+
* The platform's own logoff, `/sap/public/bc/icf/logoff`: the session's
|
|
277
|
+
* cookies (taken by the caller before its first await, without
|
|
278
|
+
* `sap-contextid`), no session headers, its write reported through
|
|
279
|
+
* `written`. On-prem it is the only goodbye; on cloud it is the goodbye when
|
|
280
|
+
* the server linked no logoff resource of its own — it ends a cloud security
|
|
281
|
+
* session too (measured on a BTP trial with bare HTTP, 2026-10-13: the same
|
|
282
|
+
* cookies were refused with 401 right after it, accepted before).
|
|
283
|
+
*/
|
|
284
|
+
protected sendIcfLogoff(context: IAdtSessionContext, snapshot: {
|
|
285
|
+
cookies: string;
|
|
286
|
+
affinity: Record<string, string>;
|
|
287
|
+
}, written?: () => void): Promise<void>;
|
|
227
288
|
/**
|
|
228
289
|
* The logoff, sent as Eclipse ADT 3.60.3 sends it when a project is closed.
|
|
229
290
|
*
|
|
@@ -243,7 +304,9 @@ export declare class HttpTransport implements IAdtTransport {
|
|
|
243
304
|
cookies: string;
|
|
244
305
|
affinity: Record<string, string>;
|
|
245
306
|
session: Record<string, string>;
|
|
246
|
-
}
|
|
307
|
+
},
|
|
308
|
+
/** Called once the logoff's bytes are on the socket; see `close()`. */
|
|
309
|
+
written?: () => void): Promise<void>;
|
|
247
310
|
/**
|
|
248
311
|
* Throws for a status the request does not admit — by doing nothing, because
|
|
249
312
|
* that is already what axios does, and `AxiosError` already carries
|
|
@@ -262,9 +325,10 @@ export declare class HttpTransport implements IAdtTransport {
|
|
|
262
325
|
/**
|
|
263
326
|
* Send EXACTLY these headers, with nothing of the wire's live state mixed in.
|
|
264
327
|
*
|
|
265
|
-
* For a goodbye, and only for a goodbye. `disconnect()`
|
|
266
|
-
*
|
|
267
|
-
* connection is already free to `connect()`
|
|
328
|
+
* For a goodbye, and only for a goodbye. `disconnect()` releases the
|
|
329
|
+
* transition queue before the logoff is even written, so the request is
|
|
330
|
+
* still being assembled while the connection is already free to `connect()`
|
|
331
|
+
* again — and by the time it goes
|
|
268
332
|
* out, the jar can hold a different session. Dressing it then merges the LIVE
|
|
269
333
|
* `SAP_SESSIONID` over the snapshot, and `mergeCookieHeaders` lets the later
|
|
270
334
|
* value win on a repeated name, so the goodbye for the old session arrives
|
|
@@ -273,7 +337,17 @@ export declare class HttpTransport implements IAdtTransport {
|
|
|
273
337
|
* Reading the cookies synchronously is necessary and was not sufficient: the
|
|
274
338
|
* snapshot survived only until the send path put the jar back on top of it.
|
|
275
339
|
*/
|
|
276
|
-
protected sendDetached(request: IAdtTransportRequest
|
|
340
|
+
protected sendDetached(request: IAdtTransportRequest,
|
|
341
|
+
/** Called once the request's bytes are on the socket. */
|
|
342
|
+
written?: () => void): Promise<IAdtTransportResponse>;
|
|
343
|
+
/**
|
|
344
|
+
* The node request a logoff goes out on — the seam where its write is seen.
|
|
345
|
+
*
|
|
346
|
+
* A test replaces it to hold a request's socket shut; the wire uses node's
|
|
347
|
+
* own `http` / `https`, as axios would with redirects off. The logoff's
|
|
348
|
+
* answer is not read, so not following a redirect changes nothing.
|
|
349
|
+
*/
|
|
350
|
+
protected logoffRequest(options: RequestOptions, onResponse: (response: IncomingMessage) => void): ClientRequest;
|
|
277
351
|
private dispatch;
|
|
278
352
|
}
|
|
279
353
|
//# sourceMappingURL=HttpTransport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpTransport.d.ts","sourceRoot":"","sources":["../../src/connection/HttpTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAS,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"HttpTransport.d.ts","sourceRoot":"","sources":["../../src/connection/HttpTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAS,KAAK,YAAY,EAA2B,MAAM,YAAY,CAAC;AAE/E,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAI5C,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAE3B,MAAM,oBAAoB,CAAC;AAiE5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAwFzD,qBAAa,aAAc,YAAW,aAAa;IAsC/C,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IACzC;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO;IA7C1B;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAU;IAE/B,O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