@atom8n/n8n 2.4.7 → 2.5.1

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.
Files changed (231) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/chat/chat-service.types.d.ts +6 -6
  3. package/dist/commands/execute-batch.d.ts +2 -2
  4. package/dist/commands/execute.js +0 -0
  5. package/dist/commands/import/credentials.d.ts +2 -2
  6. package/dist/commands/import/credentials.js +0 -0
  7. package/dist/commands/import/workflow.d.ts +2 -2
  8. package/dist/commands/ldap/reset.d.ts +2 -2
  9. package/dist/commands/mcp.d.ts +23 -0
  10. package/dist/commands/mcp.js +315 -0
  11. package/dist/commands/run.d.ts +23 -0
  12. package/dist/commands/run.js +162 -0
  13. package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
  14. package/dist/controllers/cli.controller.d.ts +26 -0
  15. package/dist/controllers/cli.controller.js +334 -0
  16. package/dist/controllers/orchestration.controller.js +0 -0
  17. package/dist/controllers/users.controller.d.ts +1 -1
  18. package/dist/environments.ee/source-control/source-control-status.service.ee.d.ts +2 -2
  19. package/dist/environments.ee/source-control/source-control.controller.ee.d.ts +4 -4
  20. package/dist/environments.ee/source-control/source-control.service.ee.d.ts +2 -2
  21. package/dist/environments.ee/source-control/types/source-control-set-branch.js +0 -0
  22. package/dist/eventbus/event-message-classes/index.js +0 -0
  23. package/dist/events/relays/workflow-failure-notification.event-relay.d.ts +13 -0
  24. package/dist/events/relays/workflow-failure-notification.event-relay.js +77 -0
  25. package/dist/executions/execution-data/types.d.ts +17 -0
  26. package/dist/executions/execution-data/types.js +2 -0
  27. package/dist/executions/failed-run-factory.d.ts +4 -0
  28. package/dist/executions/failed-run-factory.js +71 -0
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +8 -0
  31. package/dist/interfaces.d.ts +1 -1
  32. package/dist/license.js +1 -1
  33. package/dist/middlewares/webview-frame-options.d.ts +2 -0
  34. package/dist/middlewares/webview-frame-options.js +22 -0
  35. package/dist/modules/chat-hub/chat-hub-extractor.d.ts +22 -0
  36. package/dist/modules/chat-hub/chat-hub-extractor.js +63 -0
  37. package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-user-entry-storage.d.ts +11 -0
  38. package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-user-entry-storage.js +58 -0
  39. package/dist/modules/dynamic-credentials.ee/database/entities/dynamic-credential-user-entry.d.ts +12 -0
  40. package/dist/modules/dynamic-credentials.ee/database/entities/dynamic-credential-user-entry.js +64 -0
  41. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.d.ts +5 -0
  42. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js +25 -0
  43. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.d.ts +5 -0
  44. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js +36 -0
  45. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.d.ts +12 -0
  46. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js +69 -0
  47. package/dist/modules/dynamic-credentials.ee/services/resolver-config-expression.service.d.ts +7 -0
  48. package/dist/modules/dynamic-credentials.ee/services/resolver-config-expression.service.js +46 -0
  49. package/dist/modules/insights/database/entities/insights-metadata.js +1 -1
  50. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +4 -1
  51. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +1 -1
  52. package/dist/modules/insights/insights.module.d.ts +1 -1
  53. package/dist/modules/insights/insights.service.d.ts +1 -1
  54. package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.d.ts +6 -0
  55. package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.js +28 -0
  56. package/dist/modules/log-streaming.ee/database/entities/index.d.ts +1 -0
  57. package/dist/modules/log-streaming.ee/database/entities/index.js +5 -0
  58. package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.d.ts +5 -0
  59. package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.js +25 -0
  60. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.d.ts +4 -0
  61. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.js +24 -0
  62. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.d.ts +17 -0
  63. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js +131 -0
  64. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-syslog.ee.d.ts +22 -0
  65. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-syslog.ee.js +116 -0
  66. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.d.ts +35 -0
  67. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +328 -0
  68. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.d.ts +28 -0
  69. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.js +74 -0
  70. package/dist/modules/log-streaming.ee/log-streaming-destination.service.d.ts +32 -0
  71. package/dist/modules/log-streaming.ee/log-streaming-destination.service.js +175 -0
  72. package/dist/modules/log-streaming.ee/log-streaming.controller.d.ts +15 -0
  73. package/dist/modules/log-streaming.ee/log-streaming.controller.js +149 -0
  74. package/dist/modules/log-streaming.ee/log-streaming.module.d.ts +5 -0
  75. package/dist/modules/log-streaming.ee/log-streaming.module.js +66 -0
  76. package/dist/modules/mcp/mcp-oauth.helpers.js +0 -0
  77. package/dist/modules/mcp/mcp.oauth-clients.controller.js +0 -0
  78. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +10 -10
  79. package/dist/modules/mcp/tools/schemas.d.ts +10 -10
  80. package/dist/modules/source-control.ee/constants.d.ts +17 -0
  81. package/dist/modules/source-control.ee/constants.js +22 -0
  82. package/dist/modules/source-control.ee/middleware/source-control-enabled-middleware.ee.d.ts +2 -0
  83. package/dist/modules/source-control.ee/middleware/source-control-enabled-middleware.ee.js +18 -0
  84. package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +37 -0
  85. package/dist/modules/source-control.ee/source-control-export.service.ee.js +426 -0
  86. package/dist/modules/source-control.ee/source-control-git.service.ee.d.ts +59 -0
  87. package/dist/modules/source-control.ee/source-control-git.service.ee.js +427 -0
  88. package/dist/modules/source-control.ee/source-control-helper.ee.d.ts +49 -0
  89. package/dist/modules/source-control.ee/source-control-helper.ee.js +241 -0
  90. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +110 -0
  91. package/dist/modules/source-control.ee/source-control-import.service.ee.js +957 -0
  92. package/dist/modules/source-control.ee/source-control-preferences.service.ee.d.ts +46 -0
  93. package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +309 -0
  94. package/dist/modules/source-control.ee/source-control-resource-helper.d.ts +4 -0
  95. package/dist/modules/source-control.ee/source-control-resource-helper.js +20 -0
  96. package/dist/modules/source-control.ee/source-control-scoped.service.d.ts +17 -0
  97. package/dist/modules/source-control.ee/source-control-scoped.service.js +134 -0
  98. package/dist/modules/source-control.ee/source-control-status.service.ee.d.ts +90 -0
  99. package/dist/modules/source-control.ee/source-control-status.service.ee.js +596 -0
  100. package/dist/modules/source-control.ee/source-control.config.d.ts +3 -0
  101. package/dist/modules/source-control.ee/source-control.config.js +26 -0
  102. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +157 -0
  103. package/dist/modules/source-control.ee/source-control.controller.ee.js +347 -0
  104. package/dist/modules/source-control.ee/source-control.module.d.ts +4 -0
  105. package/dist/modules/source-control.ee/source-control.module.js +59 -0
  106. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +125 -0
  107. package/dist/modules/source-control.ee/source-control.service.ee.js +466 -0
  108. package/dist/modules/source-control.ee/types/export-result.d.ts +10 -0
  109. package/dist/modules/source-control.ee/types/export-result.js +2 -0
  110. package/dist/modules/source-control.ee/types/exportable-credential.d.ts +14 -0
  111. package/dist/modules/source-control.ee/types/exportable-credential.js +2 -0
  112. package/dist/modules/source-control.ee/types/exportable-folders.d.ts +11 -0
  113. package/dist/modules/source-control.ee/types/exportable-folders.js +2 -0
  114. package/dist/modules/source-control.ee/types/exportable-project.d.ts +17 -0
  115. package/dist/modules/source-control.ee/types/exportable-project.js +2 -0
  116. package/dist/modules/source-control.ee/types/exportable-tags.d.ts +5 -0
  117. package/dist/modules/source-control.ee/types/exportable-tags.js +2 -0
  118. package/dist/modules/source-control.ee/types/exportable-variable.d.ts +7 -0
  119. package/dist/modules/source-control.ee/types/exportable-variable.js +2 -0
  120. package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +14 -0
  121. package/dist/modules/source-control.ee/types/exportable-workflow.js +2 -0
  122. package/dist/modules/source-control.ee/types/import-result.d.ts +20 -0
  123. package/dist/modules/source-control.ee/types/import-result.js +2 -0
  124. package/dist/modules/source-control.ee/types/key-pair-type.d.ts +1 -0
  125. package/dist/modules/source-control.ee/types/key-pair-type.js +2 -0
  126. package/dist/modules/source-control.ee/types/key-pair.d.ts +4 -0
  127. package/dist/modules/source-control.ee/types/key-pair.js +2 -0
  128. package/dist/modules/source-control.ee/types/requests.d.ts +21 -0
  129. package/dist/modules/source-control.ee/types/requests.js +2 -0
  130. package/dist/modules/source-control.ee/types/resource-owner.d.ts +17 -0
  131. package/dist/modules/source-control.ee/types/resource-owner.js +2 -0
  132. package/dist/modules/source-control.ee/types/source-control-commit.d.ts +3 -0
  133. package/dist/modules/source-control.ee/types/source-control-commit.js +20 -0
  134. package/dist/modules/source-control.ee/types/source-control-context.d.ts +7 -0
  135. package/dist/modules/source-control.ee/types/source-control-context.js +16 -0
  136. package/dist/modules/source-control.ee/types/source-control-disconnect.d.ts +3 -0
  137. package/dist/modules/source-control.ee/types/source-control-disconnect.js +21 -0
  138. package/dist/modules/source-control.ee/types/source-control-generate-key-pair.d.ts +4 -0
  139. package/dist/modules/source-control.ee/types/source-control-generate-key-pair.js +21 -0
  140. package/dist/modules/source-control.ee/types/source-control-get-status.d.ts +10 -0
  141. package/dist/modules/source-control.ee/types/source-control-get-status.js +42 -0
  142. package/dist/modules/source-control.ee/types/source-control-preferences.d.ts +17 -0
  143. package/dist/modules/source-control.ee/types/source-control-preferences.js +88 -0
  144. package/dist/modules/source-control.ee/types/source-control-push.d.ts +3 -0
  145. package/dist/modules/source-control.ee/types/source-control-push.js +21 -0
  146. package/dist/modules/source-control.ee/types/source-control-set-branch.d.ts +3 -0
  147. package/dist/modules/source-control.ee/types/source-control-set-branch.js +20 -0
  148. package/dist/modules/source-control.ee/types/source-control-set-read-only.d.ts +3 -0
  149. package/dist/modules/source-control.ee/types/source-control-set-read-only.js +20 -0
  150. package/dist/modules/source-control.ee/types/source-control-stage.d.ts +5 -0
  151. package/dist/modules/source-control.ee/types/source-control-stage.js +31 -0
  152. package/dist/modules/source-control.ee/types/source-control-workflow-version-id.d.ts +12 -0
  153. package/dist/modules/source-control.ee/types/source-control-workflow-version-id.js +2 -0
  154. package/dist/modules/sso-oidc/constants.d.ts +3 -0
  155. package/dist/modules/sso-oidc/constants.js +6 -0
  156. package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +23 -0
  157. package/dist/modules/sso-oidc/oidc.controller.ee.js +123 -0
  158. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +56 -0
  159. package/dist/modules/sso-oidc/oidc.service.ee.js +468 -0
  160. package/dist/modules/sso-oidc/sso-oidc.module.d.ts +4 -0
  161. package/dist/modules/sso-oidc/sso-oidc.module.js +55 -0
  162. package/dist/modules/sso-saml/constants.d.ts +3 -0
  163. package/dist/modules/sso-saml/constants.js +6 -0
  164. package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.d.ts +4 -0
  165. package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.js +10 -0
  166. package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.d.ts +4 -0
  167. package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.js +10 -0
  168. package/dist/modules/sso-saml/middleware/saml-enabled-middleware.d.ts +3 -0
  169. package/dist/modules/sso-saml/middleware/saml-enabled-middleware.js +22 -0
  170. package/dist/modules/sso-saml/saml-helpers.d.ts +19 -0
  171. package/dist/modules/sso-saml/saml-helpers.js +129 -0
  172. package/dist/modules/sso-saml/saml-validator.d.ts +16 -0
  173. package/dist/modules/sso-saml/saml-validator.js +129 -0
  174. package/dist/modules/sso-saml/saml.controller.ee.d.ts +50 -0
  175. package/dist/modules/sso-saml/saml.controller.ee.js +227 -0
  176. package/dist/modules/sso-saml/saml.service.ee.d.ts +52 -0
  177. package/dist/modules/sso-saml/saml.service.ee.js +462 -0
  178. package/dist/modules/sso-saml/schema/metadata-exchange.xsd.d.ts +2 -0
  179. package/dist/modules/sso-saml/schema/metadata-exchange.xsd.js +118 -0
  180. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.d.ts +2 -0
  181. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.js +201 -0
  182. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.d.ts +2 -0
  183. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.js +114 -0
  184. package/dist/modules/sso-saml/schema/saml-schema-assertion-2.0.xsd.d.ts +2 -0
  185. package/dist/modules/sso-saml/schema/saml-schema-assertion-2.0.xsd.js +289 -0
  186. package/dist/modules/sso-saml/schema/saml-schema-metadata-2.0.xsd.d.ts +2 -0
  187. package/dist/modules/sso-saml/schema/saml-schema-metadata-2.0.xsd.js +344 -0
  188. package/dist/modules/sso-saml/schema/saml-schema-protocol-2.0.xsd.d.ts +2 -0
  189. package/dist/modules/sso-saml/schema/saml-schema-protocol-2.0.xsd.js +308 -0
  190. package/dist/modules/sso-saml/schema/ws-addr.xsd.d.ts +2 -0
  191. package/dist/modules/sso-saml/schema/ws-addr.xsd.js +143 -0
  192. package/dist/modules/sso-saml/schema/ws-authorization.xsd.d.ts +2 -0
  193. package/dist/modules/sso-saml/schema/ws-authorization.xsd.js +151 -0
  194. package/dist/modules/sso-saml/schema/ws-federation.xsd.d.ts +2 -0
  195. package/dist/modules/sso-saml/schema/ws-federation.xsd.js +476 -0
  196. package/dist/modules/sso-saml/schema/ws-securitypolicy-1.2.xsd.d.ts +2 -0
  197. package/dist/modules/sso-saml/schema/ws-securitypolicy-1.2.xsd.js +1211 -0
  198. package/dist/modules/sso-saml/schema/xenc-schema.xsd.d.ts +2 -0
  199. package/dist/modules/sso-saml/schema/xenc-schema.xsd.js +151 -0
  200. package/dist/modules/sso-saml/schema/xml.xsd.d.ts +2 -0
  201. package/dist/modules/sso-saml/schema/xml.xsd.js +123 -0
  202. package/dist/modules/sso-saml/schema/xmldsig-core-schema.xsd.d.ts +2 -0
  203. package/dist/modules/sso-saml/schema/xmldsig-core-schema.xsd.js +324 -0
  204. package/dist/modules/sso-saml/service-provider.ee.d.ts +6 -0
  205. package/dist/modules/sso-saml/service-provider.ee.js +44 -0
  206. package/dist/modules/sso-saml/sso-saml.module.d.ts +4 -0
  207. package/dist/modules/sso-saml/sso-saml.module.js +55 -0
  208. package/dist/modules/sso-saml/types.d.ts +4 -0
  209. package/dist/modules/sso-saml/types.js +2 -0
  210. package/dist/modules/sso-saml/views/init-sso-post.d.ts +2 -0
  211. package/dist/modules/sso-saml/views/init-sso-post.js +16 -0
  212. package/dist/node-lib.d.ts +10 -0
  213. package/dist/node-lib.js +137 -0
  214. package/dist/push/index.d.ts +1 -1
  215. package/dist/server.d.ts +1 -0
  216. package/dist/server.js +1 -0
  217. package/dist/services/cors-service.d.ts +7 -0
  218. package/dist/services/cors-service.js +50 -0
  219. package/dist/services/static-auth-service.d.ts +4 -0
  220. package/dist/services/static-auth-service.js +29 -0
  221. package/dist/sso.ee/saml/schema/metadata-exchange.xsd.js +0 -0
  222. package/dist/task-runners/task-broker/errors/task-runner-accept-timeout.error.js +0 -0
  223. package/dist/typecheck.tsbuildinfo +1 -0
  224. package/dist/user-management/email/templates/workflow-failure.handlebars +211 -0
  225. package/dist/utils/cors.util.d.ts +2 -0
  226. package/dist/utils/cors.util.js +17 -0
  227. package/dist/webhooks/waiting-forms.js +3 -3
  228. package/dist/webhooks/waiting-webhooks.js +2 -0
  229. package/dist/workflows/workflow.service.d.ts +2 -2
  230. package/dist/workflows/workflows.controller.d.ts +6 -6
  231. package/package.json +22 -21
