samlesa 2.12.3 → 2.12.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/build/index.js +54 -64
- package/build/index.js.map +1 -1
- package/build/src/api.js +24 -23
- package/build/src/api.js.map +1 -1
- package/build/src/binding-post.js +358 -368
- package/build/src/binding-post.js.map +1 -1
- package/build/src/binding-redirect.js +333 -332
- package/build/src/binding-redirect.js.map +1 -1
- package/build/src/binding-simplesign.js +222 -232
- package/build/src/binding-simplesign.js.map +1 -1
- package/build/src/entity-idp.js +132 -130
- package/build/src/entity-idp.js.map +1 -1
- package/build/src/entity-sp.js +96 -96
- package/build/src/entity-sp.js.map +1 -1
- package/build/src/entity.js +225 -235
- package/build/src/entity.js.map +1 -1
- package/build/src/extractor.js +369 -369
- package/build/src/extractor.js.map +1 -1
- package/build/src/flow.js +320 -319
- package/build/src/flow.js.map +1 -1
- package/build/src/libsaml.js +660 -641
- package/build/src/libsaml.js.map +1 -1
- package/build/src/metadata-idp.js +127 -127
- package/build/src/metadata-idp.js.map +1 -1
- package/build/src/metadata-sp.js +231 -231
- package/build/src/metadata-sp.js.map +1 -1
- package/build/src/metadata.js +166 -176
- package/build/src/metadata.js.map +1 -1
- package/build/src/types.js +11 -11
- package/build/src/urn.js +212 -212
- package/build/src/urn.js.map +1 -1
- package/build/src/utility.js +292 -248
- package/build/src/utility.js.map +1 -1
- package/build/src/validator.js +27 -26
- package/build/src/validator.js.map +1 -1
- package/index.d.ts +10 -10
- package/index.js +18 -18
- package/package.json +1 -5
- package/qodana.yaml +29 -29
- package/src/binding-post.ts +1 -1
- package/src/binding-redirect.ts +83 -64
- package/src/entity-idp.ts +26 -20
- package/src/libsaml.ts +79 -48
- package/src/utility.ts +147 -76
- package/types/index.d.ts +10 -10
- package/types/src/api.d.ts +13 -13
- package/types/src/binding-post.d.ts +46 -46
- package/types/src/binding-redirect.d.ts +52 -52
- package/types/src/binding-simplesign.d.ts +39 -39
- package/types/src/entity-idp.d.ts +35 -42
- package/types/src/entity-sp.d.ts +36 -36
- package/types/src/entity.d.ts +101 -99
- package/types/src/extractor.d.ts +25 -25
- package/types/src/flow.d.ts +6 -6
- package/types/src/libsaml.d.ts +200 -210
- package/types/src/metadata-idp.d.ts +24 -24
- package/types/src/metadata-sp.d.ts +36 -36
- package/types/src/metadata.d.ts +59 -57
- package/types/src/types.d.ts +129 -127
- package/types/src/urn.d.ts +194 -194
- package/types/src/utility.d.ts +134 -134
- package/types/src/validator.d.ts +3 -3
- package/.idea/compiler.xml +0 -6
- package/.idea/deployment.xml +0 -14
- package/.idea/jsLibraryMappings.xml +0 -6
- package/build/.idea/workspace.xml +0 -58
package/build/index.js
CHANGED
|
@@ -1,65 +1,55 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Object.defineProperty(exports, "
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
-
// roadmap
|
|
56
|
-
// new name convention in version >= 3.0
|
|
57
|
-
const Constants = __importStar(require("./src/urn.js"));
|
|
58
|
-
exports.Constants = Constants;
|
|
59
|
-
const Extractor = __importStar(require("./src/extractor.js"));
|
|
60
|
-
exports.Extractor = Extractor;
|
|
61
|
-
// exposed methods for customizing samlify
|
|
62
|
-
const api_js_1 = require("./src/api.js");
|
|
63
|
-
Object.defineProperty(exports, "setSchemaValidator", { enumerable: true, get: function () { return api_js_1.setSchemaValidator; } });
|
|
64
|
-
Object.defineProperty(exports, "setDOMParserOptions", { enumerable: true, get: function () { return api_js_1.setDOMParserOptions; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.setDOMParserOptions = exports.setSchemaValidator = exports.ServiceProviderInstance = exports.ServiceProvider = exports.IdentityProviderInstance = exports.IdentityProvider = exports.Extractor = exports.Constants = exports.SamlLib = exports.Utility = exports.SPMetadata = exports.IdPMetadata = void 0;
|
|
30
|
+
// version <= 1.25
|
|
31
|
+
const entity_idp_js_1 = __importStar(require("./src/entity-idp.js"));
|
|
32
|
+
exports.IdentityProvider = entity_idp_js_1.default;
|
|
33
|
+
Object.defineProperty(exports, "IdentityProviderInstance", { enumerable: true, get: function () { return entity_idp_js_1.IdentityProvider; } });
|
|
34
|
+
const entity_sp_js_1 = __importStar(require("./src/entity-sp.js"));
|
|
35
|
+
exports.ServiceProvider = entity_sp_js_1.default;
|
|
36
|
+
Object.defineProperty(exports, "ServiceProviderInstance", { enumerable: true, get: function () { return entity_sp_js_1.ServiceProvider; } });
|
|
37
|
+
var metadata_idp_js_1 = require("./src/metadata-idp.js");
|
|
38
|
+
Object.defineProperty(exports, "IdPMetadata", { enumerable: true, get: function () { return __importDefault(metadata_idp_js_1).default; } });
|
|
39
|
+
var metadata_sp_js_1 = require("./src/metadata-sp.js");
|
|
40
|
+
Object.defineProperty(exports, "SPMetadata", { enumerable: true, get: function () { return __importDefault(metadata_sp_js_1).default; } });
|
|
41
|
+
var utility_js_1 = require("./src/utility.js");
|
|
42
|
+
Object.defineProperty(exports, "Utility", { enumerable: true, get: function () { return __importDefault(utility_js_1).default; } });
|
|
43
|
+
var libsaml_js_1 = require("./src/libsaml.js");
|
|
44
|
+
Object.defineProperty(exports, "SamlLib", { enumerable: true, get: function () { return __importDefault(libsaml_js_1).default; } });
|
|
45
|
+
// roadmap
|
|
46
|
+
// new name convention in version >= 3.0
|
|
47
|
+
const Constants = __importStar(require("./src/urn.js"));
|
|
48
|
+
exports.Constants = Constants;
|
|
49
|
+
const Extractor = __importStar(require("./src/extractor.js"));
|
|
50
|
+
exports.Extractor = Extractor;
|
|
51
|
+
// exposed methods for customizing samlify
|
|
52
|
+
const api_js_1 = require("./src/api.js");
|
|
53
|
+
Object.defineProperty(exports, "setSchemaValidator", { enumerable: true, get: function () { return api_js_1.setSchemaValidator; } });
|
|
54
|
+
Object.defineProperty(exports, "setDOMParserOptions", { enumerable: true, get: function () { return api_js_1.setDOMParserOptions; } });
|
|
65
55
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB;AAClB,qEAAqG;AAmBnG,2BAnBK,uBAAgB,CAmBL;AAChB,yGApB6C,gCAAwB,OAoB7C;AAnB1B,mEAAiG;AAoB/F,0BApBK,sBAAe,CAoBL;AACf,wGArB2C,8BAAuB,OAqB3C;AAnBzB,yDAA+D;AAAtD,+HAAA,OAAO,OAAe;AAC/B,uDAA6D;AAApD,6HAAA,OAAO,OAAc;AAC9B,+CAAsD;AAA7C,sHAAA,OAAO,OAAW;AAC3B,+CAAsD;AAA7C,sHAAA,OAAO,OAAW;AAC3B,UAAU;AACV,wCAAwC;AACxC,wDAA0C;AAOxC,8BAAS;AANX,8DAAgD;AAO9C,8BAAS;AALX,0CAA0C;AAC1C,yCAAuE;AAWrE,mGAXO,2BAAkB,OAWP;AAClB,oGAZ2B,4BAAmB,OAY3B"}
|
package/build/src/api.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getContext =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function setDOMParserOptions(options = {}) {
|
|
22
|
-
context.dom = new xmldom_1.DOMParser(options);
|
|
23
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setDOMParserOptions = exports.setSchemaValidator = exports.getContext = void 0;
|
|
4
|
+
const xmldom_1 = require("@xmldom/xmldom");
|
|
5
|
+
const context = {
|
|
6
|
+
validate: undefined,
|
|
7
|
+
dom: new xmldom_1.DOMParser()
|
|
8
|
+
};
|
|
9
|
+
function getContext() {
|
|
10
|
+
return context;
|
|
11
|
+
}
|
|
12
|
+
exports.getContext = getContext;
|
|
13
|
+
function setSchemaValidator(params) {
|
|
14
|
+
if (typeof params.validate !== 'function') {
|
|
15
|
+
throw new Error('validate must be a callback function having one argument as xml input');
|
|
16
|
+
}
|
|
17
|
+
// assign the validate function to the context
|
|
18
|
+
context.validate = params.validate;
|
|
19
|
+
}
|
|
20
|
+
exports.setSchemaValidator = setSchemaValidator;
|
|
21
|
+
function setDOMParserOptions(options = {}) {
|
|
22
|
+
context.dom = new xmldom_1.DOMParser(options);
|
|
23
|
+
}
|
|
24
|
+
exports.setDOMParserOptions = setDOMParserOptions;
|
|
24
25
|
//# sourceMappingURL=api.js.map
|
package/build/src/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;;AAAA,2CAA+E;AAa/E,MAAM,OAAO,GAAY;IACvB,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,IAAI,kBAAG,EAAE;CACf,CAAC;AAEF,SAAgB,UAAU;IACxB,OAAO,OAAO,CAAC;AACjB,CAAC;AAFD,gCAEC;AAED,SAAgB,kBAAkB,CAAC,MAAwB;IAEzD,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,UAAU,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;KAC1F;IAED,8CAA8C;IAC9C,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAErC,CAAC;AATD,gDASC;AAED,SAAgB,mBAAmB,CAAC,UAA4B,EAAE;IAChE,OAAO,CAAC,GAAG,GAAG,IAAI,kBAAG,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC;AAFD,kDAEC"}
|