samlesa 2.12.5 → 2.12.7
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.
Potentially problematic release.
This version of samlesa might be problematic. Click here for more details.
- package/build/src/api.js.map +1 -1
- package/build/src/binding-post.js +4 -4
- package/build/src/binding-post.js.map +1 -1
- package/build/src/binding-redirect.js +2 -2
- package/build/src/binding-redirect.js.map +1 -1
- package/build/src/binding-simplesign.js +1 -1
- package/build/src/binding-simplesign.js.map +1 -1
- package/build/src/entity-idp.js +19 -17
- package/build/src/entity-idp.js.map +1 -1
- package/build/src/extractor.js +4 -20
- package/build/src/extractor.js.map +1 -1
- package/build/src/libsaml.js +12 -17
- package/build/src/libsaml.js.map +1 -1
- package/index.d.ts +10 -10
- package/index.js +18 -18
- package/package.json +8 -10
- package/qodana.yaml +29 -29
- package/src/api.ts +1 -1
- package/src/binding-post.ts +4 -4
- package/src/binding-redirect.ts +2 -2
- package/src/binding-simplesign.ts +1 -1
- package/src/entity-idp.ts +26 -20
- package/src/extractor.ts +5 -23
- package/src/libsaml.ts +16 -18
- package/types/src/api.d.ts +1 -1
- package/types/src/entity-idp.d.ts +12 -19
- package/types/src/libsaml.d.ts +1 -1
- package/.idea/compiler.xml +0 -6
- package/.idea/deployment.xml +0 -14
- package/.idea/jsLibraryMappings.xml +0 -6
- package/build/.idea/workspace.xml +0 -70
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file entity-idp.ts
|
|
3
|
-
* @author tngan
|
|
4
|
-
* @desc Declares the actions taken by identity provider
|
|
5
|
-
*/
|
|
6
1
|
import Entity, { ESamlHttpRequest } from './entity.js';
|
|
7
2
|
import { ServiceProviderConstructor as ServiceProvider, IdentityProviderMetadata, IdentityProviderSettings } from './types.js';
|
|
8
3
|
import { FlowResult } from './flow.js';
|
|
@@ -18,20 +13,18 @@ export declare class IdentityProvider extends Entity {
|
|
|
18
13
|
entityMeta: IdentityProviderMetadata;
|
|
19
14
|
constructor(idpSetting: IdentityProviderSettings);
|
|
20
15
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}, customTagReplacement?: (template: string) => BindingContext, encryptThenSign?: boolean, relayState?: string): Promise<any>;
|
|
16
|
+
* @desc Generates the login response for developers to design their own method
|
|
17
|
+
* @param params
|
|
18
|
+
*/
|
|
19
|
+
createLoginResponse(params: {
|
|
20
|
+
sp: ServiceProvider;
|
|
21
|
+
requestInfo: Record<string, any>;
|
|
22
|
+
binding?: string;
|
|
23
|
+
user: Record<string, any>;
|
|
24
|
+
customTagReplacement?: (template: string) => BindingContext;
|
|
25
|
+
encryptThenSign?: boolean;
|
|
26
|
+
relayState?: string;
|
|
27
|
+
}): Promise<any>;
|
|
35
28
|
/**
|
|
36
29
|
* Validation of the parsed URL parameters
|
|
37
30
|
* @param sp ServiceProvider instance
|
package/types/src/libsaml.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ declare const _default: {
|
|
|
147
147
|
* - The first element is `true` if the signature is valid, `false` otherwise.
|
|
148
148
|
* - The second element is the cryptographically authenticated assertion node as a string, or `null` if not found.
|
|
149
149
|
*/
|
|
150
|
-
verifySignature(xml: string, opts: SignatureVerifierOptions):
|
|
150
|
+
verifySignature(xml: string, opts: SignatureVerifierOptions): (string | boolean)[] | (boolean | null)[];
|
|
151
151
|
/**
|
|
152
152
|
* @desc Helper function to create the key section in metadata (abstraction for signing and encrypt use)
|
|
153
153
|
* @param {string} use type of certificate (e.g. signing, encrypt)
|
package/.idea/compiler.xml
DELETED
package/.idea/deployment.xml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
|
4
|
-
<serverData>
|
|
5
|
-
<paths name="阿里云">
|
|
6
|
-
<serverdata>
|
|
7
|
-
<mappings>
|
|
8
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
|
9
|
-
</mappings>
|
|
10
|
-
</serverdata>
|
|
11
|
-
</paths>
|
|
12
|
-
</serverData>
|
|
13
|
-
</component>
|
|
14
|
-
</project>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AutoImportSettings">
|
|
4
|
-
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="bd9fb792-e752-426e-b2f5-6b9b9086ce24" name="更改" comment="" />
|
|
8
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
9
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
11
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="ProjectColorInfo">{
|
|
14
|
-
"customColor": "",
|
|
15
|
-
"associatedIndex": 8
|
|
16
|
-
}</component>
|
|
17
|
-
<component name="ProjectId" id="2x1xvhQuH75Qdyg5ofvvmYeuJj5" />
|
|
18
|
-
<component name="ProjectViewState">
|
|
19
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
20
|
-
<option name="showExcludedFiles" value="false" />
|
|
21
|
-
<option name="showLibraryContents" value="true" />
|
|
22
|
-
</component>
|
|
23
|
-
<component name="PropertiesComponent">{
|
|
24
|
-
"keyToString": {
|
|
25
|
-
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
26
|
-
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
27
|
-
"ignore.virus.scanning.warn.message": "true",
|
|
28
|
-
"node.js.detected.package.eslint": "true",
|
|
29
|
-
"node.js.detected.package.tslint": "true",
|
|
30
|
-
"node.js.selected.package.eslint": "(autodetect)",
|
|
31
|
-
"node.js.selected.package.tslint": "(autodetect)",
|
|
32
|
-
"nodejs_package_manager_path": "npm",
|
|
33
|
-
"ts.external.directory.path": "D:\\software\\WebStorm 2022.3.3\\plugins\\javascript-plugin\\jsLanguageServicesImpl\\external",
|
|
34
|
-
"vue.rearranger.settings.migration": "true"
|
|
35
|
-
}
|
|
36
|
-
}</component>
|
|
37
|
-
<component name="SharedIndexes">
|
|
38
|
-
<attachedChunks>
|
|
39
|
-
<set>
|
|
40
|
-
<option value="bundled-js-predefined-d6986cc7102b-f27c65a3e318-JavaScript-WS-251.23774.424" />
|
|
41
|
-
</set>
|
|
42
|
-
</attachedChunks>
|
|
43
|
-
</component>
|
|
44
|
-
<component name="TaskManager">
|
|
45
|
-
<task active="true" id="Default" summary="默认任务">
|
|
46
|
-
<changelist id="bd9fb792-e752-426e-b2f5-6b9b9086ce24" name="更改" comment="" />
|
|
47
|
-
<created>1747119613080</created>
|
|
48
|
-
<option name="number" value="Default" />
|
|
49
|
-
<option name="presentableId" value="Default" />
|
|
50
|
-
<updated>1747119613080</updated>
|
|
51
|
-
<workItem from="1747119614232" duration="2805000" />
|
|
52
|
-
<workItem from="1747184324711" duration="10000" />
|
|
53
|
-
</task>
|
|
54
|
-
<servers />
|
|
55
|
-
</component>
|
|
56
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
57
|
-
<option name="version" value="3" />
|
|
58
|
-
</component>
|
|
59
|
-
<component name="XDebuggerManager">
|
|
60
|
-
<breakpoint-manager>
|
|
61
|
-
<breakpoints>
|
|
62
|
-
<line-breakpoint enabled="true" type="javascript">
|
|
63
|
-
<url>file://$PROJECT_DIR$/src/utility.js</url>
|
|
64
|
-
<line>21</line>
|
|
65
|
-
<option name="timeStamp" value="1" />
|
|
66
|
-
</line-breakpoint>
|
|
67
|
-
</breakpoints>
|
|
68
|
-
</breakpoint-manager>
|
|
69
|
-
</component>
|
|
70
|
-
</project>
|