@nsshunt/stsoauth2plugin 1.0.58 → 1.0.60
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/dist/stsoauth2plugin.mjs +8 -5
- package/dist/stsoauth2plugin.mjs.map +1 -1
- package/dist/stsoauth2plugin.umd.js +8 -5
- package/dist/stsoauth2plugin.umd.js.map +1 -1
- package/package.json +6 -6
- package/types/stsoauth2types.d.ts +0 -2
- package/types/stsoauth2types.d.ts.map +1 -1
- package/types/stsoauth2worker.d.ts +2 -1
- package/types/stsoauth2worker.d.ts.map +1 -1
package/dist/stsoauth2plugin.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
34
34
|
__accessCheck(obj, member, "access private method");
|
|
35
35
|
return method;
|
|
36
36
|
};
|
|
37
|
-
var _crypto, _router, _cUtils, _qParams, _STORAGE_AUTHORIZE_OPTIONS_KEY, _STORAGE_SESSION_KEY, _aic, _options, _messages, _oauth2ManagerPort, _messageId, _messageHandlers, _messageTimeout, _worker, _transactionStore, _operationSemaphore, _maxSemaphoreRetries, _semaphoreRetrySleep, _ProcessMessageResponse, _PostMessage, _HandleLogEvent, _HandleUpdateInstrumentEvent, _GetStore, _HandleErrorEvent, _HandleAuthenticateEvent, _SetupRoute, _clientSessionStore, _cUtils2, _qParams2, _STORAGE_SESSION_KEY2, _oauthWorkerPort, _options2, _httpsAgent, _LogDebugMessage, LogDebugMessage_fn, _LogInfoMessage, LogInfoMessage_fn, _LogErrorMessage, LogErrorMessage_fn, _HandleAuthenticateEvent2, _HandleErrorEvent2, _LogMessage, _GetAccessToken, _GetCookies, _UpdateInstrument, _ProcessCommand, _RestoreSession, _Authorize, _HandleRedirect, _GetTokenFromBroker, _GetToken, _RefreshToken, _Logout;
|
|
37
|
+
var _crypto, _router, _cUtils, _qParams, _STORAGE_AUTHORIZE_OPTIONS_KEY, _STORAGE_SESSION_KEY, _aic, _options, _messages, _oauth2ManagerPort, _messageId, _messageHandlers, _messageTimeout, _worker, _transactionStore, _operationSemaphore, _maxSemaphoreRetries, _semaphoreRetrySleep, _ProcessMessageResponse, _PostMessage, _HandleLogEvent, _HandleUpdateInstrumentEvent, _GetStore, _HandleErrorEvent, _HandleAuthenticateEvent, _SetupRoute, _clientSessionStore, _cUtils2, _qParams2, _STORAGE_SESSION_KEY2, _oauthWorkerPort, _options2, _httpsAgent, _logger, _LogDebugMessage, LogDebugMessage_fn, _LogInfoMessage, LogInfoMessage_fn, _LogErrorMessage, LogErrorMessage_fn, _HandleAuthenticateEvent2, _HandleErrorEvent2, _LogMessage, _GetAccessToken, _GetCookies, _UpdateInstrument, _ProcessCommand, _RestoreSession, _Authorize, _HandleRedirect, _GetTokenFromBroker, _GetToken, _RefreshToken, _Logout;
|
|
38
38
|
import { inject } from "vue";
|
|
39
39
|
import Debug from "debug";
|
|
40
40
|
import * as wt from "node:worker_threads";
|
|
@@ -2994,7 +2994,7 @@ var StatusCodes;
|
|
|
2994
2994
|
StatusCodes2[StatusCodes2["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
2995
2995
|
})(StatusCodes || (StatusCodes = {}));
|
|
2996
2996
|
class STSOAuth2Worker {
|
|
2997
|
-
constructor(workerPort, options) {
|
|
2997
|
+
constructor(workerPort, options, logger) {
|
|
2998
2998
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2999
2999
|
__privateAdd(this, _LogDebugMessage);
|
|
3000
3000
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3010,6 +3010,7 @@ class STSOAuth2Worker {
|
|
|
3010
3010
|
__privateAdd(this, _oauthWorkerPort, void 0);
|
|
3011
3011
|
__privateAdd(this, _options2, void 0);
|
|
3012
3012
|
__privateAdd(this, _httpsAgent, null);
|
|
3013
|
+
__privateAdd(this, _logger, void 0);
|
|
3013
3014
|
// Attempt to restore a previous session using the STSBroker
|
|
3014
3015
|
/*
|
|
3015
3016
|
{ parameterType: OAuth2ParameterType.CLIENT_ID, errorType: authErrorType.CLIENT_ID_MISMATCH },
|
|
@@ -3449,6 +3450,7 @@ class STSOAuth2Worker {
|
|
|
3449
3450
|
}
|
|
3450
3451
|
});
|
|
3451
3452
|
__privateSet(this, _options2, options);
|
|
3453
|
+
__privateSet(this, _logger, logger);
|
|
3452
3454
|
__privateMethod(this, _LogDebugMessage, LogDebugMessage_fn).call(this, `STSOAuth2Worker:constructor:#options: [${JSON.stringify(__privateGet(this, _options2))}]`);
|
|
3453
3455
|
__privateSet(this, _clientSessionStore, new ClientStorageFactory({ clientStorageType: ClientStorageType.MEMORY_STORAGE, usePrefix: false }).GetStorage());
|
|
3454
3456
|
__privateSet(this, _oauthWorkerPort, workerPort);
|
|
@@ -3477,17 +3479,18 @@ _STORAGE_SESSION_KEY2 = new WeakMap();
|
|
|
3477
3479
|
_oauthWorkerPort = new WeakMap();
|
|
3478
3480
|
_options2 = new WeakMap();
|
|
3479
3481
|
_httpsAgent = new WeakMap();
|
|
3482
|
+
_logger = new WeakMap();
|
|
3480
3483
|
_LogDebugMessage = new WeakSet();
|
|
3481
3484
|
LogDebugMessage_fn = function(message) {
|
|
3482
|
-
__privateGet(this,
|
|
3485
|
+
__privateGet(this, _logger).debug(message);
|
|
3483
3486
|
};
|
|
3484
3487
|
_LogInfoMessage = new WeakSet();
|
|
3485
3488
|
LogInfoMessage_fn = function(message) {
|
|
3486
|
-
__privateGet(this,
|
|
3489
|
+
__privateGet(this, _logger).info(message);
|
|
3487
3490
|
};
|
|
3488
3491
|
_LogErrorMessage = new WeakSet();
|
|
3489
3492
|
LogErrorMessage_fn = function(message) {
|
|
3490
|
-
__privateGet(this,
|
|
3493
|
+
__privateGet(this, _logger).error(message);
|
|
3491
3494
|
};
|
|
3492
3495
|
_HandleAuthenticateEvent2 = new WeakMap();
|
|
3493
3496
|
_HandleErrorEvent2 = new WeakMap();
|