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.

@@ -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
- * @desc Generates the login response for developers to design their own method
22
- * @param sp object of service provider
23
- * @param requestInfo corresponding request, used to obtain the id
24
- * @param binding protocol binding
25
- * @param user current logged user (e.g. req.user)
26
- * @param customTagReplacement used when developers have their own login response template
27
- * @param encryptThenSign whether or not to encrypt then sign first (if signing)
28
- * @param relayState the relayState from corresponding request
29
- */
30
- createLoginResponse(sp: ServiceProvider, requestInfo: {
31
- [key: string]: any;
32
- }, binding: string, user: {
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
@@ -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): any[];
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)
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="TypeScriptCompiler">
4
- <option name="useTypesFromServer" value="true" />
5
- </component>
6
- </project>
@@ -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,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <includedPredefinedLibrary name="Node.js Core" />
5
- </component>
6
- </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
- &quot;customColor&quot;: &quot;&quot;,
15
- &quot;associatedIndex&quot;: 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
- &quot;keyToString&quot;: {
25
- &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
26
- &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
27
- &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
28
- &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
29
- &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
30
- &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
31
- &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
32
- &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
33
- &quot;ts.external.directory.path&quot;: &quot;D:\\software\\WebStorm 2022.3.3\\plugins\\javascript-plugin\\jsLanguageServicesImpl\\external&quot;,
34
- &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
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>