@nsshunt/stsoauth2plugin 1.0.19 → 1.0.21
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.
|
@@ -55,6 +55,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
55
55
|
const STSOAuth2ManagerPluginKey = Symbol();
|
|
56
56
|
const isNode = Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
|
|
57
57
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
58
|
+
function getDefaultExportFromCjs(x) {
|
|
59
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
60
|
+
}
|
|
58
61
|
function getAugmentedNamespace(n2) {
|
|
59
62
|
if (n2.__esModule)
|
|
60
63
|
return n2;
|
|
@@ -84,27 +87,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
84
87
|
});
|
|
85
88
|
return a;
|
|
86
89
|
}
|
|
87
|
-
var
|
|
88
|
-
var sha256 = {
|
|
89
|
-
get exports() {
|
|
90
|
-
return sha256Exports;
|
|
91
|
-
},
|
|
92
|
-
set exports(v) {
|
|
93
|
-
sha256Exports = v;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
90
|
+
var sha256$1 = { exports: {} };
|
|
96
91
|
function commonjsRequire(path) {
|
|
97
92
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
98
93
|
}
|
|
99
|
-
var
|
|
100
|
-
var core = {
|
|
101
|
-
get exports() {
|
|
102
|
-
return coreExports;
|
|
103
|
-
},
|
|
104
|
-
set exports(v) {
|
|
105
|
-
coreExports = v;
|
|
106
|
-
}
|
|
107
|
-
};
|
|
94
|
+
var core = { exports: {} };
|
|
108
95
|
const __viteBrowserExternal = {};
|
|
109
96
|
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
110
97
|
__proto__: null,
|
|
@@ -114,7 +101,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
114
101
|
var hasRequiredCore;
|
|
115
102
|
function requireCore() {
|
|
116
103
|
if (hasRequiredCore)
|
|
117
|
-
return
|
|
104
|
+
return core.exports;
|
|
118
105
|
hasRequiredCore = 1;
|
|
119
106
|
(function(module2, exports3) {
|
|
120
107
|
(function(root, factory) {
|
|
@@ -716,7 +703,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
716
703
|
return CryptoJS;
|
|
717
704
|
});
|
|
718
705
|
})(core);
|
|
719
|
-
return
|
|
706
|
+
return core.exports;
|
|
720
707
|
}
|
|
721
708
|
(function(module2, exports3) {
|
|
722
709
|
(function(root, factory) {
|
|
@@ -830,16 +817,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
830
817
|
})(Math);
|
|
831
818
|
return CryptoJS.SHA256;
|
|
832
819
|
});
|
|
833
|
-
})(sha256);
|
|
834
|
-
var
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
return encBase64Exports;
|
|
838
|
-
},
|
|
839
|
-
set exports(v) {
|
|
840
|
-
encBase64Exports = v;
|
|
841
|
-
}
|
|
842
|
-
};
|
|
820
|
+
})(sha256$1);
|
|
821
|
+
var sha256Exports = sha256$1.exports;
|
|
822
|
+
const sha256 = /* @__PURE__ */ getDefaultExportFromCjs(sha256Exports);
|
|
823
|
+
var encBase64 = { exports: {} };
|
|
843
824
|
(function(module2, exports3) {
|
|
844
825
|
(function(root, factory) {
|
|
845
826
|
{
|
|
@@ -940,12 +921,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
940
921
|
return CryptoJS.enc.Base64;
|
|
941
922
|
});
|
|
942
923
|
})(encBase64);
|
|
924
|
+
var encBase64Exports = encBase64.exports;
|
|
925
|
+
const Base64 = /* @__PURE__ */ getDefaultExportFromCjs(encBase64Exports);
|
|
943
926
|
class CryptoUtils {
|
|
944
927
|
constructor() {
|
|
945
928
|
__privateAdd(this, _crypto, void 0);
|
|
946
929
|
__publicField(this, "DigestMessage", async function(message) {
|
|
947
|
-
const hashDigest =
|
|
948
|
-
return
|
|
930
|
+
const hashDigest = sha256(message);
|
|
931
|
+
return Base64.stringify(hashDigest);
|
|
949
932
|
});
|
|
950
933
|
__publicField(this, "CreateRandomString", (size = 43) => {
|
|
951
934
|
const randomValues = Array.from(__privateGet(this, _crypto).getRandomValues(new Uint8Array(size)));
|