@@ -0,0 +1,2 @@
1
+ import type { XMLFileInfo } from 'xmllint-wasm';
2
+ export declare const xmlFileInfo: XMLFileInfo;
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.xmlFileInfo = void 0;
4
+ exports.xmlFileInfo = {
5
+ fileName: 'xenc-schema.xsd',
6
+ contents: `<?xml version="1.0" encoding="utf-8"?>
7
+ <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN"
8
+ "http://www.w3.org/2001/XMLSchema.dtd"
9
+ [
10
+ <!ATTLIST schema
11
+ xmlns:xenc CDATA #FIXED 'http://www.w3.org/2001/04/xmlenc#'
12
+ xmlns:ds CDATA #FIXED 'http://www.w3.org/2000/09/xmldsig#'>
13
+ <!ENTITY xenc 'http://www.w3.org/2001/04/xmlenc#'>
14
+ <!ENTITY % p ''>
15
+ <!ENTITY % s ''>
16
+ ]>
17
+
18
+ <schema xmlns='http://www.w3.org/2001/XMLSchema' version='1.0'
19
+ xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
20
+ xmlns:ds='http://www.w3.org/2000/09/xmldsig#'
21
+ targetNamespace='http://www.w3.org/2001/04/xmlenc#'
22
+ elementFormDefault='qualified'>
23
+
24
+ <import namespace='http://www.w3.org/2000/09/xmldsig#'
25
+ schemaLocation='xmldsig-core-schema.xsd'/>
26
+
27
+ <complexType name='EncryptedType' abstract='true'>
28
+ <sequence>
29
+ <element name='EncryptionMethod' type='xenc:EncryptionMethodType'
30
+ minOccurs='0'/>
31
+ <element ref='ds:KeyInfo' minOccurs='0'/>
32
+ <element ref='xenc:CipherData'/>
33
+ <element ref='xenc:EncryptionProperties' minOccurs='0'/>
34
+ </sequence>
35
+ <attribute name='Id' type='ID' use='optional'/>
36
+ <attribute name='Type' type='anyURI' use='optional'/>
37
+ <attribute name='MimeType' type='string' use='optional'/>
38
+ <attribute name='Encoding' type='anyURI' use='optional'/>
39
+ </complexType>
40
+
41
+ <complexType name='EncryptionMethodType' mixed='true'>
42
+ <sequence>
43
+ <element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/>
44
+ <element name='OAEPparams' minOccurs='0' type='base64Binary'/>
45
+ <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
46
+ </sequence>
47
+ <attribute name='Algorithm' type='anyURI' use='required'/>
48
+ </complexType>
49
+
50
+ <simpleType name='KeySizeType'>
51
+ <restriction base="integer"/>
52
+ </simpleType>
53
+
54
+ <element name='CipherData' type='xenc:CipherDataType'/>
55
+ <complexType name='CipherDataType'>
56
+ <choice>
57
+ <element name='CipherValue' type='base64Binary'/>
58
+ <element ref='xenc:CipherReference'/>
59
+ </choice>
60
+ </complexType>
61
+
62
+ <element name='CipherReference' type='xenc:CipherReferenceType'/>
63
+ <complexType name='CipherReferenceType'>
64
+ <choice>
65
+ <element name='Transforms' type='xenc:TransformsType' minOccurs='0'/>
66
+ </choice>
67
+ <attribute name='URI' type='anyURI' use='required'/>
68
+ </complexType>
69
+
70
+ <complexType name='TransformsType'>
71
+ <sequence>
72
+ <element ref='ds:Transform' maxOccurs='unbounded'/>
73
+ </sequence>
74
+ </complexType>
75
+
76
+
77
+ <element name='EncryptedData' type='xenc:EncryptedDataType'/>
78
+ <complexType name='EncryptedDataType'>
79
+ <complexContent>
80
+ <extension base='xenc:EncryptedType'>
81
+ </extension>
82
+ </complexContent>
83
+ </complexType>
84
+
85
+ <!-- Children of ds:KeyInfo -->
86
+
87
+ <element name='EncryptedKey' type='xenc:EncryptedKeyType'/>
88
+ <complexType name='EncryptedKeyType'>
89
+ <complexContent>
90
+ <extension base='xenc:EncryptedType'>
91
+ <sequence>
92
+ <element ref='xenc:ReferenceList' minOccurs='0'/>
93
+ <element name='CarriedKeyName' type='string' minOccurs='0'/>
94
+ </sequence>
95
+ <attribute name='Recipient' type='string'
96
+ use='optional'/>
97
+ </extension>
98
+ </complexContent>
99
+ </complexType>
100
+
101
+ <element name="AgreementMethod" type="xenc:AgreementMethodType"/>
102
+ <complexType name="AgreementMethodType" mixed="true">
103
+ <sequence>
104
+ <element name="KA-Nonce" minOccurs="0" type="base64Binary"/>
105
+ <!-- <element ref="ds:DigestMethod" minOccurs="0"/> -->
106
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
107
+ <element name="OriginatorKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
108
+ <element name="RecipientKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
109
+ </sequence>
110
+ <attribute name="Algorithm" type="anyURI" use="required"/>
111
+ </complexType>
112
+
113
+ <!-- End Children of ds:KeyInfo -->
114
+
115
+ <element name='ReferenceList'>
116
+ <complexType>
117
+ <choice minOccurs='1' maxOccurs='unbounded'>
118
+ <element name='DataReference' type='xenc:ReferenceType'/>
119
+ <element name='KeyReference' type='xenc:ReferenceType'/>
120
+ </choice>
121
+ </complexType>
122
+ </element>
123
+
124
+ <complexType name='ReferenceType'>
125
+ <sequence>
126
+ <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
127
+ </sequence>
128
+ <attribute name='URI' type='anyURI' use='required'/>
129
+ </complexType>
130
+
131
+
132
+ <element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/>
133
+ <complexType name='EncryptionPropertiesType'>
134
+ <sequence>
135
+ <element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/>
136
+ </sequence>
137
+ <attribute name='Id' type='ID' use='optional'/>
138
+ </complexType>
139
+
140
+ <element name='EncryptionProperty' type='xenc:EncryptionPropertyType'/>
141
+ <complexType name='EncryptionPropertyType' mixed='true'>
142
+ <choice maxOccurs='unbounded'>
143
+ <any namespace='##other' processContents='lax'/>
144
+ </choice>
145
+ <attribute name='Target' type='anyURI' use='optional'/>
146
+ <attribute name='Id' type='ID' use='optional'/>
147
+ <anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/>
148
+ </complexType>
149
+
150
+ </schema>`,
151
+ };
@@ -0,0 +1,2 @@
1
+ import type { XMLFileInfo } from 'xmllint-wasm';
2
+ export declare const xmlFileInfo: XMLFileInfo;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.xmlFileInfo = void 0;
4
+ exports.xmlFileInfo = {
5
+ fileName: 'xml.xsd',
6
+ contents: `<?xml version='1.0'?>
7
+ <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
8
+ <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
9
+
10
+ <xs:annotation>
11
+ <xs:documentation>
12
+ See http://www.w3.org/XML/1998/namespace.html and
13
+ http://www.w3.org/TR/REC-xml for information about this namespace.
14
+
15
+ This schema document describes the XML namespace, in a form
16
+ suitable for import by other schema documents.
17
+
18
+ Note that local names in this namespace are intended to be defined
19
+ only by the World Wide Web Consortium or its subgroups. The
20
+ following names are currently defined in this namespace and should
21
+ not be used with conflicting semantics by any Working Group,
22
+ specification, or document instance:
23
+
24
+ base (as an attribute name): denotes an attribute whose value
25
+ provides a URI to be used as the base for interpreting any
26
+ relative URIs in the scope of the element on which it
27
+ appears; its value is inherited. This name is reserved
28
+ by virtue of its definition in the XML Base specification.
29
+
30
+ lang (as an attribute name): denotes an attribute whose value
31
+ is a language code for the natural language of the content of
32
+ any element; its value is inherited. This name is reserved
33
+ by virtue of its definition in the XML specification.
34
+
35
+ space (as an attribute name): denotes an attribute whose
36
+ value is a keyword indicating what whitespace processing
37
+ discipline is intended for the content of the element; its
38
+ value is inherited. This name is reserved by virtue of its
39
+ definition in the XML specification.
40
+
41
+ Father (in any context at all): denotes Jon Bosak, the chair of
42
+ the original XML Working Group. This name is reserved by
43
+ the following decision of the W3C XML Plenary and
44
+ XML Coordination groups:
45
+
46
+ In appreciation for his vision, leadership and dedication
47
+ the W3C XML Plenary on this 10th day of February, 2000
48
+ reserves for Jon Bosak in perpetuity the XML name
49
+ xml:Father
50
+ </xs:documentation>
51
+ </xs:annotation>
52
+
53
+ <xs:annotation>
54
+ <xs:documentation>This schema defines attributes and an attribute group
55
+ suitable for use by
56
+ schemas wishing to allow xml:base, xml:lang or xml:space attributes
57
+ on elements they define.
58
+
59
+ To enable this, such a schema must import this schema
60
+ for the XML namespace, e.g. as follows:
61
+ &lt;schema . . .>
62
+ . . .
63
+ &lt;import namespace="http://www.w3.org/XML/1998/namespace"
64
+ schemaLocation="xml.xsd"/>
65
+
66
+ Subsequently, qualified reference to any of the attributes
67
+ or the group defined below will have the desired effect, e.g.
68
+
69
+ &lt;type . . .>
70
+ . . .
71
+ &lt;attributeGroup ref="xml:specialAttrs"/>
72
+
73
+ will define a type which will schema-validate an instance
74
+ element with any of those attributes</xs:documentation>
75
+ </xs:annotation>
76
+
77
+ <xs:annotation>
78
+ <xs:documentation>In keeping with the XML Schema WG's standard versioning
79
+ policy, this schema document will persist at
80
+ http://www.w3.org/2001/03/xml.xsd.
81
+ At the date of issue it can also be found at
82
+ http://www.w3.org/2001/xml.xsd.
83
+ The schema document at that URI may however change in the future,
84
+ in order to remain compatible with the latest version of XML Schema
85
+ itself. In other words, if the XML Schema namespace changes, the version
86
+ of this document at
87
+ http://www.w3.org/2001/xml.xsd will change
88
+ accordingly; the version at
89
+ http://www.w3.org/2001/03/xml.xsd will not change.
90
+ </xs:documentation>
91
+ </xs:annotation>
92
+
93
+ <xs:attribute name="lang" type="xs:language">
94
+ <xs:annotation>
95
+ <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
96
+ codes as the enumerated possible values . . .</xs:documentation>
97
+ </xs:annotation>
98
+ </xs:attribute>
99
+
100
+ <xs:attribute name="space" default="preserve">
101
+ <xs:simpleType>
102
+ <xs:restriction base="xs:NCName">
103
+ <xs:enumeration value="default"/>
104
+ <xs:enumeration value="preserve"/>
105
+ </xs:restriction>
106
+ </xs:simpleType>
107
+ </xs:attribute>
108
+
109
+ <xs:attribute name="base" type="xs:anyURI">
110
+ <xs:annotation>
111
+ <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
112
+ information about this attribute.</xs:documentation>
113
+ </xs:annotation>
114
+ </xs:attribute>
115
+
116
+ <xs:attributeGroup name="specialAttrs">
117
+ <xs:attribute ref="xml:base"/>
118
+ <xs:attribute ref="xml:lang"/>
119
+ <xs:attribute ref="xml:space"/>
120
+ </xs:attributeGroup>
121
+
122
+ </xs:schema>`,
123
+ };
@@ -0,0 +1,2 @@
1
+ import type { XMLFileInfo } from 'xmllint-wasm';
2
+ export declare const xmlFileInfo: XMLFileInfo;
@@ -0,0 +1,324 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.xmlFileInfo = void 0;
4
+ exports.xmlFileInfo = {
5
+ fileName: 'xmldsig-core-schema.xsd',
6
+ contents: `<?xml version="1.0" encoding="utf-8"?>
7
+ <!DOCTYPE schema
8
+ PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
9
+ [
10
+ <!ATTLIST schema
11
+ xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
12
+ <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
13
+ <!ENTITY % p ''>
14
+ <!ENTITY % s ''>
15
+ ]>
16
+
17
+ <!-- Schema for XML Signatures
18
+ http://www.w3.org/2000/09/xmldsig#
19
+ $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
20
+
21
+ Copyright 2001 The Internet Society and W3C (Massachusetts Institute
22
+ of Technology, Institut National de Recherche en Informatique et en
23
+ Automatique, Keio University). All Rights Reserved.
24
+ http://www.w3.org/Consortium/Legal/
25
+
26
+ This document is governed by the W3C Software License [1] as described
27
+ in the FAQ [2].
28
+
29
+ [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
30
+ [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
31
+ -->
32
+
33
+
34
+ <schema xmlns="http://www.w3.org/2001/XMLSchema"
35
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
36
+ targetNamespace="http://www.w3.org/2000/09/xmldsig#"
37
+ version="0.1" elementFormDefault="qualified">
38
+
39
+ <!-- Basic Types Defined for Signatures -->
40
+
41
+ <simpleType name="CryptoBinary">
42
+ <restriction base="base64Binary">
43
+ </restriction>
44
+ </simpleType>
45
+
46
+ <!-- Start Signature -->
47
+
48
+ <element name="Signature" type="ds:SignatureType"/>
49
+ <complexType name="SignatureType">
50
+ <sequence>
51
+ <element ref="ds:SignedInfo"/>
52
+ <element ref="ds:SignatureValue"/>
53
+ <element ref="ds:KeyInfo" minOccurs="0"/>
54
+ <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
55
+ </sequence>
56
+ <attribute name="Id" type="ID" use="optional"/>
57
+ </complexType>
58
+
59
+ <element name="SignatureValue" type="ds:SignatureValueType"/>
60
+ <complexType name="SignatureValueType">
61
+ <simpleContent>
62
+ <extension base="base64Binary">
63
+ <attribute name="Id" type="ID" use="optional"/>
64
+ </extension>
65
+ </simpleContent>
66
+ </complexType>
67
+
68
+ <!-- Start SignedInfo -->
69
+
70
+ <element name="SignedInfo" type="ds:SignedInfoType"/>
71
+ <complexType name="SignedInfoType">
72
+ <sequence>
73
+ <element ref="ds:CanonicalizationMethod"/>
74
+ <element ref="ds:SignatureMethod"/>
75
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
76
+ </sequence>
77
+ <attribute name="Id" type="ID" use="optional"/>
78
+ </complexType>
79
+
80
+ <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
81
+ <complexType name="CanonicalizationMethodType" mixed="true">
82
+ <sequence>
83
+ <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
84
+ <!-- (0,unbounded) elements from (1,1) namespace -->
85
+ </sequence>
86
+ <attribute name="Algorithm" type="anyURI" use="required"/>
87
+ </complexType>
88
+
89
+ <element name="SignatureMethod" type="ds:SignatureMethodType"/>
90
+ <complexType name="SignatureMethodType" mixed="true">
91
+ <sequence>
92
+ <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
93
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
94
+ <!-- (0,unbounded) elements from (1,1) external namespace -->
95
+ </sequence>
96
+ <attribute name="Algorithm" type="anyURI" use="required"/>
97
+ </complexType>
98
+
99
+ <!-- Start Reference -->
100
+
101
+ <element name="Reference" type="ds:ReferenceType"/>
102
+ <complexType name="ReferenceType">
103
+ <sequence>
104
+ <element ref="ds:Transforms" minOccurs="0"/>
105
+ <element ref="ds:DigestMethod"/>
106
+ <element ref="ds:DigestValue"/>
107
+ </sequence>
108
+ <attribute name="Id" type="ID" use="optional"/>
109
+ <attribute name="URI" type="anyURI" use="optional"/>
110
+ <attribute name="Type" type="anyURI" use="optional"/>
111
+ </complexType>
112
+
113
+ <element name="Transforms" type="ds:TransformsType"/>
114
+ <complexType name="TransformsType">
115
+ <sequence>
116
+ <element ref="ds:Transform" maxOccurs="unbounded"/>
117
+ </sequence>
118
+ </complexType>
119
+
120
+ <element name="Transform" type="ds:TransformType"/>
121
+ <complexType name="TransformType" mixed="true">
122
+ <choice minOccurs="0" maxOccurs="unbounded">
123
+ <any namespace="##other" processContents="lax"/>
124
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
125
+ <element name="XPath" type="string"/>
126
+ </choice>
127
+ <attribute name="Algorithm" type="anyURI" use="required"/>
128
+ </complexType>
129
+
130
+ <!-- End Reference -->
131
+
132
+ <element name="DigestMethod" type="ds:DigestMethodType"/>
133
+ <complexType name="DigestMethodType" mixed="true">
134
+ <sequence>
135
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
136
+ </sequence>
137
+ <attribute name="Algorithm" type="anyURI" use="required"/>
138
+ </complexType>
139
+
140
+ <element name="DigestValue" type="ds:DigestValueType"/>
141
+ <simpleType name="DigestValueType">
142
+ <restriction base="base64Binary"/>
143
+ </simpleType>
144
+
145
+ <!-- End SignedInfo -->
146
+
147
+ <!-- Start KeyInfo -->
148
+
149
+ <element name="KeyInfo" type="ds:KeyInfoType"/>
150
+ <complexType name="KeyInfoType" mixed="true">
151
+ <choice maxOccurs="unbounded">
152
+ <element ref="ds:KeyName"/>
153
+ <element ref="ds:KeyValue"/>
154
+ <element ref="ds:RetrievalMethod"/>
155
+ <element ref="ds:X509Data"/>
156
+ <element ref="ds:PGPData"/>
157
+ <element ref="ds:SPKIData"/>
158
+ <element ref="ds:MgmtData"/>
159
+ <any processContents="lax" namespace="##other"/>
160
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
161
+ </choice>
162
+ <attribute name="Id" type="ID" use="optional"/>
163
+ </complexType>
164
+
165
+ <element name="KeyName" type="string"/>
166
+ <element name="MgmtData" type="string"/>
167
+
168
+ <element name="KeyValue" type="ds:KeyValueType"/>
169
+ <complexType name="KeyValueType" mixed="true">
170
+ <choice>
171
+ <element ref="ds:DSAKeyValue"/>
172
+ <element ref="ds:RSAKeyValue"/>
173
+ <any namespace="##other" processContents="lax"/>
174
+ </choice>
175
+ </complexType>
176
+
177
+ <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
178
+ <complexType name="RetrievalMethodType">
179
+ <sequence>
180
+ <element ref="ds:Transforms" minOccurs="0"/>
181
+ </sequence>
182
+ <attribute name="URI" type="anyURI"/>
183
+ <attribute name="Type" type="anyURI" use="optional"/>
184
+ </complexType>
185
+
186
+ <!-- Start X509Data -->
187
+
188
+ <element name="X509Data" type="ds:X509DataType"/>
189
+ <complexType name="X509DataType">
190
+ <sequence maxOccurs="unbounded">
191
+ <choice>
192
+ <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
193
+ <element name="X509SKI" type="base64Binary"/>
194
+ <element name="X509SubjectName" type="string"/>
195
+ <element name="X509Certificate" type="base64Binary"/>
196
+ <element name="X509CRL" type="base64Binary"/>
197
+ <any namespace="##other" processContents="lax"/>
198
+ </choice>
199
+ </sequence>
200
+ </complexType>
201
+
202
+ <complexType name="X509IssuerSerialType">
203
+ <sequence>
204
+ <element name="X509IssuerName" type="string"/>
205
+ <element name="X509SerialNumber" type="integer"/>
206
+ </sequence>
207
+ </complexType>
208
+
209
+ <!-- End X509Data -->
210
+
211
+ <!-- Begin PGPData -->
212
+
213
+ <element name="PGPData" type="ds:PGPDataType"/>
214
+ <complexType name="PGPDataType">
215
+ <choice>
216
+ <sequence>
217
+ <element name="PGPKeyID" type="base64Binary"/>
218
+ <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
219
+ <any namespace="##other" processContents="lax" minOccurs="0"
220
+ maxOccurs="unbounded"/>
221
+ </sequence>
222
+ <sequence>
223
+ <element name="PGPKeyPacket" type="base64Binary"/>
224
+ <any namespace="##other" processContents="lax" minOccurs="0"
225
+ maxOccurs="unbounded"/>
226
+ </sequence>
227
+ </choice>
228
+ </complexType>
229
+
230
+ <!-- End PGPData -->
231
+
232
+ <!-- Begin SPKIData -->
233
+
234
+ <element name="SPKIData" type="ds:SPKIDataType"/>
235
+ <complexType name="SPKIDataType">
236
+ <sequence maxOccurs="unbounded">
237
+ <element name="SPKISexp" type="base64Binary"/>
238
+ <any namespace="##other" processContents="lax" minOccurs="0"/>
239
+ </sequence>
240
+ </complexType>
241
+
242
+ <!-- End SPKIData -->
243
+
244
+ <!-- End KeyInfo -->
245
+
246
+ <!-- Start Object (Manifest, SignatureProperty) -->
247
+
248
+ <element name="Object" type="ds:ObjectType"/>
249
+ <complexType name="ObjectType" mixed="true">
250
+ <sequence minOccurs="0" maxOccurs="unbounded">
251
+ <any namespace="##any" processContents="lax"/>
252
+ </sequence>
253
+ <attribute name="Id" type="ID" use="optional"/>
254
+ <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
255
+ <attribute name="Encoding" type="anyURI" use="optional"/>
256
+ </complexType>
257
+
258
+ <element name="Manifest" type="ds:ManifestType"/>
259
+ <complexType name="ManifestType">
260
+ <sequence>
261
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
262
+ </sequence>
263
+ <attribute name="Id" type="ID" use="optional"/>
264
+ </complexType>
265
+
266
+ <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
267
+ <complexType name="SignaturePropertiesType">
268
+ <sequence>
269
+ <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
270
+ </sequence>
271
+ <attribute name="Id" type="ID" use="optional"/>
272
+ </complexType>
273
+
274
+ <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
275
+ <complexType name="SignaturePropertyType" mixed="true">
276
+ <choice maxOccurs="unbounded">
277
+ <any namespace="##other" processContents="lax"/>
278
+ <!-- (1,1) elements from (1,unbounded) namespaces -->
279
+ </choice>
280
+ <attribute name="Target" type="anyURI" use="required"/>
281
+ <attribute name="Id" type="ID" use="optional"/>
282
+ </complexType>
283
+
284
+ <!-- End Object (Manifest, SignatureProperty) -->
285
+
286
+ <!-- Start Algorithm Parameters -->
287
+
288
+ <simpleType name="HMACOutputLengthType">
289
+ <restriction base="integer"/>
290
+ </simpleType>
291
+
292
+ <!-- Start KeyValue Element-types -->
293
+
294
+ <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
295
+ <complexType name="DSAKeyValueType">
296
+ <sequence>
297
+ <sequence minOccurs="0">
298
+ <element name="P" type="ds:CryptoBinary"/>
299
+ <element name="Q" type="ds:CryptoBinary"/>
300
+ </sequence>
301
+ <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
302
+ <element name="Y" type="ds:CryptoBinary"/>
303
+ <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
304
+ <sequence minOccurs="0">
305
+ <element name="Seed" type="ds:CryptoBinary"/>
306
+ <element name="PgenCounter" type="ds:CryptoBinary"/>
307
+ </sequence>
308
+ </sequence>
309
+ </complexType>
310
+
311
+ <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
312
+ <complexType name="RSAKeyValueType">
313
+ <sequence>
314
+ <element name="Modulus" type="ds:CryptoBinary"/>
315
+ <element name="Exponent" type="ds:CryptoBinary"/>
316
+ </sequence>
317
+ </complexType>
318
+
319
+ <!-- End KeyValue Element-types -->
320
+
321
+ <!-- End Signature -->
322
+
323
+ </schema>`,
324
+ };
@@ -0,0 +1,6 @@
1
+ import type { SamlPreferences } from '@n8n/api-types';
2
+ import type { ServiceProviderInstance } from 'samlify';
3
+ export declare function getServiceProviderEntityId(): string;
4
+ export declare function getServiceProviderReturnUrl(): string;
5
+ export declare function getServiceProviderConfigTestReturnUrl(): string;
6
+ export declare function getServiceProviderInstance(prefs: SamlPreferences, samlify: typeof import('samlify')): ServiceProviderInstance;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getServiceProviderEntityId = getServiceProviderEntityId;
4
+ exports.getServiceProviderReturnUrl = getServiceProviderReturnUrl;
5
+ exports.getServiceProviderConfigTestReturnUrl = getServiceProviderConfigTestReturnUrl;
6
+ exports.getServiceProviderInstance = getServiceProviderInstance;
7
+ const di_1 = require("@n8n/di");
8
+ const url_service_1 = require("../../services/url.service");
9
+ let serviceProviderInstance;
10
+ function getServiceProviderEntityId() {
11
+ return di_1.Container.get(url_service_1.UrlService).getInstanceBaseUrl() + '/rest/sso/saml/metadata';
12
+ }
13
+ function getServiceProviderReturnUrl() {
14
+ return di_1.Container.get(url_service_1.UrlService).getInstanceBaseUrl() + '/rest/sso/saml/acs';
15
+ }
16
+ function getServiceProviderConfigTestReturnUrl() {
17
+ return di_1.Container.get(url_service_1.UrlService).getInstanceBaseUrl() + '/config/test/return';
18
+ }
19
+ function getServiceProviderInstance(prefs, samlify) {
20
+ if (serviceProviderInstance === undefined) {
21
+ serviceProviderInstance = samlify.ServiceProvider({
22
+ entityID: getServiceProviderEntityId(),
23
+ authnRequestsSigned: prefs.authnRequestsSigned,
24
+ wantAssertionsSigned: prefs.wantAssertionsSigned,
25
+ wantMessageSigned: prefs.wantMessageSigned,
26
+ signatureConfig: prefs.signatureConfig,
27
+ relayState: prefs.relayState,
28
+ nameIDFormat: ['urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'],
29
+ assertionConsumerService: [
30
+ {
31
+ isDefault: prefs.acsBinding === 'post',
32
+ Binding: 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
33
+ Location: getServiceProviderReturnUrl(),
34
+ },
35
+ {
36
+ isDefault: prefs.acsBinding === 'redirect',
37
+ Binding: 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-REDIRECT',
38
+ Location: getServiceProviderReturnUrl(),
39
+ },
40
+ ],
41
+ });
42
+ }
43
+ return serviceProviderInstance;
44
+ }
@@ -0,0 +1,4 @@
1
+ import type { ModuleInterface } from '@n8n/decorators';
2
+ export declare class SamlModule implements ModuleInterface {
3
+ init(): Promise<void>;
4
+ }