@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
|
@@ -38,7 +38,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
38
38
|
return method;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
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;
|
|
41
|
+
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;
|
|
42
42
|
function _interopNamespaceDefault(e) {
|
|
43
43
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
44
44
|
if (e) {
|
|
@@ -3004,7 +3004,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
3004
3004
|
StatusCodes2[StatusCodes2["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
3005
3005
|
})(StatusCodes || (StatusCodes = {}));
|
|
3006
3006
|
class STSOAuth2Worker {
|
|
3007
|
-
constructor(workerPort, options) {
|
|
3007
|
+
constructor(workerPort, options, logger) {
|
|
3008
3008
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3009
3009
|
__privateAdd(this, _LogDebugMessage);
|
|
3010
3010
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3020,6 +3020,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
3020
3020
|
__privateAdd(this, _oauthWorkerPort, void 0);
|
|
3021
3021
|
__privateAdd(this, _options2, void 0);
|
|
3022
3022
|
__privateAdd(this, _httpsAgent, null);
|
|
3023
|
+
__privateAdd(this, _logger, void 0);
|
|
3023
3024
|
// Attempt to restore a previous session using the STSBroker
|
|
3024
3025
|
/*
|
|
3025
3026
|
{ parameterType: OAuth2ParameterType.CLIENT_ID, errorType: authErrorType.CLIENT_ID_MISMATCH },
|
|
@@ -3459,6 +3460,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
3459
3460
|
}
|
|
3460
3461
|
});
|
|
3461
3462
|
__privateSet(this, _options2, options);
|
|
3463
|
+
__privateSet(this, _logger, logger);
|
|
3462
3464
|
__privateMethod(this, _LogDebugMessage, LogDebugMessage_fn).call(this, `STSOAuth2Worker:constructor:#options: [${JSON.stringify(__privateGet(this, _options2))}]`);
|
|
3463
3465
|
__privateSet(this, _clientSessionStore, new stsvueutils.ClientStorageFactory({ clientStorageType: stsvueutils.ClientStorageType.MEMORY_STORAGE, usePrefix: false }).GetStorage());
|
|
3464
3466
|
__privateSet(this, _oauthWorkerPort, workerPort);
|
|
@@ -3487,17 +3489,18 @@ var __privateMethod = (obj, member, method) => {
|
|
|
3487
3489
|
_oauthWorkerPort = new WeakMap();
|
|
3488
3490
|
_options2 = new WeakMap();
|
|
3489
3491
|
_httpsAgent = new WeakMap();
|
|
3492
|
+
_logger = new WeakMap();
|
|
3490
3493
|
_LogDebugMessage = new WeakSet();
|
|
3491
3494
|
LogDebugMessage_fn = function(message) {
|
|
3492
|
-
__privateGet(this,
|
|
3495
|
+
__privateGet(this, _logger).debug(message);
|
|
3493
3496
|
};
|
|
3494
3497
|
_LogInfoMessage = new WeakSet();
|
|
3495
3498
|
LogInfoMessage_fn = function(message) {
|
|
3496
|
-
__privateGet(this,
|
|
3499
|
+
__privateGet(this, _logger).info(message);
|
|
3497
3500
|
};
|
|
3498
3501
|
_LogErrorMessage = new WeakSet();
|
|
3499
3502
|
LogErrorMessage_fn = function(message) {
|
|
3500
|
-
__privateGet(this,
|
|
3503
|
+
__privateGet(this, _logger).error(message);
|
|
3501
3504
|
};
|
|
3502
3505
|
_HandleAuthenticateEvent2 = new WeakMap();
|
|
3503
3506
|
_HandleErrorEvent2 = new WeakMap();
|