mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Merge remote-tracking branch 'origin/master' into ADO-2729/feature-set-field-default-value-of-added-node-based-on-previous
This commit is contained in:
commit
0f448102a0
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
|
@ -47,9 +47,7 @@
|
|||
"request": "launch",
|
||||
"skipFiles": ["<node_internals>/**"],
|
||||
"type": "node",
|
||||
"env": {
|
||||
// "N8N_PORT": "5679",
|
||||
},
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"outputCapture": "std",
|
||||
"killBehavior": "polite"
|
||||
},
|
||||
|
|
64
CHANGELOG.md
64
CHANGELOG.md
|
@ -1,3 +1,67 @@
|
|||
# [1.68.0](https://github.com/n8n-io/n8n/compare/n8n@1.67.0...n8n@1.68.0) (2024-11-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **AI Agent Node:** Throw better errors for non-tool agents when using structured tools ([#11582](https://github.com/n8n-io/n8n/issues/11582)) ([9b6123d](https://github.com/n8n-io/n8n/commit/9b6123dfb2648f880c7829211fa07666611ad0ea))
|
||||
* **Auto-fixing Output Parser Node:** Only run retry chain on parsing errors ([#11569](https://github.com/n8n-io/n8n/issues/11569)) ([21b31e4](https://github.com/n8n-io/n8n/commit/21b31e488ff6ab0bcf3c79edcd17b9e37d4c64a4))
|
||||
* **core:** Continue with error output reverse items in success branch ([#11684](https://github.com/n8n-io/n8n/issues/11684)) ([6d5ee83](https://github.com/n8n-io/n8n/commit/6d5ee832966fab96043b0d65697c059ced61d334))
|
||||
* **core:** Ensure task runner server closes websocket connection correctly ([#11633](https://github.com/n8n-io/n8n/issues/11633)) ([b496bf3](https://github.com/n8n-io/n8n/commit/b496bf3147d2cd873d24371be02cb7ea5dbd8621))
|
||||
* **core:** Handle websocket connection error more gracefully in task runners ([#11635](https://github.com/n8n-io/n8n/issues/11635)) ([af7d6e6](https://github.com/n8n-io/n8n/commit/af7d6e68d0436ff8a3d4e8410dc8ee4f3a035c44))
|
||||
* **core:** Improve model sub-nodes error handling ([#11418](https://github.com/n8n-io/n8n/issues/11418)) ([57467d0](https://github.com/n8n-io/n8n/commit/57467d0285d67509322630c4c01130022f274a41))
|
||||
* **core:** Make push work for waiting webhooks ([#11678](https://github.com/n8n-io/n8n/issues/11678)) ([600479b](https://github.com/n8n-io/n8n/commit/600479bf36ba8870d4aecacad19a2dc5f2d97959))
|
||||
* **core:** Revert all the context helpers changes ([#11616](https://github.com/n8n-io/n8n/issues/11616)) ([20fd38f](https://github.com/n8n-io/n8n/commit/20fd38f3517f7ef35604ba16abb4d951270b4d50))
|
||||
* **core:** Set the authentication methad to `email` during startup if the SAML configuration in the database has been corrupted ([#11600](https://github.com/n8n-io/n8n/issues/11600)) ([6439291](https://github.com/n8n-io/n8n/commit/6439291738dec16261979d6d835acbc63743d51a))
|
||||
* **core:** Use cached value in retrieval of personal project owner ([#11533](https://github.com/n8n-io/n8n/issues/11533)) ([04029d8](https://github.com/n8n-io/n8n/commit/04029d82a11b52990890380ba7094055b18e7c1f))
|
||||
* Credentials save button is hidden unless you make changes to the ([#11492](https://github.com/n8n-io/n8n/issues/11492)) ([835fbfe](https://github.com/n8n-io/n8n/commit/835fbfe337dd8dc0d0b0318c7227e174484e1328))
|
||||
* **editor:** Add stickies to node insert position conflict check allowlist ([#11624](https://github.com/n8n-io/n8n/issues/11624)) ([fc39e3c](https://github.com/n8n-io/n8n/commit/fc39e3ca16231c176957e2504d55df6b416874fe))
|
||||
* **editor:** Adjust Scrollbar Width of RunData Header Row ([#11561](https://github.com/n8n-io/n8n/issues/11561)) ([d17d76a](https://github.com/n8n-io/n8n/commit/d17d76a85d5425bc091d29fc84605ffbccbca984))
|
||||
* **editor:** Cap NDV Output View Tab Index to prevent rare edge case ([#11614](https://github.com/n8n-io/n8n/issues/11614)) ([a6c8ee4](https://github.com/n8n-io/n8n/commit/a6c8ee4a82e6055766dc1307f79c774c17bb5f4d))
|
||||
* **editor:** Do not show hover tooltip when autocomplete is active ([#11653](https://github.com/n8n-io/n8n/issues/11653)) ([23caf43](https://github.com/n8n-io/n8n/commit/23caf43e30342a21d45c825f438aa1e6193601d1))
|
||||
* **editor:** Enable pinning main output with error and always allow unpinning ([#11452](https://github.com/n8n-io/n8n/issues/11452)) ([40c8882](https://github.com/n8n-io/n8n/commit/40c88822acdcda6401bd92b9cf89d013c44b8453))
|
||||
* **editor:** Fix collapsing nested items in expression modal schema view ([#11645](https://github.com/n8n-io/n8n/issues/11645)) ([41dea52](https://github.com/n8n-io/n8n/commit/41dea522fbfb1c9acee51f47f384973914454b5f))
|
||||
* **editor:** Fix default workflow settings ([#11632](https://github.com/n8n-io/n8n/issues/11632)) ([658568e](https://github.com/n8n-io/n8n/commit/658568e2700bfd5b61da53f3052403d0098c2d90))
|
||||
* **editor:** Fix duplicate chat trigger ([#11693](https://github.com/n8n-io/n8n/issues/11693)) ([a025848](https://github.com/n8n-io/n8n/commit/a025848ec4be96f74d4de2ab104256b6d89bb837))
|
||||
* **editor:** Fix hiding SQL query output when trying to select ([#11649](https://github.com/n8n-io/n8n/issues/11649)) ([4dbf2f4](https://github.com/n8n-io/n8n/commit/4dbf2f4256111985b367030020f1494b8a8b95af))
|
||||
* **editor:** Fix scrolling in code edit modal ([#11647](https://github.com/n8n-io/n8n/issues/11647)) ([8f695f3](https://github.com/n8n-io/n8n/commit/8f695f3417820e7b9bb04b78972f6abbd61abbe8))
|
||||
* **editor:** Prevent error being thrown in RLC while loading ([#11676](https://github.com/n8n-io/n8n/issues/11676)) ([ca8cb45](https://github.com/n8n-io/n8n/commit/ca8cb455ba59831295c238afb11aeab6ad18428e))
|
||||
* **editor:** Prevent NodeCreator from swallowing AskAssistant enter event ([#11532](https://github.com/n8n-io/n8n/issues/11532)) ([db94f16](https://github.com/n8n-io/n8n/commit/db94f169fcd03983fc78a3b4c5e11543610825bf))
|
||||
* **editor:** Show node executing status shortly before switching to success on new canvas ([#11675](https://github.com/n8n-io/n8n/issues/11675)) ([b0ba24c](https://github.com/n8n-io/n8n/commit/b0ba24cbbc55cebc26e9f62ead7396c4c8fbd062))
|
||||
* **editor:** Show only error title and 'Open errored node' button; hide 'Ask Assistant' in root for sub-node errors ([#11573](https://github.com/n8n-io/n8n/issues/11573)) ([8cba100](https://github.com/n8n-io/n8n/commit/8cba1004888f60ca653ee069501c13b3cadcc561))
|
||||
* **Facebook Lead Ads Trigger Node:** Fix issue with optional fields ([#11692](https://github.com/n8n-io/n8n/issues/11692)) ([70d315b](https://github.com/n8n-io/n8n/commit/70d315b3d5b8f5f3e0f39527bba11e254a52028e))
|
||||
* **Google BigQuery Node:** Add item index to insert error ([#11702](https://github.com/n8n-io/n8n/issues/11702)) ([145d092](https://github.com/n8n-io/n8n/commit/145d0921b217bbd4b625beaacfa14429560bf51b))
|
||||
* **Google Drive Node:** Fix file upload for streams ([#11698](https://github.com/n8n-io/n8n/issues/11698)) ([770230f](https://github.com/n8n-io/n8n/commit/770230fbfe0b9e86527254e201c4602fbced94ff))
|
||||
* **In-Memory Vector Store Node:** Fix displaying execution data of connected embedding nodes ([#11701](https://github.com/n8n-io/n8n/issues/11701)) ([40ade15](https://github.com/n8n-io/n8n/commit/40ade151724f4af28a6ed959fd9363450ea711fd))
|
||||
* **Item List Output Parser Node:** Fix number of items parameter issue ([#11696](https://github.com/n8n-io/n8n/issues/11696)) ([01ebe9d](https://github.com/n8n-io/n8n/commit/01ebe9dd38629afbab954fb489f3ef2bb7ab5b34))
|
||||
* **n8n Form Node:** Find completion page ([#11674](https://github.com/n8n-io/n8n/issues/11674)) ([ed3ad6d](https://github.com/n8n-io/n8n/commit/ed3ad6d684597f7c4b7419dfa81d476e66f10eba))
|
||||
* **n8n Form Node:** Open form page if form trigger has pin data ([#11673](https://github.com/n8n-io/n8n/issues/11673)) ([f0492bd](https://github.com/n8n-io/n8n/commit/f0492bd3bb0d94802a2707fb1cf861313b6ea808))
|
||||
* **n8n Form Node:** Trigger page stack in waiting if error in workflow ([#11671](https://github.com/n8n-io/n8n/issues/11671)) ([94b5873](https://github.com/n8n-io/n8n/commit/94b5873248212a5500f02cf3c0d74df6f9d8fb26))
|
||||
* **n8n Form Trigger Node:** Checkboxes different sizes ([#11677](https://github.com/n8n-io/n8n/issues/11677)) ([c08d23c](https://github.com/n8n-io/n8n/commit/c08d23c00f01bb6fcb3b75f02e0338af375f9b32))
|
||||
* NDV search bugs ([#11613](https://github.com/n8n-io/n8n/issues/11613)) ([c32cf64](https://github.com/n8n-io/n8n/commit/c32cf644a6b8c21558e802449329877845de70b1))
|
||||
* **Notion Node:** Extract page url ([#11643](https://github.com/n8n-io/n8n/issues/11643)) ([cbdd535](https://github.com/n8n-io/n8n/commit/cbdd535fe0cb4e032ea82f008dcf35cc5f2264c2))
|
||||
* **Redis Chat Memory Node:** Respect the SSL flag from the credential ([#11689](https://github.com/n8n-io/n8n/issues/11689)) ([b5cbf75](https://github.com/n8n-io/n8n/commit/b5cbf7566d351d8a8e9972f13ff5867ff1c8d7d0))
|
||||
* **Supabase Node:** Reset query parameters in get many operation ([#11630](https://github.com/n8n-io/n8n/issues/11630)) ([7458229](https://github.com/n8n-io/n8n/commit/74582290c04d2dd32300b1a6c7715862ae837d34))
|
||||
* **Switch Node:** Maintain output connections ([#11162](https://github.com/n8n-io/n8n/issues/11162)) ([9bd79fc](https://github.com/n8n-io/n8n/commit/9bd79fceebc4453d0fe40ae5f628d5e31ff2b326))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **AI Transform Node:** Show warning for binary data ([#11560](https://github.com/n8n-io/n8n/issues/11560)) ([ddbb263](https://github.com/n8n-io/n8n/commit/ddbb263dce0fc458abc95d850217251bb49d2b83))
|
||||
* **core:** Make all http requests made with `httpRequestWithAuthentication` abortable ([#11704](https://github.com/n8n-io/n8n/issues/11704)) ([0d8aada](https://github.com/n8n-io/n8n/commit/0d8aada49005d6a6078e8460003a0de61a8f423c))
|
||||
* **editor:** Improve how we show default Agent prompt and Memory session parameters ([#11491](https://github.com/n8n-io/n8n/issues/11491)) ([565f8cd](https://github.com/n8n-io/n8n/commit/565f8cd8c78b534a50e272997d659d162fa86625))
|
||||
* **editor:** Improve workflow loading performance on new canvas ([#11629](https://github.com/n8n-io/n8n/issues/11629)) ([f1e2df7](https://github.com/n8n-io/n8n/commit/f1e2df7d0753aa0f33cf299100a063bf89cc8b35))
|
||||
* **editor:** Redesign Canvas Chat ([#11634](https://github.com/n8n-io/n8n/issues/11634)) ([a412ab7](https://github.com/n8n-io/n8n/commit/a412ab7ebfcd6aa9051a8ca36e34f1067102c998))
|
||||
* **editor:** Restrict when a ChatTrigger Node is added automatically ([#11523](https://github.com/n8n-io/n8n/issues/11523)) ([93a6f85](https://github.com/n8n-io/n8n/commit/93a6f858fa3eb53f8b48b2a3d6b7377279dd6ed1))
|
||||
* Github star button in-app ([#11695](https://github.com/n8n-io/n8n/issues/11695)) ([0fd684d](https://github.com/n8n-io/n8n/commit/0fd684d90c830f8b0aab12b7f78a1fa5619c62c9))
|
||||
* **Oura Node:** Update node for v2 api ([#11604](https://github.com/n8n-io/n8n/issues/11604)) ([3348fbb](https://github.com/n8n-io/n8n/commit/3348fbb1547c430ff8707b298640e3461d3f6536))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* **editor:** Add lint rules for optimization-friendly syntax ([#11681](https://github.com/n8n-io/n8n/issues/11681)) ([88295c7](https://github.com/n8n-io/n8n/commit/88295c70495ae3d017674d5745972a346fcbaf12))
|
||||
|
||||
|
||||
|
||||
# [1.67.0](https://github.com/n8n-io/n8n/compare/n8n@1.66.0...n8n@1.67.0) (2024-11-06)
|
||||
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ describe('Workflows', () => {
|
|||
});
|
||||
|
||||
it('should create multiple new workflows using add workflow button', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
[...Array(multipleWorkflowsCount).keys()].forEach(() => {
|
||||
cy.visit(WorkflowsPage.url);
|
||||
WorkflowsPage.getters.createWorkflowButton().click();
|
||||
|
@ -35,6 +36,7 @@ describe('Workflows', () => {
|
|||
});
|
||||
|
||||
it('should search for a workflow', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
// One Result
|
||||
WorkflowsPage.getters.searchBar().type('Empty State Card Workflow');
|
||||
WorkflowsPage.getters.workflowCards().should('have.length', 1);
|
||||
|
@ -60,6 +62,7 @@ describe('Workflows', () => {
|
|||
});
|
||||
|
||||
it('should delete all the workflows', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
WorkflowsPage.getters.workflowCards().should('have.length', multipleWorkflowsCount + 1);
|
||||
|
||||
WorkflowsPage.getters.workflowCards().each(($el) => {
|
||||
|
@ -75,6 +78,7 @@ describe('Workflows', () => {
|
|||
});
|
||||
|
||||
it('should respect tag querystring filter when listing workflows', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
WorkflowsPage.getters.newWorkflowButtonCard().click();
|
||||
|
||||
cy.createFixtureWorkflow('Test_workflow_2.json', getUniqueWorkflowName('My New Workflow'));
|
||||
|
|
|
@ -53,6 +53,7 @@ describe('Workflow tags', () => {
|
|||
});
|
||||
|
||||
it('should detach a tag inline by clicking on X on tag pill', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
wf.getters.createTagButton().click();
|
||||
wf.actions.addTags(TEST_TAGS);
|
||||
wf.getters.nthTagPill(1).click();
|
||||
|
@ -73,6 +74,7 @@ describe('Workflow tags', () => {
|
|||
});
|
||||
|
||||
it('should not show non existing tag as a selectable option', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
const NON_EXISTING_TAG = 'My Test Tag';
|
||||
|
||||
wf.getters.createTagButton().click();
|
||||
|
|
|
@ -514,6 +514,7 @@ describe('Execution', () => {
|
|||
});
|
||||
|
||||
it('should send proper payload for node rerun', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.createFixtureWorkflow('Multiple_trigger_node_rerun.json', 'Multiple trigger node rerun');
|
||||
|
||||
workflowPage.getters.zoomToFitButton().click();
|
||||
|
|
|
@ -101,6 +101,7 @@ describe('Workflow Executions', () => {
|
|||
});
|
||||
|
||||
it('should show workflow data in executions tab after hard reload and modify name and tags', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
executionsTab.actions.switchToExecutionsTab();
|
||||
checkMainHeaderELements();
|
||||
workflowPage.getters.saveButton().find('button').should('not.exist');
|
||||
|
|
|
@ -182,6 +182,7 @@ describe('Template credentials setup', () => {
|
|||
});
|
||||
|
||||
it('should fill credentials from workflow editor', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
templateCredentialsSetupPage.visitTemplateCredentialSetupPage(testTemplate.id);
|
||||
templateCredentialsSetupPage.getters.skipLink().click();
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ describe('Projects', { disableAutoLogin: true }, () => {
|
|||
let menuItems = cy.getByTestId('menu-item');
|
||||
|
||||
menuItems.filter('[class*=active_]').should('have.length', 1);
|
||||
menuItems.filter(':contains("Home")[class*=active_]').should('exist');
|
||||
menuItems.filter(':contains("Overview")[class*=active_]').should('exist');
|
||||
|
||||
projects.getMenuItems().first().click();
|
||||
|
||||
|
@ -222,7 +222,7 @@ describe('Projects', { disableAutoLogin: true }, () => {
|
|||
menuItems = cy.getByTestId('menu-item');
|
||||
|
||||
menuItems.filter('[class*=active_]').should('have.length', 1);
|
||||
menuItems.filter(':contains("Home")[class*=active_]').should('exist');
|
||||
menuItems.filter(':contains("Overview")[class*=active_]').should('exist');
|
||||
|
||||
workflowsPage.getters.workflowCards().should('have.length', 2).first().click();
|
||||
|
||||
|
@ -230,7 +230,7 @@ describe('Projects', { disableAutoLogin: true }, () => {
|
|||
cy.getByTestId('execute-workflow-button').should('be.visible');
|
||||
|
||||
menuItems = cy.getByTestId('menu-item');
|
||||
menuItems.filter(':contains("Home")[class*=active_]').should('not.exist');
|
||||
menuItems.filter(':contains("Overview")[class*=active_]').should('not.exist');
|
||||
|
||||
menuItems = cy.getByTestId('menu-item');
|
||||
menuItems.filter('[class*=active_]').should('have.length', 1);
|
||||
|
|
|
@ -36,6 +36,7 @@ describe('AI Assistant::enabled', () => {
|
|||
});
|
||||
|
||||
it('renders placeholder UI', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
aiAssistant.getters.askAssistantFloatingButton().should('be.visible');
|
||||
aiAssistant.getters.askAssistantFloatingButton().click();
|
||||
aiAssistant.getters.askAssistantChat().should('be.visible');
|
||||
|
|
|
@ -66,6 +66,7 @@ describe('NDV', () => {
|
|||
});
|
||||
|
||||
it('should disconect Switch outputs if rules order was changed', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.createFixtureWorkflow('NDV-test-switch_reorder.json', 'NDV test switch reorder');
|
||||
workflowPage.actions.zoomToFit();
|
||||
|
||||
|
@ -232,6 +233,7 @@ describe('NDV', () => {
|
|||
ndv.getters.outputPanel().find('[class*=_pagination]').should('exist');
|
||||
});
|
||||
it('should display large schema', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.createFixtureWorkflow(
|
||||
'Test_workflow_schema_test_pinned_data.json',
|
||||
'NDV test schema view 2',
|
||||
|
@ -718,6 +720,7 @@ describe('NDV', () => {
|
|||
});
|
||||
|
||||
it('Should open appropriate node creator after clicking on connection hint link', () => {
|
||||
cy.viewport(1920, 1080);
|
||||
const nodeCreator = new NodeCreator();
|
||||
const hintMapper = {
|
||||
Memory: 'AI Nodes',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-monorepo",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=20.15",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@n8n/chat",
|
||||
"version": "0.30.0",
|
||||
"version": "0.31.0",
|
||||
"scripts": {
|
||||
"dev": "pnpm run storybook",
|
||||
"build": "pnpm build:vite && pnpm build:bundle",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@n8n/config",
|
||||
"version": "1.17.0",
|
||||
"version": "1.18.0",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist .turbo",
|
||||
"dev": "pnpm watch",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@n8n/n8n-nodes-langchain",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@n8n/task-runner",
|
||||
"version": "1.5.0",
|
||||
"version": "1.6.0",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist .turbo",
|
||||
"start": "node dist/start.js",
|
||||
|
|
|
@ -48,7 +48,7 @@ It will download everything that is needed to start n8n.
|
|||
You can then access n8n by opening:
|
||||
[http://localhost:5678](http://localhost:5678)
|
||||
|
||||
**Note:** The minimum required version for Node.js is v14.15. Make sure to update Node.js to v14.15 or above.
|
||||
**Note:** The minimum required version for Node.js is v18. Make sure to update Node.js to v18 or above.
|
||||
|
||||
### Run with Docker
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"description": "n8n Workflow Automation Tool",
|
||||
"main": "dist/index",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
@ -35,6 +35,9 @@ export class TestDefinition extends WithTimestamps {
|
|||
})
|
||||
name: string;
|
||||
|
||||
@Column('text')
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* Relation to the workflow under test
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddDescriptionToTestDefinition1731404028106 implements ReversibleMigration {
|
||||
async up({ schemaBuilder: { addColumns, column } }: MigrationContext) {
|
||||
await addColumns('test_definition', [column('description').text]);
|
||||
}
|
||||
|
||||
async down({ schemaBuilder: { dropColumns } }: MigrationContext) {
|
||||
await dropColumns('test_definition', ['description']);
|
||||
}
|
||||
}
|
|
@ -69,6 +69,7 @@ import { SeparateExecutionCreationFromStart1727427440136 } from '../common/17274
|
|||
import { AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644 } from '../common/1728659839644-AddMissingPrimaryKeyOnAnnotationTagMapping';
|
||||
import { UpdateProcessedDataValueColumnToText1729607673464 } from '../common/1729607673464-UpdateProcessedDataValueColumnToText';
|
||||
import { CreateTestDefinitionTable1730386903556 } from '../common/1730386903556-CreateTestDefinitionTable';
|
||||
import { AddDescriptionToTestDefinition1731404028106 } from '../common/1731404028106-AddDescriptionToTestDefinition';
|
||||
|
||||
export const mysqlMigrations: Migration[] = [
|
||||
InitialMigration1588157391238,
|
||||
|
@ -140,4 +141,5 @@ export const mysqlMigrations: Migration[] = [
|
|||
AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644,
|
||||
UpdateProcessedDataValueColumnToText1729607673464,
|
||||
CreateTestDefinitionTable1730386903556,
|
||||
AddDescriptionToTestDefinition1731404028106,
|
||||
];
|
||||
|
|
|
@ -69,6 +69,7 @@ import { SeparateExecutionCreationFromStart1727427440136 } from '../common/17274
|
|||
import { AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644 } from '../common/1728659839644-AddMissingPrimaryKeyOnAnnotationTagMapping';
|
||||
import { UpdateProcessedDataValueColumnToText1729607673464 } from '../common/1729607673464-UpdateProcessedDataValueColumnToText';
|
||||
import { CreateTestDefinitionTable1730386903556 } from '../common/1730386903556-CreateTestDefinitionTable';
|
||||
import { AddDescriptionToTestDefinition1731404028106 } from '../common/1731404028106-AddDescriptionToTestDefinition';
|
||||
|
||||
export const postgresMigrations: Migration[] = [
|
||||
InitialMigration1587669153312,
|
||||
|
@ -140,4 +141,5 @@ export const postgresMigrations: Migration[] = [
|
|||
AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644,
|
||||
UpdateProcessedDataValueColumnToText1729607673464,
|
||||
CreateTestDefinitionTable1730386903556,
|
||||
AddDescriptionToTestDefinition1731404028106,
|
||||
];
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { AddDescriptionToTestDefinition1731404028106 as BaseMigration } from '../common/1731404028106-AddDescriptionToTestDefinition';
|
||||
|
||||
export class AddDescriptionToTestDefinition1731404028106 extends BaseMigration {
|
||||
transaction = false as const;
|
||||
}
|
|
@ -39,6 +39,7 @@ import { DropRoleMapping1705429061930 } from './1705429061930-DropRoleMapping';
|
|||
import { AddActivatedAtUserSetting1717498465931 } from './1717498465931-AddActivatedAtUserSetting';
|
||||
import { AddApiKeysTable1724951148974 } from './1724951148974-AddApiKeysTable';
|
||||
import { AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644 } from './1728659839644-AddMissingPrimaryKeyOnAnnotationTagMapping';
|
||||
import { AddDescriptionToTestDefinition1731404028106 } from './1731404028106-AddDescriptionToTestDefinition';
|
||||
import { UniqueWorkflowNames1620821879465 } from '../common/1620821879465-UniqueWorkflowNames';
|
||||
import { UpdateWorkflowCredentials1630330987096 } from '../common/1630330987096-UpdateWorkflowCredentials';
|
||||
import { AddNodeIds1658930531669 } from '../common/1658930531669-AddNodeIds';
|
||||
|
@ -134,6 +135,7 @@ const sqliteMigrations: Migration[] = [
|
|||
AddMissingPrimaryKeyOnAnnotationTagMapping1728659839644,
|
||||
UpdateProcessedDataValueColumnToText1729607673464,
|
||||
CreateTestDefinitionTable1730386903556,
|
||||
AddDescriptionToTestDefinition1731404028106,
|
||||
];
|
||||
|
||||
export { sqliteMigrations };
|
||||
|
|
|
@ -4,13 +4,16 @@ export const testDefinitionCreateRequestBodySchema = z
|
|||
.object({
|
||||
name: z.string().min(1).max(255),
|
||||
workflowId: z.string().min(1),
|
||||
description: z.string().optional(),
|
||||
evaluationWorkflowId: z.string().min(1).optional(),
|
||||
annotationTagId: z.string().min(1).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const testDefinitionPatchRequestBodySchema = z
|
||||
.object({
|
||||
name: z.string().min(1).max(255).optional(),
|
||||
description: z.string().optional(),
|
||||
evaluationWorkflowId: z.string().min(1).optional(),
|
||||
annotationTagId: z.string().min(1).optional(),
|
||||
})
|
||||
|
|
|
@ -26,6 +26,7 @@ export class TestDefinitionService {
|
|||
|
||||
private toEntityLike(attrs: {
|
||||
name?: string;
|
||||
description?: string;
|
||||
workflowId?: string;
|
||||
evaluationWorkflowId?: string;
|
||||
annotationTagId?: string;
|
||||
|
@ -41,6 +42,10 @@ export class TestDefinitionService {
|
|||
entity.name = attrs.name?.trim();
|
||||
}
|
||||
|
||||
if (attrs.description) {
|
||||
entity.description = attrs.description.trim();
|
||||
}
|
||||
|
||||
if (attrs.workflowId) {
|
||||
entity.workflow = {
|
||||
id: attrs.workflowId,
|
||||
|
|
352
packages/cli/src/sso/saml/__tests__/saml-validator.test.ts
Normal file
352
packages/cli/src/sso/saml/__tests__/saml-validator.test.ts
Normal file
|
@ -0,0 +1,352 @@
|
|||
import { Logger } from '@/logging/logger.service';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
|
||||
import { validateMetadata, validateResponse } from '../saml-validator';
|
||||
|
||||
describe('saml-validator', () => {
|
||||
mockInstance(Logger);
|
||||
|
||||
describe('validateMetadata', () => {
|
||||
test('successfully validates metadata containing ws federation tags', async () => {
|
||||
// ARRANGE
|
||||
const metadata = `<?xml version="1.0" encoding="utf-8"?>
|
||||
<EntityDescriptor ID="_1069c6df-0612-4058-ae4e-1987ca45431b"
|
||||
entityID="https://sts.windows.net/random-issuer/"
|
||||
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
|
||||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<SignedInfo>
|
||||
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
|
||||
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
|
||||
<Reference URI="#_1069c6df-0612-4058-ae4e-1987ca45431b">
|
||||
<Transforms>
|
||||
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
|
||||
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
|
||||
</Transforms>
|
||||
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
|
||||
<DigestValue>hoeupPMPzijHu6caNarGYjsG0eKm4DOFUhjo0bPo0Ls=</DigestValue>
|
||||
</Reference>
|
||||
</SignedInfo>
|
||||
<SignatureValue>
|
||||
DQnnT/5se4dqYN86R35MCdbyKVl64lGPLSIVrxFxrOQ9YRK1br7Z1Bt1/LQD4f92z+GwAl+9tZTWhuoy6OGHCV6LlqBEztW43KnlCKw6eaNg4/6NluzJ/XeknXYLURDnfFVyGbLQAYWGND4Qm8CUXO/GjGfWTZuArvrDDC36/2FA41jKXtf1InxGFx1Bbaskx3n3KCFFth/V9knbnc1zftEe022aQluPRoGccROOI4ZeLUFL6+1gYlxjx0gFIOTRiuvrzR765lHNrF7iZ4aD+XukqtkGEtxTkiLoB+Bnr8Fd7IF5rV5FKTZWSxo+ZFcLimrDGtFPItVrC/oKRc+MGA==</SignatureValue>
|
||||
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
||||
<ds:X509Data>
|
||||
<ds:X509Certificate>
|
||||
MIIC8DCCAdigAwIBAgIQf+iroClVKohAtsyk0Ne13TANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yNDExMTMxMDEwNTNaFw0yNzExMTMxMDEwNTNaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwE8Ad1OMQKfaHi6YrsEcmMNwIAQ86h7JmnuABf5xLNd27jaMF4FVxHbEtC/BYxtcmwld5zbkCVXQ6PT6VoeYIjHMVnptFXg15EGgjnqpxWsjLDQNoSdSQu8VhG+8Yb5M7KPt+UEZfsRZVrgqMjdSEMVrOzPMD8KMB7wnghYX6npcZhn7D5w/F9gVDpI1Um8M/FIUKYVSYFjky1i24WvKmcBf71mAacZp48Zuj5by/ELIb6gAjpW5xpd02smpLthy/Yo4XDIQQurFOfjqyZd8xAZu/SfPsbjtymWw59tgd9RdYISl6O/241kY9h6Ojtx6WShOVDi6q+bJrfj9Z8WKcQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCiVxiQ9KpjihliQzIW45YO0EvRJtoPtyVAh9RiSGozbTl4otfrUJf8nbRtj7iZBRuuW4rrtRAH5kDb+i1wNUUQED2Pl/l4x5cN0oBytP3GSymq6NJx1gUOBO1BrNY+c3r5yHOUyj5qpbw9UkqpG1AqQkLLeZqB/yVCyOBQT7SKTbXVYhGefFM/+6z0/rGsWZN5OF6/2NC06ws1v4In28Atgpg4XxFh5TL7rPMJ11ca5MN9lHJoIUsvls053eQBcd7vJneqzd904B6WtPld6KOJK4dzIt9edHzPhaz158awWwx3iHsMn1Y/T0WVy5/4ZTzxY/i4U3t1Yt8ktxewVJYT</ds:X509Certificate>
|
||||
</ds:X509Data>
|
||||
</ds:KeyInfo>
|
||||
</Signature>
|
||||
<RoleDescriptor xsi:type="fed:SecurityTokenServiceType"
|
||||
protocolSupportEnumeration="http://docs.oasis-open.org/wsfed/federation/200706"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706">
|
||||
<KeyDescriptor use="signing">
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<X509Data>
|
||||
<X509Certificate>
|
||||
MIIC8DCCAdigAwIBAgIQf+iroClVKohAtsyk0Ne13TANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yNDExMTMxMDEwNTNaFw0yNzExMTMxMDEwNTNaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwE8Ad1OMQKfaHi6YrsEcmMNwIAQ86h7JmnuABf5xLNd27jaMF4FVxHbEtC/BYxtcmwld5zbkCVXQ6PT6VoeYIjHMVnptFXg15EGgjnqpxWsjLDQNoSdSQu8VhG+8Yb5M7KPt+UEZfsRZVrgqMjdSEMVrOzPMD8KMB7wnghYX6npcZhn7D5w/F9gVDpI1Um8M/FIUKYVSYFjky1i24WvKmcBf71mAacZp48Zuj5by/ELIb6gAjpW5xpd02smpLthy/Yo4XDIQQurFOfjqyZd8xAZu/SfPsbjtymWw59tgd9RdYISl6O/241kY9h6Ojtx6WShOVDi6q+bJrfj9Z8WKcQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCiVxiQ9KpjihliQzIW45YO0EvRJtoPtyVAh9RiSGozbTl4otfrUJf8nbRtj7iZBRuuW4rrtRAH5kDb+i1wNUUQED2Pl/l4x5cN0oBytP3GSymq6NJx1gUOBO1BrNY+c3r5yHOUyj5qpbw9UkqpG1AqQkLLeZqB/yVCyOBQT7SKTbXVYhGefFM/+6z0/rGsWZN5OF6/2NC06ws1v4In28Atgpg4XxFh5TL7rPMJ11ca5MN9lHJoIUsvls053eQBcd7vJneqzd904B6WtPld6KOJK4dzIt9edHzPhaz158awWwx3iHsMn1Y/T0WVy5/4ZTzxY/i4U3t1Yt8ktxewVJYT</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</KeyDescriptor>
|
||||
<fed:ClaimTypesOffered>
|
||||
<auth:ClaimType Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Name</auth:DisplayName>
|
||||
<auth:Description>The mutable display name of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Subject</auth:DisplayName>
|
||||
<auth:Description>An immutable, globally unique, non-reusable identifier of the user that is
|
||||
unique to the application for which a token is issued.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Given Name</auth:DisplayName>
|
||||
<auth:Description>First name of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Surname</auth:DisplayName>
|
||||
<auth:Description>Last name of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/displayname"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Display Name</auth:DisplayName>
|
||||
<auth:Description>Display name of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/nickname"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Nick Name</auth:DisplayName>
|
||||
<auth:Description>Nick name of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType
|
||||
Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Authentication Instant</auth:DisplayName>
|
||||
<auth:Description>The time (UTC) when the user is authenticated to Windows Azure Active
|
||||
Directory.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType
|
||||
Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Authentication Method</auth:DisplayName>
|
||||
<auth:Description>The method that Windows Azure Active Directory uses to authenticate users.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/objectidentifier"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>ObjectIdentifier</auth:DisplayName>
|
||||
<auth:Description>Primary identifier for the user in the directory. Immutable, globally
|
||||
unique, non-reusable.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/tenantid"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>TenantId</auth:DisplayName>
|
||||
<auth:Description>Identifier for the user's tenant.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/identityprovider"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>IdentityProvider</auth:DisplayName>
|
||||
<auth:Description>Identity provider for the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Email</auth:DisplayName>
|
||||
<auth:Description>Email address of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/groups"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Groups</auth:DisplayName>
|
||||
<auth:Description>Groups of the user.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/accesstoken"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>External Access Token</auth:DisplayName>
|
||||
<auth:Description>Access token issued by external identity provider.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/expiration"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>External Access Token Expiration</auth:DisplayName>
|
||||
<auth:Description>UTC expiration time of access token issued by external identity provider.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/identity/claims/openid2_id"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>External OpenID 2.0 Identifier</auth:DisplayName>
|
||||
<auth:Description>OpenID 2.0 identifier issued by external identity provider.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/claims/groups.link"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>GroupsOverageClaim</auth:DisplayName>
|
||||
<auth:Description>Issued when number of user's group claims exceeds return limit.</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>Role Claim</auth:DisplayName>
|
||||
<auth:Description>Roles that the user or Service Principal is attached to</auth:Description>
|
||||
</auth:ClaimType>
|
||||
<auth:ClaimType Uri="http://schemas.microsoft.com/ws/2008/06/identity/claims/wids"
|
||||
xmlns:auth="http://docs.oasis-open.org/wsfed/authorization/200706">
|
||||
<auth:DisplayName>RoleTemplate Id Claim</auth:DisplayName>
|
||||
<auth:Description>Role template id of the Built-in Directory Roles that the user is a member
|
||||
of</auth:Description>
|
||||
</auth:ClaimType>
|
||||
</fed:ClaimTypesOffered>
|
||||
<fed:SecurityTokenServiceEndpoint>
|
||||
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
|
||||
<wsa:Address>https://login.microsoftonline.com/random-issuer/wsfed</wsa:Address>
|
||||
</wsa:EndpointReference>
|
||||
</fed:SecurityTokenServiceEndpoint>
|
||||
<fed:PassiveRequestorEndpoint>
|
||||
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
|
||||
<wsa:Address>https://login.microsoftonline.com/random-issuer/wsfed</wsa:Address>
|
||||
</wsa:EndpointReference>
|
||||
</fed:PassiveRequestorEndpoint>
|
||||
</RoleDescriptor>
|
||||
<RoleDescriptor xsi:type="fed:ApplicationServiceType"
|
||||
protocolSupportEnumeration="http://docs.oasis-open.org/wsfed/federation/200706"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706">
|
||||
<KeyDescriptor use="signing">
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<X509Data>
|
||||
<X509Certificate>
|
||||
MIIC8DCCAdigAwIBAgIQf+iroClVKohAtsyk0Ne13TANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yNDExMTMxMDEwNTNaFw0yNzExMTMxMDEwNTNaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwE8Ad1OMQKfaHi6YrsEcmMNwIAQ86h7JmnuABf5xLNd27jaMF4FVxHbEtC/BYxtcmwld5zbkCVXQ6PT6VoeYIjHMVnptFXg15EGgjnqpxWsjLDQNoSdSQu8VhG+8Yb5M7KPt+UEZfsRZVrgqMjdSEMVrOzPMD8KMB7wnghYX6npcZhn7D5w/F9gVDpI1Um8M/FIUKYVSYFjky1i24WvKmcBf71mAacZp48Zuj5by/ELIb6gAjpW5xpd02smpLthy/Yo4XDIQQurFOfjqyZd8xAZu/SfPsbjtymWw59tgd9RdYISl6O/241kY9h6Ojtx6WShOVDi6q+bJrfj9Z8WKcQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCiVxiQ9KpjihliQzIW45YO0EvRJtoPtyVAh9RiSGozbTl4otfrUJf8nbRtj7iZBRuuW4rrtRAH5kDb+i1wNUUQED2Pl/l4x5cN0oBytP3GSymq6NJx1gUOBO1BrNY+c3r5yHOUyj5qpbw9UkqpG1AqQkLLeZqB/yVCyOBQT7SKTbXVYhGefFM/+6z0/rGsWZN5OF6/2NC06ws1v4In28Atgpg4XxFh5TL7rPMJ11ca5MN9lHJoIUsvls053eQBcd7vJneqzd904B6WtPld6KOJK4dzIt9edHzPhaz158awWwx3iHsMn1Y/T0WVy5/4ZTzxY/i4U3t1Yt8ktxewVJYT</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</KeyDescriptor>
|
||||
<fed:TargetScopes>
|
||||
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
|
||||
<wsa:Address>https://sts.windows.net/random-issuer/</wsa:Address>
|
||||
</wsa:EndpointReference>
|
||||
</fed:TargetScopes>
|
||||
<fed:ApplicationServiceEndpoint>
|
||||
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
|
||||
<wsa:Address>https://login.microsoftonline.com/random-issuer/wsfed</wsa:Address>
|
||||
</wsa:EndpointReference>
|
||||
</fed:ApplicationServiceEndpoint>
|
||||
<fed:PassiveRequestorEndpoint>
|
||||
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
|
||||
<wsa:Address>https://login.microsoftonline.com/random-issuer/wsfed</wsa:Address>
|
||||
</wsa:EndpointReference>
|
||||
</fed:PassiveRequestorEndpoint>
|
||||
</RoleDescriptor>
|
||||
<IDPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
|
||||
<KeyDescriptor use="signing">
|
||||
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<X509Data>
|
||||
<X509Certificate>
|
||||
MIIC8DCCAdigAwIBAgIQf+iroClVKohAtsyk0Ne13TANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yNDExMTMxMDEwNTNaFw0yNzExMTMxMDEwNTNaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwE8Ad1OMQKfaHi6YrsEcmMNwIAQ86h7JmnuABf5xLNd27jaMF4FVxHbEtC/BYxtcmwld5zbkCVXQ6PT6VoeYIjHMVnptFXg15EGgjnqpxWsjLDQNoSdSQu8VhG+8Yb5M7KPt+UEZfsRZVrgqMjdSEMVrOzPMD8KMB7wnghYX6npcZhn7D5w/F9gVDpI1Um8M/FIUKYVSYFjky1i24WvKmcBf71mAacZp48Zuj5by/ELIb6gAjpW5xpd02smpLthy/Yo4XDIQQurFOfjqyZd8xAZu/SfPsbjtymWw59tgd9RdYISl6O/241kY9h6Ojtx6WShOVDi6q+bJrfj9Z8WKcQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCiVxiQ9KpjihliQzIW45YO0EvRJtoPtyVAh9RiSGozbTl4otfrUJf8nbRtj7iZBRuuW4rrtRAH5kDb+i1wNUUQED2Pl/l4x5cN0oBytP3GSymq6NJx1gUOBO1BrNY+c3r5yHOUyj5qpbw9UkqpG1AqQkLLeZqB/yVCyOBQT7SKTbXVYhGefFM/+6z0/rGsWZN5OF6/2NC06ws1v4In28Atgpg4XxFh5TL7rPMJ11ca5MN9lHJoIUsvls053eQBcd7vJneqzd904B6WtPld6KOJK4dzIt9edHzPhaz158awWwx3iHsMn1Y/T0WVy5/4ZTzxY/i4U3t1Yt8ktxewVJYT</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</KeyDescriptor>
|
||||
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
|
||||
Location="https://login.microsoftonline.com/random-issuer/saml2" />
|
||||
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
|
||||
Location="https://login.microsoftonline.com/random-issuer/saml2" />
|
||||
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
|
||||
Location="https://login.microsoftonline.com/random-issuer/saml2" />
|
||||
</IDPSSODescriptor>
|
||||
</EntityDescriptor>`;
|
||||
|
||||
// ACT
|
||||
const result = await validateMetadata(metadata);
|
||||
|
||||
// ASSERT
|
||||
expect(result).toBe(true);
|
||||
});
|
||||
|
||||
test('rejects invalid metadata', async () => {
|
||||
// ARRANGE
|
||||
// Invalid because required children are missing
|
||||
const metadata = `<?xml version="1.0" encoding="utf-8"?>
|
||||
<EntityDescriptor ID="_1069c6df-0612-4058-ae4e-1987ca45431b"
|
||||
entityID="https://sts.windows.net/random-issuer/"
|
||||
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
|
||||
</EntityDescriptor>`;
|
||||
|
||||
// ACT
|
||||
const result = await validateMetadata(metadata);
|
||||
|
||||
// ASSERT
|
||||
expect(result).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('validateResponse', () => {
|
||||
test('successfully validates response', async () => {
|
||||
// ARRANGE
|
||||
const response = `<samlp:Response ID="random_id" Version="2.0"
|
||||
IssueInstant="2024-11-13T14:58:00.371Z" Destination="random-url"
|
||||
InResponseTo="random_id"
|
||||
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
|
||||
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
|
||||
https://sts.windows.net/random-issuer/</Issuer>
|
||||
<samlp:Status>
|
||||
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
|
||||
</samlp:Status>
|
||||
<Assertion ID="_random_id" IssueInstant="2024-11-13T14:58:00.367Z"
|
||||
Version="2.0" xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
|
||||
<Issuer>https://sts.windows.net/random-issuer/</Issuer>
|
||||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
||||
<SignedInfo>
|
||||
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
|
||||
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
|
||||
<Reference URI="#_random_id">
|
||||
<Transforms>
|
||||
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
|
||||
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
|
||||
</Transforms>
|
||||
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
|
||||
<DigestValue>random_digest</DigestValue>
|
||||
</Reference>
|
||||
</SignedInfo>
|
||||
<SignatureValue>
|
||||
cmFuZG9tX3NpZ25hdHVyZQo=</SignatureValue>
|
||||
<KeyInfo>
|
||||
<X509Data>
|
||||
<X509Certificate>
|
||||
cmFuZG9tX3NpZ25hdHVyZQo=</X509Certificate>
|
||||
</X509Data>
|
||||
</KeyInfo>
|
||||
</Signature>
|
||||
<Subject>
|
||||
<NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">
|
||||
random_name_id</NameID>
|
||||
<SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
|
||||
<SubjectConfirmationData InResponseTo="random_id"
|
||||
NotOnOrAfter="2024-11-13T15:58:00.284Z"
|
||||
Recipient="random-url" />
|
||||
</SubjectConfirmation>
|
||||
</Subject>
|
||||
<Conditions NotBefore="2024-11-13T14:53:00.284Z" NotOnOrAfter="2024-11-13T15:58:00.284Z">
|
||||
<AudienceRestriction>
|
||||
<Audience>http://localhost:5678/rest/sso/saml/metadata</Audience>
|
||||
</AudienceRestriction>
|
||||
</Conditions>
|
||||
<AttributeStatement>
|
||||
<Attribute Name="http://schemas.microsoft.com/identity/claims/tenantid">
|
||||
<AttributeValue>random-issuer</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.microsoft.com/identity/claims/objectidentifier">
|
||||
<AttributeValue>4663f730-51c5-4490-a38a-19dda804865a</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.microsoft.com/identity/claims/displayname">
|
||||
<AttributeValue>Danny n8n</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.microsoft.com/identity/claims/identityprovider">
|
||||
<AttributeValue>mail</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname">
|
||||
<AttributeValue>Danny</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname">
|
||||
<AttributeValue>Martini</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress">
|
||||
<AttributeValue>danny@n8n.io</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name">
|
||||
<AttributeValue>random_name_id</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/firstname/firstname">
|
||||
<AttributeValue>Danny</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/lastname/lastname">
|
||||
<AttributeValue>Martini</AttributeValue>
|
||||
</Attribute>
|
||||
<Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn/upn">
|
||||
<AttributeValue>danny@n8n.io</AttributeValue>
|
||||
</Attribute>
|
||||
</AttributeStatement>
|
||||
<AuthnStatement AuthnInstant="2024-11-13T14:51:51.267Z"
|
||||
SessionIndex="_random_id">
|
||||
<AuthnContext>
|
||||
<AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Unspecified</AuthnContextClassRef>
|
||||
</AuthnContext>
|
||||
</AuthnStatement>
|
||||
</Assertion>
|
||||
</samlp:Response>`;
|
||||
|
||||
// ACT
|
||||
const result = await validateResponse(response);
|
||||
|
||||
// ASSERT
|
||||
expect(result).toBe(true);
|
||||
});
|
||||
|
||||
test('rejects invalidate response', async () => {
|
||||
// ARRANGE
|
||||
// Invalid because required children are missing
|
||||
const response = `<samlp:Response ID="random_id" Version="2.0"
|
||||
IssueInstant="2024-11-13T14:58:00.371Z" Destination="random-url"
|
||||
InResponseTo="random_id"
|
||||
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
|
||||
</samlp:Response>`;
|
||||
|
||||
// ACT
|
||||
const result = await validateResponse(response);
|
||||
|
||||
// ASSERT
|
||||
expect(result).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
|
@ -98,7 +98,7 @@ describe('SamlService', () => {
|
|||
expect(samlService.reset).toHaveBeenCalledTimes(0);
|
||||
});
|
||||
|
||||
test('does not call reset if no error is trown', async () => {
|
||||
test('does not call reset if no error is thrown', async () => {
|
||||
// ARRANGE
|
||||
jest.spyOn(samlService, 'reset');
|
||||
|
||||
|
|
|
@ -3,61 +3,36 @@ import type { XMLFileInfo } from 'xmllint-wasm';
|
|||
|
||||
import { Logger } from '@/logging/logger.service';
|
||||
|
||||
let xml: XMLFileInfo;
|
||||
let xmldsigCore: XMLFileInfo;
|
||||
let xmlXenc: XMLFileInfo;
|
||||
let xmlMetadata: XMLFileInfo;
|
||||
let xmlAssertion: XMLFileInfo;
|
||||
let xmlProtocol: XMLFileInfo;
|
||||
|
||||
let preload: XMLFileInfo[] = [];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
||||
let xmllintWasm: typeof import('xmllint-wasm') | undefined;
|
||||
|
||||
// dynamically load schema files
|
||||
async function loadSchemas(): Promise<void> {
|
||||
if (!xml || xml.contents === '') {
|
||||
Container.get(Logger).debug('Loading XML schema files for SAML validation into memory');
|
||||
const f = await import('./schema/xml.xsd');
|
||||
xml = {
|
||||
fileName: 'xml.xsd',
|
||||
contents: f.xsdXml,
|
||||
};
|
||||
}
|
||||
if (!xmldsigCore || xmldsigCore.contents === '') {
|
||||
const f = await import('./schema/xmldsig-core-schema.xsd');
|
||||
xmldsigCore = {
|
||||
fileName: 'xmldsig-core-schema.xsd',
|
||||
contents: f.xsdXmldsigCore,
|
||||
};
|
||||
}
|
||||
if (!xmlXenc || xmlXenc.contents === '') {
|
||||
const f = await import('./schema/xenc-schema.xsd');
|
||||
xmlXenc = {
|
||||
fileName: 'xenc-schema.xsd',
|
||||
contents: f.xsdXenc,
|
||||
};
|
||||
}
|
||||
if (!xmlMetadata || xmlMetadata.contents === '') {
|
||||
const f = await import('./schema/saml-schema-metadata-2.0.xsd');
|
||||
xmlMetadata = {
|
||||
fileName: 'saml-schema-metadata-2.0.xsd',
|
||||
contents: f.xsdSamlSchemaMetadata20,
|
||||
};
|
||||
}
|
||||
if (!xmlAssertion || xmlAssertion.contents === '') {
|
||||
const f = await import('./schema/saml-schema-assertion-2.0.xsd');
|
||||
xmlAssertion = {
|
||||
fileName: 'saml-schema-assertion-2.0.xsd',
|
||||
contents: f.xsdSamlSchemaAssertion20,
|
||||
};
|
||||
}
|
||||
if (!xmlProtocol || xmlProtocol.contents === '') {
|
||||
const f = await import('./schema/saml-schema-protocol-2.0.xsd');
|
||||
xmlProtocol = {
|
||||
fileName: 'saml-schema-protocol-2.0.xsd',
|
||||
contents: f.xsdSamlSchemaProtocol20,
|
||||
};
|
||||
}
|
||||
xmlProtocol = (await import('./schema/saml-schema-protocol-2.0.xsd')).xmlFileInfo;
|
||||
xmlMetadata = (await import('./schema/saml-schema-metadata-2.0.xsd')).xmlFileInfo;
|
||||
preload = (
|
||||
await Promise.all([
|
||||
// SAML
|
||||
import('./schema/saml-schema-assertion-2.0.xsd'),
|
||||
import('./schema/xmldsig-core-schema.xsd'),
|
||||
import('./schema/xenc-schema.xsd'),
|
||||
import('./schema/xml.xsd'),
|
||||
|
||||
// WS-Federation
|
||||
import('./schema/ws-federation.xsd'),
|
||||
import('./schema/oasis-200401-wss-wssecurity-secext-1.0.xsd'),
|
||||
import('./schema/oasis-200401-wss-wssecurity-utility-1.0.xsd'),
|
||||
import('./schema/ws-addr.xsd'),
|
||||
import('./schema/metadata-exchange.xsd'),
|
||||
import('./schema/ws-securitypolicy-1.2.xsd'),
|
||||
import('./schema/ws-authorization.xsd'),
|
||||
])
|
||||
).map((m) => m.xmlFileInfo);
|
||||
}
|
||||
|
||||
// dynamically load xmllint-wasm
|
||||
|
@ -82,7 +57,7 @@ export async function validateMetadata(metadata: string): Promise<boolean> {
|
|||
],
|
||||
extension: 'schema',
|
||||
schema: [xmlMetadata],
|
||||
preload: [xmlProtocol, xmlAssertion, xmldsigCore, xmlXenc, xml],
|
||||
preload: [xmlProtocol, ...preload],
|
||||
});
|
||||
if (validationResult?.valid) {
|
||||
logger.debug('SAML Metadata is valid');
|
||||
|
@ -118,7 +93,7 @@ export async function validateResponse(response: string): Promise<boolean> {
|
|||
],
|
||||
extension: 'schema',
|
||||
schema: [xmlProtocol],
|
||||
preload: [xmlMetadata, xmlAssertion, xmldsigCore, xmlXenc, xml],
|
||||
preload: [xmlMetadata, ...preload],
|
||||
});
|
||||
if (validationResult?.valid) {
|
||||
logger.debug('SAML Response is valid');
|
||||
|
|
117
packages/cli/src/sso/saml/schema/metadata-exchange.xsd.ts
Normal file
117
packages/cli/src/sso/saml/schema/metadata-exchange.xsd.ts
Normal file
|
@ -0,0 +1,117 @@
|
|||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'MetadataExchange.xsd',
|
||||
contents: `<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!--
|
||||
(c) 2004-2006 BEA Systems Inc., Computer Associates International, Inc.,
|
||||
International Business Machines Corporation, Microsoft Corporation,
|
||||
Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved.
|
||||
|
||||
Permission to copy and display the WS-MetadataExchange Specification
|
||||
(the "Specification"), in any medium without fee or royalty is hereby
|
||||
granted, provided that you include the following on ALL copies of the
|
||||
Specification that you make:
|
||||
|
||||
1. A link or URL to the Specification at this location.
|
||||
2. The copyright notice as shown in the Specification.
|
||||
|
||||
BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
|
||||
webMethods (collectively, the "Authors") each agree to grant you a
|
||||
license, under royalty-free and otherwise reasonable,
|
||||
non-discriminatory terms and conditions, to their respective essential
|
||||
patent claims that they deem necessary to implement the
|
||||
WS-MetadataExchange Specification.
|
||||
|
||||
THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
|
||||
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
|
||||
LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
|
||||
SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
|
||||
IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
|
||||
PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
||||
|
||||
THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
|
||||
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
|
||||
USE OR DISTRIBUTION OF THE SPECIFICATIONS.
|
||||
|
||||
The name and trademarks of the Authors may NOT be used in any manner,
|
||||
including advertising or publicity pertaining to the Specifications or
|
||||
their contents without specific, written prior permission. Title to
|
||||
copyright in the Specifications will at all times remain with the
|
||||
Authors.
|
||||
|
||||
No other rights are granted by implication, estoppel or otherwise.
|
||||
-->
|
||||
|
||||
<xs:schema
|
||||
targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
|
||||
xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'
|
||||
xmlns:wsa10='http://www.w3.org/2005/08/addressing'
|
||||
xmlns:wsa04='http://schemas.xmlsoap.org/ws/2004/08/addressing'
|
||||
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||
elementFormDefault='qualified'
|
||||
blockDefault='#all' >
|
||||
|
||||
<!-- Get Metadata request -->
|
||||
<xs:element name='GetMetadata' >
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref='tns:Dialect' minOccurs='0' />
|
||||
<xs:element ref='tns:Identifier' minOccurs='0' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name='Dialect' type='xs:anyURI' />
|
||||
<xs:element name='Identifier' type='xs:anyURI' />
|
||||
|
||||
<!-- Get Metadata response -->
|
||||
<xs:element name='Metadata' >
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref='tns:MetadataSection'
|
||||
minOccurs='0'
|
||||
maxOccurs='unbounded' />
|
||||
<xs:any namespace='##other' processContents='lax'
|
||||
minOccurs='0'
|
||||
maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name='MetadataSection' >
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:any namespace='##other' processContents='lax' />
|
||||
<xs:element ref='tns:MetadataReference' />
|
||||
<xs:element ref='tns:Location' />
|
||||
</xs:choice>
|
||||
<xs:attribute name='Dialect' type='xs:anyURI' use='required' />
|
||||
<xs:attribute name='Identifier' type='xs:anyURI' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<!--
|
||||
Ideally, the type of the MetadataReference would have been
|
||||
the union of wsa04:EndpointReferenceType and
|
||||
wsa10:EndpointReferenceType but unfortunately xs:union only
|
||||
works for simple types. As a result, we have to define
|
||||
the mex:MetadataReference using xs:any.
|
||||
-->
|
||||
|
||||
<xs:element name='MetadataReference'>
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs='1' maxOccurs='unbounded'
|
||||
processContents='lax' namespace='##other' />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name='Location'
|
||||
type='xs:anyURI' />
|
||||
</xs:schema>`,
|
||||
};
|
|
@ -0,0 +1,200 @@
|
|||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'oasis-200401-wss-wssecurity-secext-1.0.xsd',
|
||||
contents: `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
|
||||
OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
|
||||
Copyright © OASIS Open 2002-2004. All Rights Reserved.
|
||||
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
|
||||
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
|
||||
This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
-->
|
||||
<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all" version="0.2">
|
||||
<xsd:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" schemaLocation="oasis-200401-wss-wssecurity-utility-1.0.xsd"/>
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
||||
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
|
||||
<xsd:complexType name="AttributedString">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attribute ref="wsu:Id"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PasswordString">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="wsse:AttributedString">
|
||||
<xsd:attribute name="Type" type="xsd:anyURI"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EncodedString">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="wsse:AttributedString">
|
||||
<xsd:attribute name="EncodingType" type="xsd:anyURI"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UsernameTokenType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Username" type="wsse:AttributedString"/>
|
||||
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute ref="wsu:Id"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BinarySecurityTokenType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>A security token that is encoded in binary</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="wsse:EncodedString">
|
||||
<xsd:attribute name="ValueType" type="xsd:anyURI"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="KeyIdentifierType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>A security token key identifier</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="wsse:EncodedString">
|
||||
<xsd:attribute name="ValueType" type="xsd:anyURI"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<xsd:simpleType name="tUsage">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:list itemType="xsd:anyURI"/>
|
||||
</xsd:simpleType>
|
||||
<xsd:attribute name="Usage" type="tUsage">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:complexType name="ReferenceType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:attribute name="URI" type="xsd:anyURI"/>
|
||||
<xsd:attribute name="ValueType" type="xsd:anyURI"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EmbeddedType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:any processContents="lax"/>
|
||||
</xsd:choice>
|
||||
<xsd:attribute name="ValueType" type="xsd:anyURI"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="SecurityTokenReferenceType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This type is used reference a security token.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:any processContents="lax"/>
|
||||
</xsd:choice>
|
||||
<xsd:attribute ref="wsu:Id"/>
|
||||
<xsd:attribute ref="wsse:Usage"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="SecurityHeaderType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:sequence>
|
||||
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:any>
|
||||
</xsd:sequence>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TransformationParametersType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:sequence>
|
||||
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:any>
|
||||
</xsd:sequence>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:complexType>
|
||||
<xsd:element name="UsernameToken" type="wsse:UsernameTokenType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="Reference" type="wsse:ReferenceType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines a security token reference</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="Embedded" type="wsse:EmbeddedType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines a security token embedded reference</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines a key identifier reference</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="Security" type="wsse:SecurityHeaderType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="Password" type="wsse:PasswordString"/>
|
||||
<xsd:element name="Nonce" type="wsse:EncodedString"/>
|
||||
<xsd:simpleType name="FaultcodeEnum">
|
||||
<xsd:restriction base="xsd:QName">
|
||||
<xsd:enumeration value="wsse:UnsupportedSecurityToken"/>
|
||||
<xsd:enumeration value="wsse:UnsupportedAlgorithm"/>
|
||||
<xsd:enumeration value="wsse:InvalidSecurity"/>
|
||||
<xsd:enumeration value="wsse:InvalidSecurityToken"/>
|
||||
<xsd:enumeration value="wsse:FailedAuthentication"/>
|
||||
<xsd:enumeration value="wsse:FailedCheck"/>
|
||||
<xsd:enumeration value="wsse:SecurityTokenUnavailable"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
</xsd:schema>`,
|
||||
};
|
|
@ -0,0 +1,113 @@
|
|||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'oasis-200401-wss-wssecurity-utility-1.0.xsd',
|
||||
contents: `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
|
||||
OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
|
||||
Copyright © OASIS Open 2002-2004. All Rights Reserved.
|
||||
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
|
||||
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
|
||||
This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
-->
|
||||
<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
|
||||
|
||||
|
||||
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
|
||||
elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
|
||||
<!-- // Fault Codes /////////////////////////////////////////// -->
|
||||
<xsd:simpleType name="tTimestampFault">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This type defines the fault code value for Timestamp message expiration.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:restriction base="xsd:QName">
|
||||
<xsd:enumeration value="wsu:MessageExpired"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
<!-- // Global attributes //////////////////////////////////// -->
|
||||
<xsd:attribute name="Id" type="xsd:ID">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This global attribute supports annotating arbitrary elements with an ID.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attributeGroup name="commonAtts">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Convenience attribute group used to simplify this schema.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:attribute ref="wsu:Id" use="optional"/>
|
||||
<xsd:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xsd:attributeGroup>
|
||||
<!-- // Utility types //////////////////////////////////////// -->
|
||||
<xsd:complexType name="AttributedDateTime">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attributeGroup ref="wsu:commonAtts"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AttributedURI">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:anyURI">
|
||||
<xsd:attributeGroup ref="wsu:commonAtts"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
<!-- // Timestamp header components /////////////////////////// -->
|
||||
<xsd:complexType name="TimestampType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This complex type ties together the timestamp related elements into a composite type.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="wsu:Created" minOccurs="0"/>
|
||||
<xsd:element ref="wsu:Expires" minOccurs="0"/>
|
||||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:any namespace="##other" processContents="lax"/>
|
||||
</xsd:choice>
|
||||
</xsd:sequence>
|
||||
<xsd:attributeGroup ref="wsu:commonAtts"/>
|
||||
</xsd:complexType>
|
||||
<xsd:element name="Timestamp" type="wsu:TimestampType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This element allows Timestamps to be applied anywhere element wildcards are present,
|
||||
including as a SOAP header.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<!-- global element decls to allow individual elements to appear anywhere -->
|
||||
<xsd:element name="Expires" type="wsu:AttributedDateTime">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This element allows an expiration time to be applied anywhere element wildcards are present.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="Created" type="wsu:AttributedDateTime">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This element allows a creation time to be applied anywhere element wildcards are present.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
</xsd:schema>`,
|
||||
};
|
|
@ -1,4 +1,8 @@
|
|||
export const xsdSamlSchemaAssertion20 = `<?xml version="1.0" encoding="US-ASCII"?>
|
||||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'saml-schema-assertion-2.0.xsd',
|
||||
contents: `<?xml version="1.0" encoding="US-ASCII"?>
|
||||
<schema
|
||||
targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
|
@ -280,4 +284,5 @@ export const xsdSamlSchemaAssertion20 = `<?xml version="1.0" encoding="US-ASCII"
|
|||
</complexType>
|
||||
<element name="AttributeValue" type="anyType" nillable="true"/>
|
||||
<element name="EncryptedAttribute" type="saml:EncryptedElementType"/>
|
||||
</schema>`;
|
||||
</schema>`,
|
||||
};
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
export const xsdSamlSchemaMetadata20 = `<?xml version="1.0" encoding="UTF-8"?>
|
||||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'saml-schema-metadata-2.0.xsd',
|
||||
contents: `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema
|
||||
targetNamespace="urn:oasis:names:tc:SAML:2.0:metadata"
|
||||
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
|
||||
|
@ -18,6 +22,8 @@ export const xsdSamlSchemaMetadata20 = `<?xml version="1.0" encoding="UTF-8"?>
|
|||
schemaLocation="saml-schema-assertion-2.0.xsd"/>
|
||||
<import namespace="http://www.w3.org/XML/1998/namespace"
|
||||
schemaLocation="xml.xsd"/>
|
||||
<import namespace="http://docs.oasis-open.org/wsfed/authorization/200706"
|
||||
schemaLocation="ws-federation.xsd"/>
|
||||
<annotation>
|
||||
<documentation>
|
||||
Document identifier: saml-schema-metadata-2.0
|
||||
|
@ -333,4 +339,5 @@ export const xsdSamlSchemaMetadata20 = `<?xml version="1.0" encoding="UTF-8"?>
|
|||
<anyAttribute namespace="##other" processContents="lax"/>
|
||||
</complexType>
|
||||
<element name="AffiliateMember" type="md:entityIDType"/>
|
||||
</schema>`;
|
||||
</schema>`,
|
||||
};
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
export const xsdSamlSchemaProtocol20 = `<?xml version="1.0" encoding="UTF-8"?>
|
||||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'saml-schema-protocol-2.0.xsd',
|
||||
contents: `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema
|
||||
targetNamespace="urn:oasis:names:tc:SAML:2.0:protocol"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
|
@ -299,4 +303,5 @@ export const xsdSamlSchemaProtocol20 = `<?xml version="1.0" encoding="UTF-8"?>
|
|||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
</schema>`;
|
||||
</schema>`,
|
||||
};
|
||||
|
|
142
packages/cli/src/sso/saml/schema/ws-addr.xsd.ts
Normal file
142
packages/cli/src/sso/saml/schema/ws-addr.xsd.ts
Normal file
|
@ -0,0 +1,142 @@
|
|||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'ws-addr.xsd',
|
||||
contents: `<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
W3C XML Schema defined in the Web Services Addressing 1.0 specification
|
||||
http://www.w3.org/TR/ws-addr-core
|
||||
|
||||
Copyright © 2005 World Wide Web Consortium,
|
||||
|
||||
(Massachusetts Institute of Technology, European Research Consortium for
|
||||
Informatics and Mathematics, Keio University). All Rights Reserved. This
|
||||
work is distributed under the W3C® Software License [1] in the hope that
|
||||
it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
|
||||
|
||||
$Id: ws-addr.xsd,v 1.2 2008/07/23 13:38:16 plehegar Exp $
|
||||
-->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2005/08/addressing" targetNamespace="http://www.w3.org/2005/08/addressing" blockDefault="#all" elementFormDefault="qualified" finalDefault="" attributeFormDefault="unqualified">
|
||||
|
||||
<!-- Constructs from the WS-Addressing Core -->
|
||||
|
||||
<xs:element name="EndpointReference" type="tns:EndpointReferenceType"/>
|
||||
<xs:complexType name="EndpointReferenceType" mixed="false">
|
||||
<xs:sequence>
|
||||
<xs:element name="Address" type="tns:AttributedURIType"/>
|
||||
<xs:element ref="tns:ReferenceParameters" minOccurs="0"/>
|
||||
<xs:element ref="tns:Metadata" minOccurs="0"/>
|
||||
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="ReferenceParameters" type="tns:ReferenceParametersType"/>
|
||||
<xs:complexType name="ReferenceParametersType" mixed="false">
|
||||
<xs:sequence>
|
||||
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="Metadata" type="tns:MetadataType"/>
|
||||
<xs:complexType name="MetadataType" mixed="false">
|
||||
<xs:sequence>
|
||||
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="MessageID" type="tns:AttributedURIType"/>
|
||||
<xs:element name="RelatesTo" type="tns:RelatesToType"/>
|
||||
<xs:complexType name="RelatesToType" mixed="false">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:anyURI">
|
||||
<xs:attribute name="RelationshipType" type="tns:RelationshipTypeOpenEnum" use="optional" default="http://www.w3.org/2005/08/addressing/reply"/>
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="RelationshipTypeOpenEnum">
|
||||
<xs:union memberTypes="tns:RelationshipType xs:anyURI"/>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="RelationshipType">
|
||||
<xs:restriction base="xs:anyURI">
|
||||
<xs:enumeration value="http://www.w3.org/2005/08/addressing/reply"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:element name="ReplyTo" type="tns:EndpointReferenceType"/>
|
||||
<xs:element name="From" type="tns:EndpointReferenceType"/>
|
||||
<xs:element name="FaultTo" type="tns:EndpointReferenceType"/>
|
||||
<xs:element name="To" type="tns:AttributedURIType"/>
|
||||
<xs:element name="Action" type="tns:AttributedURIType"/>
|
||||
|
||||
<xs:complexType name="AttributedURIType" mixed="false">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:anyURI">
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Constructs from the WS-Addressing SOAP binding -->
|
||||
|
||||
<xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
|
||||
|
||||
<xs:simpleType name="FaultCodesOpenEnumType">
|
||||
<xs:union memberTypes="tns:FaultCodesType xs:QName"/>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="FaultCodesType">
|
||||
<xs:restriction base="xs:QName">
|
||||
<xs:enumeration value="tns:InvalidAddressingHeader"/>
|
||||
<xs:enumeration value="tns:InvalidAddress"/>
|
||||
<xs:enumeration value="tns:InvalidEPR"/>
|
||||
<xs:enumeration value="tns:InvalidCardinality"/>
|
||||
<xs:enumeration value="tns:MissingAddressInEPR"/>
|
||||
<xs:enumeration value="tns:DuplicateMessageID"/>
|
||||
<xs:enumeration value="tns:ActionMismatch"/>
|
||||
<xs:enumeration value="tns:MessageAddressingHeaderRequired"/>
|
||||
<xs:enumeration value="tns:DestinationUnreachable"/>
|
||||
<xs:enumeration value="tns:ActionNotSupported"/>
|
||||
<xs:enumeration value="tns:EndpointUnavailable"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType"/>
|
||||
<xs:complexType name="AttributedUnsignedLongType" mixed="false">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:unsignedLong">
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="ProblemHeaderQName" type="tns:AttributedQNameType"/>
|
||||
<xs:complexType name="AttributedQNameType" mixed="false">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:QName">
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="ProblemIRI" type="tns:AttributedURIType"/>
|
||||
|
||||
<xs:element name="ProblemAction" type="tns:ProblemActionType"/>
|
||||
<xs:complexType name="ProblemActionType" mixed="false">
|
||||
<xs:sequence>
|
||||
<xs:element ref="tns:Action" minOccurs="0"/>
|
||||
<xs:element name="SoapAction" minOccurs="0" type="xs:anyURI"/>
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace="##other" processContents="lax"/>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>`,
|
||||
};
|
150
packages/cli/src/sso/saml/schema/ws-authorization.xsd.ts
Normal file
150
packages/cli/src/sso/saml/schema/ws-authorization.xsd.ts
Normal file
|
@ -0,0 +1,150 @@
|
|||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'ws-authorization.xsd',
|
||||
contents: `<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the
|
||||
implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available;
|
||||
neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS
|
||||
specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made
|
||||
available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users
|
||||
of this specification, can be obtained from the OASIS Executive Director.
|
||||
OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may
|
||||
cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
|
||||
Copyright © OASIS Open 2002-2007. All Rights Reserved.
|
||||
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist
|
||||
in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the
|
||||
above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified
|
||||
in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications,
|
||||
in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate
|
||||
it into languages other than English.
|
||||
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
|
||||
This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
-->
|
||||
|
||||
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||
xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
|
||||
xmlns:tns='http://docs.oasis-open.org/wsfed/authorization/200706'
|
||||
targetNamespace='http://docs.oasis-open.org/wsfed/authorization/200706'
|
||||
elementFormDefault='qualified' >
|
||||
<xs:import namespace='http://www.w3.org/2001/04/xmlenc#'
|
||||
schemaLocation='xenc-schema.xsd'/>
|
||||
|
||||
<!-- Section 9.2 -->
|
||||
<xs:element name='AdditionalContext' type='tns:AdditionalContextType' />
|
||||
<xs:complexType name='AdditionalContextType' >
|
||||
<xs:sequence>
|
||||
<xs:element name='ContextItem' type='tns:ContextItemType' minOccurs='0' maxOccurs='unbounded' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='ContextItemType' >
|
||||
<xs:choice minOccurs='0'>
|
||||
<xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
|
||||
</xs:choice>
|
||||
<xs:attribute name='Name' type='xs:anyURI' use='required' />
|
||||
<xs:attribute name='Scope' type='xs:anyURI' use='optional' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 9.3 -->
|
||||
<xs:element name='ClaimType' type='tns:ClaimType' />
|
||||
<xs:complexType name='ClaimType' >
|
||||
<xs:sequence>
|
||||
<xs:element name="DisplayName" type="tns:DisplayNameType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element name="Description" type="tns:DescriptionType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element name="DisplayValue" type="tns:DisplayValueType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:choice minOccurs='0'>
|
||||
<xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element name='EncryptedValue' type='tns:EncryptedValueType' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element name='ConstrainedValue' type='tns:ConstrainedValueType' minOccurs='1' maxOccurs='1' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
<xs:attribute name='Uri' type='xs:anyURI' use='required' />
|
||||
<xs:attribute name='Optional' type='xs:boolean' use='optional' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="DisplayNameType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:anyAttribute namespace="##other" processContents="lax" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="DescriptionType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:anyAttribute namespace="##other" processContents="lax" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="DisplayValueType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:anyAttribute namespace="##other" processContents="lax" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="EncryptedValueType">
|
||||
<xs:sequence>
|
||||
<xs:element ref="xenc:EncryptedData" minOccurs="1" maxOccurs="1"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="DecryptionCondition" type="xs:anyURI" use="optional"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="StructuredValueType">
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 9.3.1 -->
|
||||
|
||||
<xs:complexType name='ConstrainedValueType'>
|
||||
<xs:sequence>
|
||||
<xs:choice minOccurs='1'>
|
||||
<xs:element name='ValueLessThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
|
||||
<xs:element name='ValueLessThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
|
||||
<xs:element name='ValueGreaterThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
|
||||
<xs:element name='ValueGreaterThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
|
||||
<xs:element name='ValueInRangen' type='tns:ValueInRangeType' minOccurs='1' maxOccurs='1'/>
|
||||
<xs:element name='ValueOneOf' type='tns:ConstrainedManyValueType' minOccurs='1' maxOccurs='1'/>
|
||||
</xs:choice>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:attribute name='AssertConstraint' type='xs:boolean' use='optional' />
|
||||
</xs:complexType>
|
||||
<xs:complexType name='ValueInRangeType'>
|
||||
<xs:sequence>
|
||||
<xs:element name='ValueUpperBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
|
||||
<xs:element name='ValueLowerBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='ConstrainedSingleValueType'>
|
||||
<xs:choice minOccurs='0'>
|
||||
<xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='ConstrainedManyValueType'>
|
||||
<xs:choice minOccurs='0'>
|
||||
<xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='unbounded' />
|
||||
<xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>`,
|
||||
};
|
475
packages/cli/src/sso/saml/schema/ws-federation.xsd.ts
Normal file
475
packages/cli/src/sso/saml/schema/ws-federation.xsd.ts
Normal file
|
@ -0,0 +1,475 @@
|
|||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'ws-federation.xsd',
|
||||
contents: `<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the
|
||||
implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available;
|
||||
neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS
|
||||
specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made
|
||||
available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users
|
||||
of this specification, can be obtained from the OASIS Executive Director.
|
||||
OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may
|
||||
cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
|
||||
Copyright © OASIS Open 2002-2007. All Rights Reserved.
|
||||
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist
|
||||
in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the
|
||||
above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified
|
||||
in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications,
|
||||
in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate
|
||||
it into languages other than English.
|
||||
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
|
||||
This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
-->
|
||||
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||
xmlns:sp='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'
|
||||
xmlns:tns='http://docs.oasis-open.org/wsfed/federation/200706'
|
||||
xmlns:wsa='http://www.w3.org/2005/08/addressing'
|
||||
xmlns:mex='http://schemas.xmlsoap.org/ws/2004/09/mex'
|
||||
xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
|
||||
xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'
|
||||
xmlns:md='urn:oasis:names:tc:SAML:2.0:metadata'
|
||||
xmlns:auth='http://docs.oasis-open.org/wsfed/authorization/200706'
|
||||
targetNamespace='http://docs.oasis-open.org/wsfed/federation/200706'
|
||||
elementFormDefault='qualified' >
|
||||
|
||||
<xs:import namespace='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
|
||||
schemaLocation='oasis-200401-wss-wssecurity-secext-1.0.xsd' />
|
||||
<xs:import namespace='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'
|
||||
schemaLocation='oasis-200401-wss-wssecurity-utility-1.0.xsd' />
|
||||
<xs:import namespace='http://www.w3.org/2005/08/addressing'
|
||||
schemaLocation='ws-addr.xsd' />
|
||||
<xs:import namespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
|
||||
schemaLocation='MetadataExchange.xsd' />
|
||||
<xs:import namespace='urn:oasis:names:tc:SAML:2.0:metadata'
|
||||
schemaLocation='saml-schema-metadata-2.0.xsd' />
|
||||
<xs:import namespace='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'
|
||||
schemaLocation='ws-securitypolicy-1.2.xsd'/>
|
||||
<xs:import namespace='http://docs.oasis-open.org/wsfed/authorization/200706'
|
||||
schemaLocation='ws-authorization.xsd'/>
|
||||
|
||||
<!-- Section 3.1 -->
|
||||
<!-- Note: Use of this root element is discouraged in favor of use of md:EntitiesDescriptor or md EntityDescriptor -->
|
||||
<xs:element name='FederationMetadata' type='tns:FederationMetadataType' />
|
||||
|
||||
<xs:complexType name='FederationMetadataType' >
|
||||
<xs:sequence>
|
||||
<!--
|
||||
*** Accurate content model is nondeterministic ***
|
||||
<xs:element name='Federation' type='tns:FederationType' minOccurs='1' maxOccurs='unbounded' />
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
-->
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='FederationType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:attribute name='FederationID' type='xs:anyURI' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.2.1 -->
|
||||
<xs:complexType name="WebServiceDescriptorType" abstract="true">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="md:RoleDescriptorType">
|
||||
<xs:sequence>
|
||||
<xs:element ref="tns:LogicalServiceNamesOffered" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element ref="tns:TokenTypesOffered" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element ref="tns:ClaimDialectsOffered" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element ref="tns:ClaimTypesOffered" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element ref="tns:ClaimTypesRequested" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element ref="tns:AutomaticPseudonyms" minOccurs="0" maxOccurs="1"/>
|
||||
<xs:element ref="tns:TargetScopes" minOccurs="0" maxOccurs="1"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="ServiceDisplayName" type="xs:string" use="optional"/>
|
||||
<xs:attribute name="ServiceDescription" type="xs:string" use="optional"/>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name='LogicalServiceNamesOffered' type='tns:LogicalServiceNamesOfferedType' />
|
||||
<xs:element name='TokenTypesOffered' type='tns:TokenTypesOfferedType' />
|
||||
<xs:element name='ClaimDialectsOffered' type='tns:ClaimDialectsOfferedType' />
|
||||
<xs:element name='ClaimTypesOffered' type='tns:ClaimTypesOfferedType' />
|
||||
<xs:element name='ClaimTypesRequested' type='tns:ClaimTypesRequestedType' />
|
||||
<xs:element name="AutomaticPseudonyms" type="xs:boolean"/>
|
||||
<xs:element name='TargetScopes' type='tns:EndpointType'/>
|
||||
|
||||
<!-- Section 3.1.2.2 -->
|
||||
<xs:complexType name="SecurityTokenServiceType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tns:WebServiceDescriptorType">
|
||||
<xs:sequence>
|
||||
<xs:element ref="tns:SecurityTokenServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:SingleSignOutSubscriptionEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:PassiveRequestorEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:element name="SecurityTokenServiceEndpoint" type="tns:EndpointType"/>
|
||||
<xs:element name="SingleSignOutSubscriptionEndpoint" type="tns:EndpointType"/>
|
||||
<xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/>
|
||||
<xs:element name="PassiveRequestorEndpoint" type="tns:EndpointType"/>
|
||||
|
||||
<!-- Section 3.1.2.3 -->
|
||||
<xs:complexType name="PseudonymServiceType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tns:WebServiceDescriptorType">
|
||||
<xs:sequence>
|
||||
<xs:element ref="tns:PseudonymServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="PseudonymServiceEndpoint" type="tns:EndpointType"/>
|
||||
<!-- Defined above -->
|
||||
<!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->
|
||||
|
||||
<!-- Section 3.1.2.4 -->
|
||||
<xs:complexType name="AttributeServiceType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tns:WebServiceDescriptorType">
|
||||
<xs:sequence>
|
||||
<xs:element ref="tns:AttributeServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:element name="AttributeServiceEndpoint" type="tns:EndpointType"/>
|
||||
<!-- Defined above -->
|
||||
<!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->
|
||||
|
||||
<!-- Section 3.1.2.5 -->
|
||||
<xs:complexType name="ApplicationServiceType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tns:WebServiceDescriptorType">
|
||||
<xs:sequence>
|
||||
<xs:element ref="tns:ApplicationServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xs:element ref="tns:PassiveRequestorEndpoint" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:element name="ApplicationServiceEndpoint" type="tns:EndpointType"/>
|
||||
<!-- Defined above -->
|
||||
<!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->
|
||||
<!-- <xs:element name="PassiveRequestorEndpoint" type="tns:EndpointType"/> -->
|
||||
|
||||
|
||||
<!-- Section 3.1.3 -->
|
||||
<!-- Defined above -->
|
||||
<!--<xs:element name='LogicalServiceNamesOffered' type='tns:LogicalServiceNamesOfferedType' />-->
|
||||
|
||||
<xs:complexType name='LogicalServiceNamesOfferedType' >
|
||||
<xs:sequence>
|
||||
<xs:element name='IssuerName' type='tns:IssuerNameType' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='IssuerNameType' >
|
||||
<xs:attribute name='Uri' type='xs:anyURI' use='required' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.4 -->
|
||||
<xs:element name='PsuedonymServiceEndpoints' type='tns:EndpointType' />
|
||||
<xs:complexType name='EndpointType' >
|
||||
<xs:sequence>
|
||||
<xs:element ref='wsa:EndpointReference' minOccurs='1' maxOccurs='unbounded'/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.5 -->
|
||||
<xs:element name='AttributeServiceEndpoints' type='tns:EndpointType' />
|
||||
|
||||
<!-- Section 3.1.6 -->
|
||||
<xs:element name='SingleSignOutSubscriptionEndpoints' type='tns:EndpointType' />
|
||||
|
||||
<!-- Section 3.1.7 -->
|
||||
<xs:element name='SingleSignOutNotificationEndpoints' type='tns:EndpointType' />
|
||||
|
||||
<!-- Section 3.1.8 -->
|
||||
<!-- Defined above -->
|
||||
<!--<xs:element name='TokenTypesOffered' type='tns:TokenTypesOfferedType' />-->
|
||||
<xs:complexType name='TokenTypesOfferedType' >
|
||||
<xs:sequence>
|
||||
<xs:element name='TokenType' type='tns:TokenType' minOccurs='1' maxOccurs='unbounded' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='TokenType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:attribute name='Uri' type='xs:anyURI' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.9 -->
|
||||
<!-- Defined above -->
|
||||
<!-- <xs:element name='ClaimTypesOffered' type='tns:ClaimTypesOfferedType' /> -->
|
||||
<xs:complexType name='ClaimTypesOfferedType'>
|
||||
<xs:sequence>
|
||||
<xs:element ref='auth:ClaimType' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.10 -->
|
||||
<!-- Defined above -->
|
||||
<!-- <xs:element name='ClaimTypesRequested' ype='tns:ClaimTypesRequestedType' /> -->
|
||||
<xs:complexType name='ClaimTypesRequestedType'>
|
||||
<xs:sequence>
|
||||
<xs:element ref='auth:ClaimType' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.11 -->
|
||||
<!-- Defined above -->
|
||||
<!--<xs:element name='ClaimDialectsOffered' type='tns:ClaimDialectsOfferedType' />-->
|
||||
<xs:complexType name='ClaimDialectsOfferedType'>
|
||||
<xs:sequence>
|
||||
<xs:element name='ClaimDialect' type='tns:ClaimDialectType' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='ClaimDialectType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:attribute name='Uri' type='xs:anyURI' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 3.1.12 -->
|
||||
<!-- Defined above -->
|
||||
<!-- <xs:element name='AutomaticPseudonyms' type='xs:boolean' /> -->
|
||||
|
||||
<!-- Section 3.1.13 -->
|
||||
<xs:element name='PassiveRequestorEnpoints' type='tns:EndpointType'/>
|
||||
|
||||
<!-- Section 3.1.14 -->
|
||||
<!-- Defined above -->
|
||||
<!--<xs:element name='TargetScopes' type='tns:EndpointType'/>-->
|
||||
|
||||
<!-- Section 3.2.4 -->
|
||||
<xs:element name='FederationMetadataHandler' type='tns:FederationMetadataHandlerType' />
|
||||
<xs:complexType name='FederationMetadataHandlerType' >
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 4.1 -->
|
||||
<xs:element name='SignOut' type='tns:SignOutType' />
|
||||
<xs:complexType name='SignOutType' >
|
||||
<xs:sequence>
|
||||
<xs:element ref='tns:Realm' minOccurs='0' />
|
||||
<xs:element name='SignOutBasis' type='tns:SignOutBasisType' minOccurs='1' maxOccurs='1' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:attribute ref='wsu:Id' use='optional' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='SignOutBasisType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 4.2 -->
|
||||
<xs:element name='Realm' type='xs:anyURI' />
|
||||
|
||||
<!-- Section 6.1 -->
|
||||
<xs:element name='FilterPseudonyms' type='tns:FilterPseudonymsType' />
|
||||
<xs:complexType name='FilterPseudonymsType' >
|
||||
<xs:sequence>
|
||||
<xs:element ref='tns:PseudonymBasis' minOccurs='0' maxOccurs='1' />
|
||||
<xs:element ref='tns:RelativeTo' minOccurs='0' maxOccurs='1' />
|
||||
<xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name='PseudonymBasis' type='tns:PseudonymBasisType' />
|
||||
<xs:complexType name='PseudonymBasisType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name='RelativeTo' type='tns:RelativeToType' />
|
||||
<xs:complexType name='RelativeToType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 6.2 -->
|
||||
<xs:element name='Pseudonym' type='tns:PseudonymType' />
|
||||
|
||||
<xs:complexType name='PseudonymType' >
|
||||
<xs:sequence>
|
||||
<!--
|
||||
*** Accurate content model is nondeterministic ***
|
||||
<xs:element ref='tns:PseudonymBasis' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element ref='tns:RelativeTo' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element ref='wsu:Expires' minOccurs='0' maxOccurs='1' />
|
||||
<xs:element ref='tns:SecurityToken' minOccurs='0' maxOccurs='unbounded' />
|
||||
<xs:element ref='tns:ProofToken' minOccurs='0' maxOccurs='unbounded' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
-->
|
||||
|
||||
<xs:element ref='tns:PseudonymBasis' minOccurs='1' maxOccurs='1' />
|
||||
<xs:element ref='tns:RelativeTo' minOccurs='1' maxOccurs='1' />
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name='SecurityToken' type='tns:SecurityTokenType' />
|
||||
<xs:complexType name='SecurityTokenType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name='ProofToken' type='tns:ProofTokenType' />
|
||||
<xs:complexType name='ProofTokenType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 7.1 -->
|
||||
<xs:element name='RequestPseudonym' type='tns:RequestPseudonymType' />
|
||||
<xs:complexType name='RequestPseudonymType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:attribute name='SingleUse' type='xs:boolean' use='optional' />
|
||||
<xs:attribute name='Lookup' type='xs:boolean' use='optional' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 8.1 -->
|
||||
<xs:element name='ReferenceToken' type='tns:ReferenceTokenType' />
|
||||
<xs:complexType name='ReferenceTokenType'>
|
||||
<xs:sequence>
|
||||
<xs:element name='ReferenceEPR' type='wsa:EndpointReferenceType' minOccurs='1' maxOccurs='unbounded' />
|
||||
<xs:element name='ReferenceDigest' type='tns:ReferenceDigestType' minOccurs='0' maxOccurs='1' />
|
||||
<xs:element name='ReferenceType' type='tns:AttributeExtensibleURI' minOccurs='0' maxOccurs='1' />
|
||||
<xs:element name='SerialNo' type='tns:AttributeExtensibleURI' minOccurs='0' maxOccurs='1' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='ReferenceDigestType' >
|
||||
<xs:simpleContent>
|
||||
<xs:extension base='xs:base64Binary' >
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name='AttributeExtensibleURI' >
|
||||
<xs:simpleContent>
|
||||
<xs:extension base='xs:anyURI' >
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 8.2 -->
|
||||
<xs:element name='FederationID' type='tns:AttributeExtensibleURI' />
|
||||
|
||||
<!-- Section 8.3 -->
|
||||
<xs:element name='RequestProofToken' type='tns:RequestProofTokenType' />
|
||||
<xs:complexType name='RequestProofTokenType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 8.4 -->
|
||||
<xs:element name='ClientPseudonym' type='tns:ClientPseudonymType' />
|
||||
<xs:complexType name='ClientPseudonymType' >
|
||||
<xs:sequence>
|
||||
<xs:element name='PPID' type='tns:AttributeExtensibleString' minOccurs='0' />
|
||||
<xs:element name='DisplayName' type='tns:AttributeExtensibleString' minOccurs='0' />
|
||||
<xs:element name='EMail' type='tns:AttributeExtensibleString' minOccurs='0' />
|
||||
<xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name='AttributeExtensibleString' >
|
||||
<xs:simpleContent>
|
||||
<xs:extension base='xs:string' >
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 8.5 -->
|
||||
<xs:element name='Freshness' type='tns:Freshness' />
|
||||
<xs:complexType name='Freshness'>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base='xs:unsignedInt' >
|
||||
<xs:attribute name='AllowCache' type='xs:boolean' use='optional' />
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 14.1 -->
|
||||
<xs:element name='RequireReferenceToken' type='sp:TokenAssertionType' />
|
||||
<xs:element name='ReferenceToken11' type='tns:AssertionType' />
|
||||
|
||||
<xs:complexType name='AssertionType' >
|
||||
<xs:sequence>
|
||||
<xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute namespace='##other' processContents='lax' />
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Section 14.2 -->
|
||||
<xs:element name='WebBinding' type='sp:NestedPolicyType' />
|
||||
<xs:element name='AuthenticationToken' type='sp:NestedPolicyType' />
|
||||
<!-- ReferenceToken defined above -->
|
||||
<xs:element name='RequireSignedTokens' type='tns:AssertionType' />
|
||||
<xs:element name='RequireBearerTokens' type='tns:AssertionType' />
|
||||
<xs:element name='RequireSharedCookies' type='tns:AssertionType' />
|
||||
|
||||
|
||||
<!-- Section 14.3 -->
|
||||
<xs:element name='RequiresGenericClaimDialect' type='tns:AssertionType' />
|
||||
<xs:element name='IssuesSpecificPolicyFault' type='tns:AssertionType' />
|
||||
<xs:element name='AdditionalContextProcessed' type='tns:AssertionType' />
|
||||
|
||||
|
||||
</xs:schema>`,
|
||||
};
|
1210
packages/cli/src/sso/saml/schema/ws-securitypolicy-1.2.xsd.ts
Normal file
1210
packages/cli/src/sso/saml/schema/ws-securitypolicy-1.2.xsd.ts
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,8 @@
|
|||
export const xsdXenc = `<?xml version="1.0" encoding="utf-8"?>
|
||||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'xenc-schema.xsd',
|
||||
contents: `<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN"
|
||||
"http://www.w3.org/2001/XMLSchema.dtd"
|
||||
[
|
||||
|
@ -142,4 +146,5 @@ export const xsdXenc = `<?xml version="1.0" encoding="utf-8"?>
|
|||
<anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/>
|
||||
</complexType>
|
||||
|
||||
</schema>`;
|
||||
</schema>`,
|
||||
};
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
export const xsdXml = `<?xml version='1.0'?>
|
||||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'xml.xsd',
|
||||
contents: `<?xml version='1.0'?>
|
||||
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
|
||||
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
|
||||
|
||||
|
@ -114,4 +118,5 @@ export const xsdXml = `<?xml version='1.0'?>
|
|||
<xs:attribute ref="xml:space"/>
|
||||
</xs:attributeGroup>
|
||||
|
||||
</xs:schema>`;
|
||||
</xs:schema>`,
|
||||
};
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
export const xsdXmldsigCore = `<?xml version="1.0" encoding="utf-8"?>
|
||||
import type { XMLFileInfo } from 'xmllint-wasm';
|
||||
|
||||
export const xmlFileInfo: XMLFileInfo = {
|
||||
fileName: 'xmldsig-core-schema.xsd',
|
||||
contents: `<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE schema
|
||||
PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
|
||||
[
|
||||
|
@ -315,4 +319,5 @@ export const xsdXmldsigCore = `<?xml version="1.0" encoding="utf-8"?>
|
|||
|
||||
<!-- End Signature -->
|
||||
|
||||
</schema>`;
|
||||
</schema>`,
|
||||
};
|
||||
|
|
199
packages/cli/src/webhooks/__tests__/waiting-forms.test.ts
Normal file
199
packages/cli/src/webhooks/__tests__/waiting-forms.test.ts
Normal file
|
@ -0,0 +1,199 @@
|
|||
import { mock } from 'jest-mock-extended';
|
||||
import { FORM_NODE_TYPE, type Workflow } from 'n8n-workflow';
|
||||
|
||||
import type { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { WaitingForms } from '@/webhooks/waiting-forms';
|
||||
|
||||
describe('WaitingForms', () => {
|
||||
const executionRepository = mock<ExecutionRepository>();
|
||||
const waitingWebhooks = new WaitingForms(mock(), mock(), executionRepository);
|
||||
|
||||
beforeEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
describe('findCompletionPage', () => {
|
||||
it('should return lastNodeExecuted if it is a non-disabled form completion node', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue([]),
|
||||
nodes: {
|
||||
Form1: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, {}, 'Form1');
|
||||
expect(result).toBe('Form1');
|
||||
});
|
||||
|
||||
it('should return undefined if lastNodeExecuted is disabled', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue([]),
|
||||
nodes: {
|
||||
Form1: {
|
||||
disabled: true,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, {}, 'Form1');
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should return undefined if lastNodeExecuted is not a form node', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue([]),
|
||||
nodes: {
|
||||
NonForm: {
|
||||
disabled: undefined,
|
||||
type: 'other-node-type',
|
||||
parameters: {},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, {}, 'NonForm');
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should return undefined if lastNodeExecuted operation is not completion', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue([]),
|
||||
nodes: {
|
||||
Form1: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'page',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, {}, 'Form1');
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should find first valid completion form in parent nodes if lastNodeExecuted is not valid', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue(['Form1', 'Form2', 'Form3']),
|
||||
nodes: {
|
||||
LastNode: {
|
||||
disabled: undefined,
|
||||
type: 'other-node-type',
|
||||
parameters: {},
|
||||
},
|
||||
Form1: {
|
||||
disabled: true,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
Form2: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
Form3: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const runData = {
|
||||
Form2: [],
|
||||
Form3: [],
|
||||
};
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, runData, 'LastNode');
|
||||
expect(result).toBe('Form3');
|
||||
});
|
||||
|
||||
it('should return undefined if no valid completion form is found in parent nodes', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue(['Form1', 'Form2']),
|
||||
nodes: {
|
||||
LastNode: {
|
||||
disabled: undefined,
|
||||
type: 'other-node-type',
|
||||
parameters: {},
|
||||
},
|
||||
Form1: {
|
||||
disabled: true,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
Form2: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'submit',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, {}, 'LastNode');
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should skip parent nodes without runData', () => {
|
||||
const workflow = mock<Workflow>({
|
||||
getParentNodes: jest.fn().mockReturnValue(['Form1', 'Form2', 'Form3']),
|
||||
nodes: {
|
||||
LastNode: {
|
||||
disabled: undefined,
|
||||
type: 'other-node-type',
|
||||
parameters: {},
|
||||
},
|
||||
Form1: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
Form2: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
Form3: {
|
||||
disabled: undefined,
|
||||
type: FORM_NODE_TYPE,
|
||||
parameters: {
|
||||
operation: 'completion',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const runData = {
|
||||
Form2: [],
|
||||
};
|
||||
|
||||
const result = waitingWebhooks.findCompletionPage(workflow, runData, 'LastNode');
|
||||
expect(result).toBe('Form2');
|
||||
});
|
||||
});
|
||||
});
|
|
@ -1,5 +1,6 @@
|
|||
import axios from 'axios';
|
||||
import type express from 'express';
|
||||
import type { IRunData } from 'n8n-workflow';
|
||||
import { FORM_NODE_TYPE, sleep, Workflow } from 'n8n-workflow';
|
||||
import { Service } from 'typedi';
|
||||
|
||||
|
@ -57,6 +58,29 @@ export class WaitingForms extends WaitingWebhooks {
|
|||
} catch (error) {}
|
||||
}
|
||||
|
||||
findCompletionPage(workflow: Workflow, runData: IRunData, lastNodeExecuted: string) {
|
||||
const parentNodes = workflow.getParentNodes(lastNodeExecuted);
|
||||
const lastNode = workflow.nodes[lastNodeExecuted];
|
||||
|
||||
if (
|
||||
!lastNode.disabled &&
|
||||
lastNode.type === FORM_NODE_TYPE &&
|
||||
lastNode.parameters.operation === 'completion'
|
||||
) {
|
||||
return lastNodeExecuted;
|
||||
} else {
|
||||
return parentNodes.reverse().find((nodeName) => {
|
||||
const node = workflow.nodes[nodeName];
|
||||
return (
|
||||
!node.disabled &&
|
||||
node.type === FORM_NODE_TYPE &&
|
||||
node.parameters.operation === 'completion' &&
|
||||
runData[nodeName]
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async executeWebhook(
|
||||
req: WaitingWebhookRequest,
|
||||
res: express.Response,
|
||||
|
@ -89,35 +113,19 @@ export class WaitingForms extends WaitingWebhooks {
|
|||
throw new ConflictError(`The execution "${executionId}" is running already.`);
|
||||
}
|
||||
|
||||
let completionPage;
|
||||
let lastNodeExecuted = execution.data.resultData.lastNodeExecuted as string;
|
||||
|
||||
if (execution.finished) {
|
||||
// find the completion page to render
|
||||
// if there is no completion page, render the default page
|
||||
const workflow = this.getWorkflow(execution);
|
||||
|
||||
const parentNodes = workflow.getParentNodes(
|
||||
execution.data.resultData.lastNodeExecuted as string,
|
||||
const completionPage = this.findCompletionPage(
|
||||
workflow,
|
||||
execution.data.resultData.runData,
|
||||
lastNodeExecuted,
|
||||
);
|
||||
|
||||
const lastNodeExecuted = execution.data.resultData.lastNodeExecuted as string;
|
||||
const lastNode = workflow.nodes[lastNodeExecuted];
|
||||
|
||||
if (
|
||||
!lastNode.disabled &&
|
||||
lastNode.type === FORM_NODE_TYPE &&
|
||||
lastNode.parameters.operation === 'completion'
|
||||
) {
|
||||
completionPage = lastNodeExecuted;
|
||||
} else {
|
||||
completionPage = Object.keys(workflow.nodes).find((nodeName) => {
|
||||
const node = workflow.nodes[nodeName];
|
||||
return (
|
||||
parentNodes.includes(nodeName) &&
|
||||
!node.disabled &&
|
||||
node.type === FORM_NODE_TYPE &&
|
||||
node.parameters.operation === 'completion'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if (!completionPage) {
|
||||
res.render('form-trigger-completion', {
|
||||
title: 'Form Submitted',
|
||||
|
@ -128,16 +136,16 @@ export class WaitingForms extends WaitingWebhooks {
|
|||
return {
|
||||
noWebhookResponse: true,
|
||||
};
|
||||
} else {
|
||||
lastNodeExecuted = completionPage;
|
||||
}
|
||||
}
|
||||
|
||||
const targetNode = completionPage || (execution.data.resultData.lastNodeExecuted as string);
|
||||
|
||||
return await this.getWebhookExecutionData({
|
||||
execution,
|
||||
req,
|
||||
res,
|
||||
lastNodeExecuted: targetNode,
|
||||
lastNodeExecuted,
|
||||
executionId,
|
||||
suffix,
|
||||
});
|
||||
|
|
|
@ -163,9 +163,36 @@ describe('POST /evaluation/test-definitions', () => {
|
|||
});
|
||||
|
||||
expect(resp.statusCode).toBe(200);
|
||||
expect(resp.body.data.name).toBe('test');
|
||||
expect(resp.body.data.workflowId).toBe(workflowUnderTest.id);
|
||||
expect(resp.body.data.evaluationWorkflowId).toBe(evaluationWorkflow.id);
|
||||
expect(resp.body.data).toEqual(
|
||||
expect.objectContaining({
|
||||
name: 'test',
|
||||
workflowId: workflowUnderTest.id,
|
||||
evaluationWorkflowId: evaluationWorkflow.id,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
test('should create test definition with all fields', async () => {
|
||||
const resp = await authOwnerAgent.post('/evaluation/test-definitions').send({
|
||||
name: 'test',
|
||||
description: 'test description',
|
||||
workflowId: workflowUnderTest.id,
|
||||
evaluationWorkflowId: evaluationWorkflow.id,
|
||||
annotationTagId: annotationTag.id,
|
||||
});
|
||||
|
||||
expect(resp.statusCode).toBe(200);
|
||||
expect(resp.body.data).toEqual(
|
||||
expect.objectContaining({
|
||||
name: 'test',
|
||||
description: 'test description',
|
||||
workflowId: workflowUnderTest.id,
|
||||
evaluationWorkflowId: evaluationWorkflow.id,
|
||||
annotationTag: expect.objectContaining({
|
||||
id: annotationTag.id,
|
||||
}),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
test('should return error if name is empty', async () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-core",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"description": "Core functionality of n8n",
|
||||
"main": "dist/index",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
@ -918,6 +918,10 @@ function convertN8nRequestToAxios(n8nRequest: IHttpRequestOptions): AxiosRequest
|
|||
|
||||
axiosRequest.params = n8nRequest.qs;
|
||||
|
||||
if (n8nRequest.abortSignal) {
|
||||
axiosRequest.signal = n8nRequest.abortSignal;
|
||||
}
|
||||
|
||||
if (n8nRequest.baseURL !== undefined) {
|
||||
axiosRequest.baseURL = n8nRequest.baseURL;
|
||||
}
|
||||
|
@ -1718,6 +1722,11 @@ export async function httpRequestWithAuthentication(
|
|||
) {
|
||||
removeEmptyBody(requestOptions);
|
||||
|
||||
// Cancel this request on execution cancellation
|
||||
if ('getExecutionCancelSignal' in this) {
|
||||
requestOptions.abortSignal = this.getExecutionCancelSignal();
|
||||
}
|
||||
|
||||
let credentialsDecrypted: ICredentialDataDecryptedObject | undefined;
|
||||
try {
|
||||
const parentTypes = additionalData.credentialsHelper.getParentTypes(credentialsType);
|
||||
|
|
|
@ -1243,7 +1243,7 @@ export class WorkflowExecute {
|
|||
: [];
|
||||
|
||||
while (items.length) {
|
||||
const item = items.pop();
|
||||
const item = items.shift();
|
||||
if (item === undefined) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -188,7 +188,11 @@ describe('WorkflowExecute', () => {
|
|||
if (nodeData.data === undefined) {
|
||||
return null;
|
||||
}
|
||||
return nodeData.data.main[0];
|
||||
return nodeData.data.main[0]!.map((entry) => {
|
||||
// remove pairedItem from entry if it is an error output test
|
||||
if (testData.description.includes('error_outputs')) delete entry.pairedItem;
|
||||
return entry;
|
||||
});
|
||||
});
|
||||
|
||||
expect(resultData).toEqual(testData.output.nodeData[nodeName]);
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"name": "Error Output - Test Workflow",
|
||||
"name": "My workflow 105",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "c41b46f0-3e76-4655-b5ea-4d15af58c138",
|
||||
"id": "a94bc1fb-1f39-404b-b149-a76c4fbaed25",
|
||||
"name": "When clicking \"Execute Workflow\"",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [-680, 460]
|
||||
"position": [-60, 780]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -21,11 +21,11 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "247f4118-d80f-49ab-8d9a-0cdbbb9271df",
|
||||
"id": "6ba26bdf-91e2-4f18-8f4c-09e98aa4a9df",
|
||||
"name": "Success",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [200, 860]
|
||||
"position": [820, 1180]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -39,21 +39,21 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "311e3650-d89c-405a-9c8d-c238f48a8a5a",
|
||||
"id": "e3d1eadf-0994-4806-97ce-c5c5f673c624",
|
||||
"name": "Error",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [200, 1040]
|
||||
"position": [820, 1360]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "return [\n {\n \"id\": \"23423532\",\n \"name\": \"Jay Gatsby\",\n \"email\": \"gatsby@west-egg.com\",\n \"notes\": \"Keeps asking about a green light??\",\n \"country\": \"US\",\n \"created\": \"1925-04-10\"\n },\n {\n \"id\": \"23423533\",\n \"name\": \"José Arcadio Buendía\",\n \"email\": \"jab@macondo.co\",\n \"notes\": \"Lots of people named after him. Very confusing\",\n \"country\": \"CO\",\n \"created\": \"1967-05-05\"\n },\n {\n \"id\": \"23423534\",\n \"name\": \"Max Sendak\",\n \"email\": \"info@in-and-out-of-weeks.org\",\n \"notes\": \"Keeps rolling his terrible eyes\",\n \"country\": \"US\",\n \"created\": \"1963-04-09\"\n },\n {\n \"id\": \"23423535\",\n \"name\": \"Zaphod Beeblebrox\",\n \"email\": \"captain@heartofgold.com\",\n \"notes\": \"Felt like I was talking to more than one person\",\n \"country\": null,\n \"created\": \"1979-10-12\"\n },\n {\n \"id\": \"23423536\",\n \"name\": \"Edmund Pevensie\",\n \"email\": \"edmund@narnia.gov\",\n \"notes\": \"Passionate sailor\",\n \"country\": \"UK\",\n \"created\": \"1950-10-16\"\n }\n]"
|
||||
},
|
||||
"id": "179d4fe7-1ae7-4957-a77d-12c3ca6d141b",
|
||||
"id": "01adfc2d-141d-4843-b2d6-04115a476bc1",
|
||||
"name": "Mock Data",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [-460, 460]
|
||||
"position": [160, 780]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -61,11 +61,11 @@
|
|||
"height": 414,
|
||||
"width": 564
|
||||
},
|
||||
"id": "1ec2a8b6-54e2-4319-90b3-30b387855b36",
|
||||
"id": "8ca689eb-7910-43ad-bd10-fae35a8fc203",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"typeVersion": 1,
|
||||
"position": [-160, 780]
|
||||
"position": [460, 1100]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -73,11 +73,11 @@
|
|||
"height": 279,
|
||||
"width": 564
|
||||
},
|
||||
"id": "49a2b7d9-8bd1-4cdf-9649-2d93668b0f8f",
|
||||
"id": "a17460d6-b0c0-432d-ac6f-8ff684357c8d",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"typeVersion": 1,
|
||||
"position": [-160, 140]
|
||||
"position": [460, 460]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -91,22 +91,22 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "9852f1d9-95b4-4ef7-bb18-8f0bab81a0bc",
|
||||
"id": "46df5463-4289-4e61-9f80-87e035931bda",
|
||||
"name": "Combined",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [180, 240]
|
||||
"position": [800, 560]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "runOnceForEachItem",
|
||||
"jsCode": "// Add a new field called 'myNewField' to the JSON of the item\n$input.item.json.myNewField = 1;\n\nif ($input.item.json.country === 'US') {\n throw new Error('This is an error');\n}\n\nreturn $input.item;"
|
||||
},
|
||||
"id": "40d4dba3-3db7-4eb5-aa27-e76f955a5e09",
|
||||
"id": "a4708520-aaca-4618-b7a2-94da268fba37",
|
||||
"name": "Throw Error",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [-140, 960],
|
||||
"position": [480, 1280],
|
||||
"errorOutput": true,
|
||||
"onError": "continueErrorOutput"
|
||||
},
|
||||
|
@ -116,22 +116,22 @@
|
|||
"height": 279,
|
||||
"width": 564
|
||||
},
|
||||
"id": "8eb3dd54-c1dd-4167-abfa-c06d044c63f3",
|
||||
"id": "f0a450cd-4124-490d-964f-a71b645f770c",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"typeVersion": 1,
|
||||
"position": [-160, 460]
|
||||
"position": [460, 780]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "runOnceForEachItem",
|
||||
"jsCode": "// Add a new field called 'myNewField' to the JSON of the item\n$input.item.json.myNewField = 1;\n\nif ($input.item.json.country === 'US') {\n throw new Error('This is an error');\n}\n\nreturn $input.item;"
|
||||
},
|
||||
"id": "19a3d6ac-e610-4296-9b7a-9ed19d242bdb",
|
||||
"id": "823f12e6-cbfc-4545-8505-fab158d1effe",
|
||||
"name": "Throw Error2",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [-120, 560],
|
||||
"position": [500, 880],
|
||||
"onError": "continueRegularOutput"
|
||||
},
|
||||
{
|
||||
|
@ -146,22 +146,22 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "5f803fdc-7d88-4c12-8886-6092cfbc03c6",
|
||||
"id": "8f88d130-9a13-4236-81c0-157f8a8990c0",
|
||||
"name": "Combined1",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [180, 560]
|
||||
"position": [800, 880]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "runOnceForEachItem",
|
||||
"jsCode": "// Add a new field called 'myNewField' to the JSON of the item\n$input.item.json.myNewField = 1;\n\nif ($input.item.json.country === 'US') {\n throw new Error('This is an error');\n}\n\nreturn $input.item;"
|
||||
},
|
||||
"id": "c2696c1f-1abd-4549-9ad9-e62017dc14b8",
|
||||
"id": "1a3f4beb-0d1e-44fe-a411-5bd1096ffd74",
|
||||
"name": "Throw Error1",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [-120, 240],
|
||||
"position": [500, 560],
|
||||
"continueOnFail": true
|
||||
},
|
||||
{
|
||||
|
@ -176,11 +176,11 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "01740d7e-e572-408a-9fae-729068803113",
|
||||
"id": "c617a3d7-15e3-49b4-a7dd-d45c5e059a22",
|
||||
"name": "Success1",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [200, 1320]
|
||||
"position": [820, 1640]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -188,22 +188,22 @@
|
|||
"height": 509.71047006830065,
|
||||
"width": 1183.725293692246
|
||||
},
|
||||
"id": "ed409181-4847-4d65-af45-f45078a6343e",
|
||||
"id": "046de2cf-970a-4925-b87d-16e8cca511fd",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"typeVersion": 1,
|
||||
"position": [-160, 1240]
|
||||
"position": [460, 1560]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "runOnceForEachItem",
|
||||
"jsCode": "// Add a new field called 'myNewField' to the JSON of the item\n$input.item.json.myNewField = 1;\n\nif ($input.item.json.country === 'US') {\n throw new Error('This is an error');\n}\n\nreturn $input.item;"
|
||||
},
|
||||
"id": "93d03f38-b928-4b4b-832a-3f1a5deebb2d",
|
||||
"id": "9ec21de1-dfca-4fff-b5a7-a56364239d7b",
|
||||
"name": "Throw Error3",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [-140, 1420],
|
||||
"position": [480, 1740],
|
||||
"errorOutput": true,
|
||||
"onError": "continueErrorOutput"
|
||||
},
|
||||
|
@ -211,11 +211,11 @@
|
|||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"id": "c92a6ce5-41ea-4fb9-a07b-c4e98f905b12",
|
||||
"id": "e3605953-75cf-4036-99f7-05e3971a6a75",
|
||||
"name": "Edit Fields",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [420, 1500],
|
||||
"position": [1040, 1820],
|
||||
"onError": "continueErrorOutput"
|
||||
},
|
||||
{
|
||||
|
@ -230,11 +230,11 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "ab838cc1-0987-4b41-bdc5-fe17f38e0691",
|
||||
"id": "a71cfb77-adfd-4c77-9a8e-7e58cbd0931b",
|
||||
"name": "Success2",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [700, 1360]
|
||||
"position": [1320, 1680]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -248,11 +248,11 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "22e04172-19b9-4735-9dd0-a3e2fa3bf000",
|
||||
"id": "ea9d02e9-1716-4f69-a14a-9133f5184886",
|
||||
"name": "Error2",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [700, 1580]
|
||||
"position": [1320, 1900]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
|
@ -266,101 +266,19 @@
|
|||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "69e7257a-1ba8-46ba-9394-d38d65b2e567",
|
||||
"id": "17780679-f7a3-4b1b-b6ee-f3f61e0843ad",
|
||||
"name": "Error1",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.2,
|
||||
"position": [200, 1500]
|
||||
"position": [820, 1820]
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"Error": [
|
||||
{
|
||||
"json": {
|
||||
"id": "23423534",
|
||||
"name": "Max Sendak",
|
||||
"email": "info@in-and-out-of-weeks.org",
|
||||
"notes": "Keeps rolling his terrible eyes",
|
||||
"country": "US",
|
||||
"created": "1963-04-09",
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423532",
|
||||
"name": "Jay Gatsby",
|
||||
"email": "gatsby@west-egg.com",
|
||||
"notes": "Keeps asking about a green light??",
|
||||
"country": "US",
|
||||
"created": "1925-04-10",
|
||||
"error": "This is an error [line 5, for item 0]",
|
||||
"originalName": "Jay Gatsby"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"Success": [
|
||||
{
|
||||
"json": {
|
||||
"id": "23423536",
|
||||
"name": "Edmund Pevensie",
|
||||
"email": "edmund@narnia.gov",
|
||||
"notes": "Passionate sailor",
|
||||
"country": "UK",
|
||||
"created": "1950-10-16",
|
||||
"myNewField": 1,
|
||||
"originalName": "Edmund Pevensie"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423535",
|
||||
"name": "Zaphod Beeblebrox",
|
||||
"email": "captain@heartofgold.com",
|
||||
"notes": "Felt like I was talking to more than one person",
|
||||
"country": null,
|
||||
"created": "1979-10-12",
|
||||
"myNewField": 1,
|
||||
"originalName": "Zaphod Beeblebrox"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423533",
|
||||
"name": "José Arcadio Buendía",
|
||||
"email": "jab@macondo.co",
|
||||
"notes": "Lots of people named after him. Very confusing",
|
||||
"country": "CO",
|
||||
"created": "1967-05-05",
|
||||
"myNewField": 1,
|
||||
"originalName": "José Arcadio Buendía"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"Combined": [
|
||||
{
|
||||
"json": {
|
||||
"error": "This is an error [line 5, for item 0]",
|
||||
"originalName": "Jay Gatsby"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -373,18 +291,12 @@
|
|||
"created": "1967-05-05",
|
||||
"myNewField": 1,
|
||||
"originalName": "José Arcadio Buendía"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -397,9 +309,6 @@
|
|||
"created": "1979-10-12",
|
||||
"myNewField": 1,
|
||||
"originalName": "Zaphod Beeblebrox"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -412,9 +321,6 @@
|
|||
"created": "1950-10-16",
|
||||
"myNewField": 1,
|
||||
"originalName": "Edmund Pevensie"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -423,9 +329,6 @@
|
|||
"json": {
|
||||
"error": "This is an error [line 5, for item 0]",
|
||||
"originalName": "Jay Gatsby"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -438,18 +341,12 @@
|
|||
"created": "1967-05-05",
|
||||
"myNewField": 1,
|
||||
"originalName": "José Arcadio Buendía"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -462,9 +359,6 @@
|
|||
"created": "1979-10-12",
|
||||
"myNewField": 1,
|
||||
"originalName": "Zaphod Beeblebrox"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -477,26 +371,20 @@
|
|||
"created": "1950-10-16",
|
||||
"myNewField": 1,
|
||||
"originalName": "Edmund Pevensie"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"Success1": [
|
||||
{
|
||||
"json": {
|
||||
"id": "23423536",
|
||||
"name": "Edmund Pevensie",
|
||||
"email": "edmund@narnia.gov",
|
||||
"notes": "Passionate sailor",
|
||||
"country": "UK",
|
||||
"created": "1950-10-16",
|
||||
"id": "23423533",
|
||||
"name": "José Arcadio Buendía",
|
||||
"email": "jab@macondo.co",
|
||||
"notes": "Lots of people named after him. Very confusing",
|
||||
"country": "CO",
|
||||
"created": "1967-05-05",
|
||||
"myNewField": 1,
|
||||
"originalName": "Edmund Pevensie"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
"originalName": "José Arcadio Buendía"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -509,43 +397,22 @@
|
|||
"created": "1979-10-12",
|
||||
"myNewField": 1,
|
||||
"originalName": "Zaphod Beeblebrox"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423533",
|
||||
"name": "José Arcadio Buendía",
|
||||
"email": "jab@macondo.co",
|
||||
"notes": "Lots of people named after him. Very confusing",
|
||||
"country": "CO",
|
||||
"created": "1967-05-05",
|
||||
"id": "23423536",
|
||||
"name": "Edmund Pevensie",
|
||||
"email": "edmund@narnia.gov",
|
||||
"notes": "Passionate sailor",
|
||||
"country": "UK",
|
||||
"created": "1950-10-16",
|
||||
"myNewField": 1,
|
||||
"originalName": "José Arcadio Buendía"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 2
|
||||
"originalName": "Edmund Pevensie"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Error1": [
|
||||
{
|
||||
"json": {
|
||||
"id": "23423534",
|
||||
"name": "Max Sendak",
|
||||
"email": "info@in-and-out-of-weeks.org",
|
||||
"notes": "Keeps rolling his terrible eyes",
|
||||
"country": "US",
|
||||
"created": "1963-04-09",
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423532",
|
||||
|
@ -556,9 +423,18 @@
|
|||
"created": "1925-04-10",
|
||||
"error": "This is an error [line 5, for item 0]",
|
||||
"originalName": "Jay Gatsby"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423534",
|
||||
"name": "Max Sendak",
|
||||
"email": "info@in-and-out-of-weeks.org",
|
||||
"notes": "Keeps rolling his terrible eyes",
|
||||
"country": "US",
|
||||
"created": "1963-04-09",
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -573,9 +449,6 @@
|
|||
"created": "1925-04-10",
|
||||
"error": "This is an error [line 5, for item 0]",
|
||||
"originalName": "Jay Gatsby"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -588,9 +461,70 @@
|
|||
"created": "1963-04-09",
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
},
|
||||
"pairedItem": {
|
||||
"item": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"Error": [
|
||||
{
|
||||
"json": {
|
||||
"id": "23423532",
|
||||
"name": "Jay Gatsby",
|
||||
"email": "gatsby@west-egg.com",
|
||||
"notes": "Keeps asking about a green light??",
|
||||
"country": "US",
|
||||
"created": "1925-04-10",
|
||||
"error": "This is an error [line 5, for item 0]",
|
||||
"originalName": "Jay Gatsby"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423534",
|
||||
"name": "Max Sendak",
|
||||
"email": "info@in-and-out-of-weeks.org",
|
||||
"notes": "Keeps rolling his terrible eyes",
|
||||
"country": "US",
|
||||
"created": "1963-04-09",
|
||||
"error": "This is an error [line 5, for item 2]",
|
||||
"originalName": "Max Sendak"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Success": [
|
||||
{
|
||||
"json": {
|
||||
"id": "23423533",
|
||||
"name": "José Arcadio Buendía",
|
||||
"email": "jab@macondo.co",
|
||||
"notes": "Lots of people named after him. Very confusing",
|
||||
"country": "CO",
|
||||
"created": "1967-05-05",
|
||||
"myNewField": 1,
|
||||
"originalName": "José Arcadio Buendía"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423535",
|
||||
"name": "Zaphod Beeblebrox",
|
||||
"email": "captain@heartofgold.com",
|
||||
"notes": "Felt like I was talking to more than one person",
|
||||
"country": null,
|
||||
"created": "1979-10-12",
|
||||
"myNewField": 1,
|
||||
"originalName": "Zaphod Beeblebrox"
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "23423536",
|
||||
"name": "Edmund Pevensie",
|
||||
"email": "edmund@narnia.gov",
|
||||
"notes": "Passionate sailor",
|
||||
"country": "UK",
|
||||
"created": "1950-10-16",
|
||||
"myNewField": 1,
|
||||
"originalName": "Edmund Pevensie"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -725,10 +659,11 @@
|
|||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "e73e1eda-293c-4ee2-87b9-923873241774",
|
||||
"id": "UgoluWRMeg7fPLCB",
|
||||
"versionId": "94aaa2ce-558a-4fed-948a-09860174272a",
|
||||
"meta": {
|
||||
"instanceId": "021d3c82ba2d3bc090cbf4fc81c9312668bcc34297e022bb3438c5c88a43a5ff"
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
|
||||
},
|
||||
"id": "FJvJXVvjM5rw3sUM",
|
||||
"tags": []
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-design-system",
|
||||
"version": "1.57.0",
|
||||
"version": "1.58.0",
|
||||
"main": "src/main.ts",
|
||||
"import": "src/main.ts",
|
||||
"scripts": {
|
||||
|
|
|
@ -23,6 +23,7 @@ interface CalloutProps {
|
|||
iconless?: boolean;
|
||||
slim?: boolean;
|
||||
roundCorners?: boolean;
|
||||
onlyBottomBorder?: boolean;
|
||||
}
|
||||
|
||||
defineOptions({ name: 'N8nCallout' });
|
||||
|
@ -38,6 +39,7 @@ const classes = computed(() => [
|
|||
$style[props.theme],
|
||||
props.slim ? $style.slim : '',
|
||||
props.roundCorners ? $style.round : '',
|
||||
props.onlyBottomBorder ? $style.onlyBottomBorder : '',
|
||||
]);
|
||||
|
||||
const getIcon = computed(
|
||||
|
@ -95,6 +97,12 @@ const getIconSize = computed<IconSize>(() => {
|
|||
border-radius: var(--border-radius-base);
|
||||
}
|
||||
|
||||
.onlyBottomBorder {
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.messageSection {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-editor-ui",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"description": "Workflow Editor UI for n8n",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -74,6 +74,7 @@
|
|||
"vue": "catalog:frontend",
|
||||
"vue-agile": "^2.0.0",
|
||||
"vue-chartjs": "^5.2.0",
|
||||
"vue-github-button": "^3.1.3",
|
||||
"vue-i18n": "^9.2.2",
|
||||
"vue-json-pretty": "2.2.4",
|
||||
"vue-markdown-render": "catalog:frontend",
|
||||
|
|
|
@ -52,6 +52,7 @@ const isChatOpen = computed(() => {
|
|||
const result = workflowsStore.isChatPanelOpen;
|
||||
return result;
|
||||
});
|
||||
const canvasNodes = computed(() => workflowsStore.allNodes);
|
||||
const isLogsOpen = computed(() => workflowsStore.isLogsPanelOpen);
|
||||
const previousChatMessages = computed(() => workflowsStore.getPastChatMessages);
|
||||
|
||||
|
@ -70,7 +71,7 @@ const { runWorkflow } = useRunWorkflow({ router });
|
|||
const { chatTriggerNode, connectedNode, allowFileUploads, setChatTriggerNode, setConnectedNode } =
|
||||
useChatTrigger({
|
||||
workflow,
|
||||
canvasNodes: workflowsStore.allNodes,
|
||||
canvasNodes,
|
||||
getNodeByName: workflowsStore.getNodeByName,
|
||||
getNodeType: nodeTypesStore.getNodeType,
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { ComputedRef } from 'vue';
|
||||
import { ref, computed } from 'vue';
|
||||
import type { ComputedRef, MaybeRef } from 'vue';
|
||||
import { ref, computed, unref } from 'vue';
|
||||
import {
|
||||
CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE,
|
||||
NodeConnectionType,
|
||||
|
@ -19,7 +19,7 @@ import type { INodeUi } from '@/Interface';
|
|||
export interface ChatTriggerDependencies {
|
||||
getNodeByName: (name: string) => INodeUi | null;
|
||||
getNodeType: (type: string, version: number) => INodeTypeDescription | null;
|
||||
canvasNodes: INodeUi[];
|
||||
canvasNodes: MaybeRef<INodeUi[]>;
|
||||
workflow: ComputedRef<Workflow>;
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ export function useChatTrigger({
|
|||
|
||||
/** Gets the chat trigger node from the workflow */
|
||||
function setChatTriggerNode() {
|
||||
const triggerNode = canvasNodes.find((node) =>
|
||||
const triggerNode = unref(canvasNodes).find((node) =>
|
||||
[CHAT_TRIGGER_NODE_TYPE, MANUAL_CHAT_TRIGGER_NODE_TYPE].includes(node.type),
|
||||
);
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@ import { useWorkflowsStore } from '@/stores/workflows.store';
|
|||
import { useExecutionsStore } from '@/stores/executions.store';
|
||||
import { usePushConnection } from '@/composables/usePushConnection';
|
||||
|
||||
import GithubButton from 'vue-github-button';
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const locale = useI18n();
|
||||
|
@ -161,7 +163,7 @@ async function navigateToExecutionsView(openInNewTab: boolean) {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div class="container">
|
||||
<div :class="{ 'main-header': true, expanded: !uiStore.sidebarMenuCollapsed }">
|
||||
<div v-show="!hideMenuBar" class="top-menu">
|
||||
<WorkflowDetails
|
||||
|
@ -174,18 +176,35 @@ async function navigateToExecutionsView(openInNewTab: boolean) {
|
|||
:active="workflow.active"
|
||||
:read-only="readOnly"
|
||||
/>
|
||||
<TabBar
|
||||
v-if="onWorkflowPage"
|
||||
:items="tabBarItems"
|
||||
:model-value="activeHeaderTab"
|
||||
@update:model-value="onTabSelected"
|
||||
/>
|
||||
</div>
|
||||
<TabBar
|
||||
v-if="onWorkflowPage"
|
||||
:items="tabBarItems"
|
||||
:model-value="activeHeaderTab"
|
||||
@update:model-value="onTabSelected"
|
||||
/>
|
||||
</div>
|
||||
<div class="github-button">
|
||||
<GithubButton
|
||||
href="https://github.com/n8n-io/n8n"
|
||||
:data-color-scheme="uiStore.appliedTheme"
|
||||
data-size="large"
|
||||
data-show-count="true"
|
||||
aria-label="Star n8n-io/n8n on GitHub"
|
||||
>Star</GithubButton
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.container {
|
||||
display: flex;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.main-header {
|
||||
background-color: var(--color-background-xlight);
|
||||
height: $header-height;
|
||||
|
@ -201,6 +220,18 @@ async function navigateToExecutionsView(openInNewTab: boolean) {
|
|||
font-size: 0.9em;
|
||||
height: $header-height;
|
||||
font-weight: 400;
|
||||
padding: 0 var(--spacing-m) 0 var(--spacing-xs);
|
||||
padding: 0 var(--spacing-m) 0 var(--spacing-m);
|
||||
}
|
||||
|
||||
.github-button {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
height: $header-height;
|
||||
padding-left: var(--spacing-m);
|
||||
padding-right: var(--spacing-m);
|
||||
background-color: var(--color-background-xlight);
|
||||
border-bottom: var(--border-width-base) var(--border-style-base) var(--color-foreground-base);
|
||||
border-left: var(--border-width-base) var(--border-style-base) var(--color-foreground-base);
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -65,7 +65,7 @@ describe('ProjectHeader', () => {
|
|||
it('should render the correct title', async () => {
|
||||
const { getByText, rerender } = renderComponent();
|
||||
|
||||
expect(getByText('Home')).toBeVisible();
|
||||
expect(getByText('Overview')).toBeVisible();
|
||||
|
||||
projectsStore.currentProject = { type: ProjectTypes.Personal } as Project;
|
||||
await rerender({});
|
||||
|
|
|
@ -23,7 +23,7 @@ const headerIcon = computed(() => {
|
|||
|
||||
const projectName = computed(() => {
|
||||
if (!projectsStore.currentProject) {
|
||||
return i18n.baseText('projects.menu.home');
|
||||
return i18n.baseText('projects.menu.overview');
|
||||
} else if (projectsStore.currentProject.type === ProjectTypes.Personal) {
|
||||
return i18n.baseText('projects.menu.personal');
|
||||
} else {
|
||||
|
|
|
@ -27,7 +27,7 @@ const isCreatingProject = ref(false);
|
|||
const isComponentMounted = ref(false);
|
||||
const home = computed<IMenuItem>(() => ({
|
||||
id: 'home',
|
||||
label: locale.baseText('projects.menu.home'),
|
||||
label: locale.baseText('projects.menu.overview'),
|
||||
icon: 'home',
|
||||
route: {
|
||||
to: { name: VIEWS.HOMEPAGE },
|
||||
|
|
|
@ -145,7 +145,12 @@ function onKeyDown(e: KeyboardEvent) {
|
|||
}
|
||||
}
|
||||
} else if (e.key === 'Enter') {
|
||||
emit('update:modelValue', sortedResources.value[hoverIndex.value].value);
|
||||
const selected = sortedResources.value[hoverIndex.value]?.value;
|
||||
|
||||
// Selected resource can be empty when loading or empty results
|
||||
if (selected) {
|
||||
emit('update:modelValue', selected);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ async function onCloseClick() {
|
|||
icon-size="medium"
|
||||
:round-corners="false"
|
||||
:data-test-id="`banners-${props.name}`"
|
||||
:only-bottom-border="true"
|
||||
>
|
||||
<div :class="[$style.mainContent, !hasTrailingContent ? $style.keepSpace : '']">
|
||||
<slot name="mainContent" />
|
||||
|
@ -78,10 +79,4 @@ async function onCloseClick() {
|
|||
align-items: center;
|
||||
gap: var(--spacing-l);
|
||||
}
|
||||
|
||||
:global(.n8n-callout) {
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
exports[`V1 Banner > should render banner 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="n8n-callout callout warning callout v1container"
|
||||
class="n8n-callout callout warning onlyBottomBorder callout v1container"
|
||||
data-test-id="banners-V1"
|
||||
role="alert"
|
||||
>
|
||||
|
@ -104,7 +104,7 @@ exports[`V1 Banner > should render banner 1`] = `
|
|||
exports[`V1 Banner > should render banner with dismiss call if user is owner 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="n8n-callout callout warning callout v1container"
|
||||
class="n8n-callout callout warning onlyBottomBorder callout v1container"
|
||||
data-test-id="banners-V1"
|
||||
role="alert"
|
||||
>
|
||||
|
|
|
@ -5,6 +5,10 @@ import type { PushMessage, PushPayload } from '@n8n/api-types';
|
|||
import { usePushConnection } from '@/composables/usePushConnection';
|
||||
import { usePushConnectionStore } from '@/stores/pushConnection.store';
|
||||
import { useOrchestrationStore } from '@/stores/orchestration.store';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import { useToast } from '@/composables/useToast';
|
||||
import type { WorkflowOperationError } from 'n8n-workflow';
|
||||
|
||||
vi.mock('vue-router', () => {
|
||||
return {
|
||||
|
@ -16,6 +20,19 @@ vi.mock('vue-router', () => {
|
|||
};
|
||||
});
|
||||
|
||||
vi.mock('@/composables/useToast', () => {
|
||||
const showMessage = vi.fn();
|
||||
const showError = vi.fn();
|
||||
return {
|
||||
useToast: () => {
|
||||
return {
|
||||
showMessage,
|
||||
showError,
|
||||
};
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
vi.useFakeTimers();
|
||||
|
||||
describe('usePushConnection()', () => {
|
||||
|
@ -23,6 +40,9 @@ describe('usePushConnection()', () => {
|
|||
let pushStore: ReturnType<typeof usePushConnectionStore>;
|
||||
let orchestrationStore: ReturnType<typeof useOrchestrationStore>;
|
||||
let pushConnection: ReturnType<typeof usePushConnection>;
|
||||
let uiStore: ReturnType<typeof useUIStore>;
|
||||
let workflowsStore: ReturnType<typeof useWorkflowsStore>;
|
||||
let toast: ReturnType<typeof useToast>;
|
||||
|
||||
beforeEach(() => {
|
||||
setActivePinia(createPinia());
|
||||
|
@ -30,7 +50,14 @@ describe('usePushConnection()', () => {
|
|||
router = vi.mocked(useRouter)();
|
||||
pushStore = usePushConnectionStore();
|
||||
orchestrationStore = useOrchestrationStore();
|
||||
uiStore = useUIStore();
|
||||
workflowsStore = useWorkflowsStore();
|
||||
pushConnection = usePushConnection({ router });
|
||||
toast = useToast();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
vi.restoreAllMocks();
|
||||
});
|
||||
|
||||
describe('initialize()', () => {
|
||||
|
@ -106,5 +133,89 @@ describe('usePushConnection()', () => {
|
|||
expect(result).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
describe('executionFinished', () => {
|
||||
it('should handle executionFinished event correctly', async () => {
|
||||
const event: PushMessage = {
|
||||
type: 'executionFinished',
|
||||
data: {
|
||||
executionId: '1',
|
||||
data: {
|
||||
data: {
|
||||
resultData: {
|
||||
runData: {},
|
||||
},
|
||||
},
|
||||
finished: true,
|
||||
mode: 'manual',
|
||||
startedAt: new Date(),
|
||||
stoppedAt: new Date(),
|
||||
status: 'success',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
workflowsStore.activeExecutionId = '1';
|
||||
uiStore.isActionActive.workflowRunning = true;
|
||||
|
||||
const result = await pushConnection.pushMessageReceived(event);
|
||||
|
||||
expect(result).toBeTruthy();
|
||||
expect(workflowsStore.workflowExecutionData).toBeDefined();
|
||||
expect(uiStore.isActionActive['workflowRunning']).toBeTruthy();
|
||||
|
||||
expect(toast.showMessage).toHaveBeenCalledWith({
|
||||
title: 'Workflow executed successfully',
|
||||
type: 'success',
|
||||
});
|
||||
});
|
||||
|
||||
it('should handle isManualExecutionCancelled correctly', async () => {
|
||||
const event: PushMessage = {
|
||||
type: 'executionFinished',
|
||||
data: {
|
||||
executionId: '1',
|
||||
data: {
|
||||
data: {
|
||||
startData: {},
|
||||
resultData: {
|
||||
runData: {
|
||||
'Last Node': [],
|
||||
},
|
||||
lastNodeExecuted: 'Last Node',
|
||||
error: {
|
||||
message:
|
||||
'Your trial has ended. <a href="https://app.n8n.cloud/account/change-plan">Upgrade now</a> to keep automating',
|
||||
name: 'NodeApiError',
|
||||
node: 'Last Node',
|
||||
} as unknown as WorkflowOperationError,
|
||||
},
|
||||
},
|
||||
startedAt: new Date(),
|
||||
mode: 'manual',
|
||||
status: 'running',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
workflowsStore.activeExecutionId = '1';
|
||||
uiStore.isActionActive['workflowRunning'] = true;
|
||||
|
||||
const result = await pushConnection.pushMessageReceived(event);
|
||||
|
||||
expect(useToast().showMessage).toHaveBeenCalledWith({
|
||||
message:
|
||||
'Your trial has ended. <a href="https://app.n8n.cloud/account/change-plan">Upgrade now</a> to keep automating',
|
||||
title: 'Problem in node ‘Last Node‘',
|
||||
type: 'error',
|
||||
duration: 0,
|
||||
dangerouslyUseHTMLString: true,
|
||||
});
|
||||
|
||||
expect(result).toBeTruthy();
|
||||
expect(workflowsStore.workflowExecutionData).toBeDefined();
|
||||
expect(uiStore.isActionActive.workflowRunning).toBeTruthy();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -423,6 +423,7 @@ export function usePushConnection({ router }: { router: ReturnType<typeof useRou
|
|||
message: runDataExecutedErrorMessage,
|
||||
type: 'error',
|
||||
duration: 0,
|
||||
dangerouslyUseHTMLString: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
55
packages/editor-ui/src/composables/useToast.test.ts
Normal file
55
packages/editor-ui/src/composables/useToast.test.ts
Normal file
|
@ -0,0 +1,55 @@
|
|||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { useToast } from './useToast';
|
||||
import { createPinia, setActivePinia } from 'pinia';
|
||||
import { ElNotification as Notification } from 'element-plus';
|
||||
|
||||
vi.mock('element-plus', async () => {
|
||||
const original = await vi.importActual('element-plus');
|
||||
return {
|
||||
...original,
|
||||
ElNotification: vi.fn(),
|
||||
ElTooltip: vi.fn(),
|
||||
};
|
||||
});
|
||||
|
||||
describe('useToast', () => {
|
||||
let toast: ReturnType<typeof useToast>;
|
||||
|
||||
beforeEach(() => {
|
||||
setActivePinia(createPinia());
|
||||
|
||||
toast = useToast();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
vi.restoreAllMocks();
|
||||
});
|
||||
|
||||
it('should show a message', () => {
|
||||
const messageData = { message: 'Test message', title: 'Test title' };
|
||||
toast.showMessage(messageData);
|
||||
|
||||
expect(Notification).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
message: 'Test message',
|
||||
title: 'Test title',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should sanitize message and title', () => {
|
||||
const messageData = {
|
||||
message: '<script>alert("xss")</script>',
|
||||
title: '<script>alert("xss")</script>',
|
||||
};
|
||||
|
||||
toast.showMessage(messageData);
|
||||
|
||||
expect(Notification).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
message: 'alert("xss")',
|
||||
title: 'alert("xss")',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
|
@ -2499,7 +2499,7 @@
|
|||
"settings.mfa.title": "Multi-factor Authentication",
|
||||
"settings.mfa.updateConfiguration": "MFA configuration updated",
|
||||
"settings.mfa.invalidAuthenticatorCode": "Invalid authenticator code",
|
||||
"projects.menu.home": "Home",
|
||||
"projects.menu.overview": "Overview",
|
||||
"projects.menu.title": "Projects",
|
||||
"projects.menu.personal": "Personal",
|
||||
"projects.menu.addProject": "Add project",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-node-dev",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"description": "CLI to simplify n8n credentials/node development",
|
||||
"main": "dist/src/index",
|
||||
"types": "dist/src/index.d.ts",
|
||||
|
|
|
@ -273,7 +273,10 @@ export class FacebookLeadAdsTrigger implements INodeType {
|
|||
return {
|
||||
id: lead.id,
|
||||
data: lead.field_data.reduce(
|
||||
(acc, field) => ({ ...acc, [field.name]: field.values[0] }),
|
||||
(acc, field) => ({
|
||||
...acc,
|
||||
[field.name]: field.values && field.values.length > 0 ? field.values[0] : null,
|
||||
}),
|
||||
{},
|
||||
),
|
||||
form: {
|
||||
|
|
|
@ -33,7 +33,7 @@ export async function facebookApiRequest(
|
|||
qs,
|
||||
body,
|
||||
gzip: true,
|
||||
uri: `https://graph.facebook.com/v17.0${resource}`,
|
||||
uri: `https://graph.facebook.com/v21.0${resource}`,
|
||||
json: true,
|
||||
};
|
||||
|
||||
|
@ -89,7 +89,7 @@ export async function facebookAppApiRequest(
|
|||
method,
|
||||
qs,
|
||||
gzip: true,
|
||||
uri: `https://graph.facebook.com/v17.0${resource}`,
|
||||
uri: `https://graph.facebook.com/v21.0${resource}`,
|
||||
json: true,
|
||||
};
|
||||
|
||||
|
@ -181,7 +181,7 @@ export async function facebookPageApiRequest(
|
|||
qs,
|
||||
body,
|
||||
gzip: true,
|
||||
uri: `https://graph.facebook.com/v17.0${resource}`,
|
||||
uri: `https://graph.facebook.com/v21.0${resource}`,
|
||||
json: true,
|
||||
};
|
||||
|
||||
|
|
|
@ -275,6 +275,7 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
|
|||
: '';
|
||||
throw new NodeOperationError(this.getNode(), `${failedMessage}${stoppedMessage}`, {
|
||||
description: errors.join('\n, '),
|
||||
itemIndex: i,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -575,7 +575,7 @@ export function mapFilters(filtersList: IDataObject[], timezone: string) {
|
|||
}
|
||||
|
||||
return Object.assign(obj, {
|
||||
['property']: getNameAndType(value.key as string).name,
|
||||
['property']: getNameAndType(value.key as string)?.name,
|
||||
[key]: { [`${value.condition}`]: valuePropertyName },
|
||||
});
|
||||
}, {});
|
||||
|
@ -606,7 +606,7 @@ function simplifyProperty(property: any) {
|
|||
) {
|
||||
result = property[type];
|
||||
} else if (['created_by', 'last_edited_by', 'select'].includes(property.type as string)) {
|
||||
result = property[type] ? property[type].name : null;
|
||||
result = property[type] ? property[type]?.name : null;
|
||||
} else if (['people'].includes(property.type as string)) {
|
||||
if (Array.isArray(property[type])) {
|
||||
result = property[type].map((person: any) => person.person?.email || {});
|
||||
|
@ -615,35 +615,35 @@ function simplifyProperty(property: any) {
|
|||
}
|
||||
} else if (['multi_select'].includes(property.type as string)) {
|
||||
if (Array.isArray(property[type])) {
|
||||
result = property[type].map((e: IDataObject) => e.name || {});
|
||||
result = property[type].map((e: IDataObject) => e?.name || {});
|
||||
} else {
|
||||
result = property[type].options.map((e: IDataObject) => e.name || {});
|
||||
result = property[type].options.map((e: IDataObject) => e?.name || {});
|
||||
}
|
||||
} else if (['relation'].includes(property.type as string)) {
|
||||
if (Array.isArray(property[type])) {
|
||||
result = property[type].map((e: IDataObject) => e.id || {});
|
||||
result = property[type].map((e: IDataObject) => e?.id || {});
|
||||
} else {
|
||||
result = property[type].database_id;
|
||||
result = property[type]?.database_id;
|
||||
}
|
||||
} else if (['formula'].includes(property.type as string)) {
|
||||
result = property[type][property[type].type];
|
||||
result = property[type]?.[property[type]?.type];
|
||||
} else if (['rollup'].includes(property.type as string)) {
|
||||
const rollupFunction = property[type].function as string;
|
||||
const rollupFunction = property[type]?.function as string;
|
||||
if (rollupFunction.startsWith('count') || rollupFunction.includes('empty')) {
|
||||
result = property[type].number;
|
||||
result = property[type]?.number;
|
||||
if (rollupFunction.includes('percent')) {
|
||||
result = result * 100;
|
||||
}
|
||||
} else if (rollupFunction.startsWith('show') && property[type].type === 'array') {
|
||||
} else if (rollupFunction.startsWith('show') && property[type]?.type === 'array') {
|
||||
const elements = property[type].array.map(simplifyProperty).flat();
|
||||
result = rollupFunction === 'show_unique' ? [...new Set(elements as string)] : elements;
|
||||
}
|
||||
} else if (['files'].includes(property.type as string)) {
|
||||
result = property[type].map(
|
||||
(file: { type: string; [key: string]: any }) => file[file.type].url,
|
||||
(file: { type: string; [key: string]: any }) => file[file.type]?.url,
|
||||
);
|
||||
} else if (['status'].includes(property.type as string)) {
|
||||
result = property[type].name;
|
||||
result = property[type]?.name;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-nodes-base",
|
||||
"version": "1.67.0",
|
||||
"version": "1.68.0",
|
||||
"description": "Base nodes of n8n",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "n8n-workflow",
|
||||
"version": "1.66.0",
|
||||
"version": "1.67.0",
|
||||
"description": "Workflow base code of n8n",
|
||||
"main": "dist/index.js",
|
||||
"module": "src/index.ts",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
import type { CallbackManager as CallbackManagerLC } from '@langchain/core/callbacks/manager';
|
||||
import type { AxiosProxyConfig } from 'axios';
|
||||
import type { AxiosProxyConfig, GenericAbortSignal } from 'axios';
|
||||
import type * as express from 'express';
|
||||
import type FormData from 'form-data';
|
||||
import type { PathLike } from 'fs';
|
||||
|
@ -529,6 +529,7 @@ export interface IHttpRequestOptions {
|
|||
};
|
||||
timeout?: number;
|
||||
json?: boolean;
|
||||
abortSignal?: GenericAbortSignal;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
158
pnpm-lock.yaml
158
pnpm-lock.yaml
|
@ -265,7 +265,7 @@ importers:
|
|||
version: 4.0.7
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
version: 1.7.4(debug@4.3.7)
|
||||
dotenv:
|
||||
specifier: 8.6.0
|
||||
version: 8.6.0
|
||||
|
@ -333,7 +333,7 @@ importers:
|
|||
dependencies:
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
version: 1.7.4(debug@4.3.7)
|
||||
|
||||
packages/@n8n/codemirror-lang:
|
||||
dependencies:
|
||||
|
@ -407,7 +407,7 @@ importers:
|
|||
version: 3.666.0(@aws-sdk/client-sts@3.666.0)
|
||||
'@getzep/zep-cloud':
|
||||
specifier: 1.0.12
|
||||
version: 1.0.12(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)(langchain@0.3.5(7umjwzmwnymi4lyinuvazmp6ki))
|
||||
version: 1.0.12(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)(langchain@0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja))
|
||||
'@getzep/zep-js':
|
||||
specifier: 0.9.0
|
||||
version: 0.9.0
|
||||
|
@ -434,7 +434,7 @@ importers:
|
|||
version: 0.3.1(@aws-sdk/client-sso-oidc@3.666.0(@aws-sdk/client-sts@3.666.0))(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)
|
||||
'@langchain/community':
|
||||
specifier: 0.3.11
|
||||
version: 0.3.11(simkpjwqw7qnwbripe37u5qu7a)
|
||||
version: 0.3.11(tzffvezibmkr4px5bpuitcp7xu)
|
||||
'@langchain/core':
|
||||
specifier: 'catalog:'
|
||||
version: 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
|
@ -521,7 +521,7 @@ importers:
|
|||
version: 23.0.1
|
||||
langchain:
|
||||
specifier: 0.3.5
|
||||
version: 0.3.5(7umjwzmwnymi4lyinuvazmp6ki)
|
||||
version: 0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja)
|
||||
lodash:
|
||||
specifier: 'catalog:'
|
||||
version: 4.17.21
|
||||
|
@ -774,7 +774,7 @@ importers:
|
|||
version: 1.11.0
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
version: 1.7.4(debug@4.3.7)
|
||||
bcryptjs:
|
||||
specifier: 2.4.3
|
||||
version: 2.4.3
|
||||
|
@ -1093,7 +1093,7 @@ importers:
|
|||
dependencies:
|
||||
'@langchain/core':
|
||||
specifier: 'catalog:'
|
||||
version: 0.3.15(openai@4.69.0(zod@3.23.8))
|
||||
version: 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
'@n8n/client-oauth2':
|
||||
specifier: workspace:*
|
||||
version: link:../@n8n/client-oauth2
|
||||
|
@ -1105,7 +1105,7 @@ importers:
|
|||
version: 1.11.0
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
version: 1.7.4(debug@4.3.7)
|
||||
concat-stream:
|
||||
specifier: 2.0.0
|
||||
version: 2.0.0
|
||||
|
@ -1395,7 +1395,7 @@ importers:
|
|||
version: 10.11.0(vue@3.5.11(typescript@5.6.2))
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
version: 1.7.4(debug@4.3.7)
|
||||
bowser:
|
||||
specifier: 2.11.0
|
||||
version: 2.11.0
|
||||
|
@ -1477,6 +1477,9 @@ importers:
|
|||
vue-chartjs:
|
||||
specifier: ^5.2.0
|
||||
version: 5.2.0(chart.js@4.4.0)(vue@3.5.11(typescript@5.6.2))
|
||||
vue-github-button:
|
||||
specifier: ^3.1.3
|
||||
version: 3.1.3
|
||||
vue-i18n:
|
||||
specifier: ^9.2.2
|
||||
version: 9.2.2(vue@3.5.11(typescript@5.6.2))
|
||||
|
@ -1872,7 +1875,7 @@ importers:
|
|||
version: 0.15.2
|
||||
axios:
|
||||
specifier: 'catalog:'
|
||||
version: 1.7.4
|
||||
version: 1.7.4(debug@4.3.7)
|
||||
callsites:
|
||||
specifier: 3.1.0
|
||||
version: 3.1.0
|
||||
|
@ -1918,7 +1921,7 @@ importers:
|
|||
devDependencies:
|
||||
'@langchain/core':
|
||||
specifier: 'catalog:'
|
||||
version: 0.3.15(openai@4.69.0)
|
||||
version: 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
'@types/deep-equal':
|
||||
specifier: ^1.0.1
|
||||
version: 1.0.1
|
||||
|
@ -5392,6 +5395,7 @@ packages:
|
|||
'@xmldom/xmldom@0.8.6':
|
||||
resolution: {integrity: sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
deprecated: this version has critical issues, please update to the latest version
|
||||
|
||||
a-sync-waterfall@1.0.1:
|
||||
resolution: {integrity: sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==}
|
||||
|
@ -7632,6 +7636,9 @@ packages:
|
|||
getpass@0.1.7:
|
||||
resolution: {integrity: sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==}
|
||||
|
||||
github-buttons@2.29.1:
|
||||
resolution: {integrity: sha512-TV3YgAKda5hPz75n7QXmGCsSzgVya1vvmBieebg3EB5ScmashTZ0FldViG1aU2d4V5rcAGrtQ7k5uAaCo0A4PA==}
|
||||
|
||||
github-from-package@0.0.0:
|
||||
resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==}
|
||||
|
||||
|
@ -12074,6 +12081,9 @@ packages:
|
|||
peerDependencies:
|
||||
eslint: '>=6.0.0'
|
||||
|
||||
vue-github-button@3.1.3:
|
||||
resolution: {integrity: sha512-ZdOnUuYJL/wUsxISsC96TARzCdf1twaWooZoI14+g4RHsJltPY+Agw6Ox6pjuMqMX0uhSK1JOMFUFNCQGlcZGA==}
|
||||
|
||||
vue-i18n@9.2.2:
|
||||
resolution: {integrity: sha512-yswpwtj89rTBhegUAv9Mu37LNznyu3NpyLQmozF3i1hYOhwpG8RjcjIFIIfnu+2MDZJGSZPXaKWvnQA71Yv9TQ==}
|
||||
engines: {node: '>= 14'}
|
||||
|
@ -14066,7 +14076,7 @@ snapshots:
|
|||
'@gar/promisify@1.1.3':
|
||||
optional: true
|
||||
|
||||
'@getzep/zep-cloud@1.0.12(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)(langchain@0.3.5(7umjwzmwnymi4lyinuvazmp6ki))':
|
||||
'@getzep/zep-cloud@1.0.12(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)(langchain@0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja))':
|
||||
dependencies:
|
||||
form-data: 4.0.0
|
||||
node-fetch: 2.7.0(encoding@0.1.13)
|
||||
|
@ -14075,7 +14085,7 @@ snapshots:
|
|||
zod: 3.23.8
|
||||
optionalDependencies:
|
||||
'@langchain/core': 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
langchain: 0.3.5(7umjwzmwnymi4lyinuvazmp6ki)
|
||||
langchain: 0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja)
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
|
||||
|
@ -14542,7 +14552,7 @@ snapshots:
|
|||
- aws-crt
|
||||
- encoding
|
||||
|
||||
'@langchain/community@0.3.11(simkpjwqw7qnwbripe37u5qu7a)':
|
||||
'@langchain/community@0.3.11(tzffvezibmkr4px5bpuitcp7xu)':
|
||||
dependencies:
|
||||
'@ibm-cloud/watsonx-ai': 1.1.2
|
||||
'@langchain/core': 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
|
@ -14552,7 +14562,7 @@ snapshots:
|
|||
flat: 5.0.2
|
||||
ibm-cloud-sdk-core: 5.1.0
|
||||
js-yaml: 4.1.0
|
||||
langchain: 0.3.5(7umjwzmwnymi4lyinuvazmp6ki)
|
||||
langchain: 0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja)
|
||||
langsmith: 0.2.3(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
uuid: 10.0.0
|
||||
zod: 3.23.8
|
||||
|
@ -14565,7 +14575,7 @@ snapshots:
|
|||
'@aws-sdk/client-s3': 3.666.0
|
||||
'@aws-sdk/credential-provider-node': 3.666.0(@aws-sdk/client-sso-oidc@3.666.0(@aws-sdk/client-sts@3.666.0))(@aws-sdk/client-sts@3.666.0)
|
||||
'@azure/storage-blob': 12.18.0(encoding@0.1.13)
|
||||
'@getzep/zep-cloud': 1.0.12(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)(langchain@0.3.5(7umjwzmwnymi4lyinuvazmp6ki))
|
||||
'@getzep/zep-cloud': 1.0.12(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)(langchain@0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja))
|
||||
'@getzep/zep-js': 0.9.0
|
||||
'@google-ai/generativelanguage': 2.6.0(encoding@0.1.13)
|
||||
'@google-cloud/storage': 7.12.1(encoding@0.1.13)
|
||||
|
@ -14629,38 +14639,6 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- openai
|
||||
|
||||
'@langchain/core@0.3.15(openai@4.69.0(zod@3.23.8))':
|
||||
dependencies:
|
||||
ansi-styles: 5.2.0
|
||||
camelcase: 6.3.0
|
||||
decamelize: 1.2.0
|
||||
js-tiktoken: 1.0.12
|
||||
langsmith: 0.2.3(openai@4.69.0(zod@3.23.8))
|
||||
mustache: 4.2.0
|
||||
p-queue: 6.6.2
|
||||
p-retry: 4.6.2
|
||||
uuid: 10.0.0
|
||||
zod: 3.23.8
|
||||
zod-to-json-schema: 3.23.3(zod@3.23.8)
|
||||
transitivePeerDependencies:
|
||||
- openai
|
||||
|
||||
'@langchain/core@0.3.15(openai@4.69.0)':
|
||||
dependencies:
|
||||
ansi-styles: 5.2.0
|
||||
camelcase: 6.3.0
|
||||
decamelize: 1.2.0
|
||||
js-tiktoken: 1.0.12
|
||||
langsmith: 0.2.3(openai@4.69.0)
|
||||
mustache: 4.2.0
|
||||
p-queue: 6.6.2
|
||||
p-retry: 4.6.2
|
||||
uuid: 10.0.0
|
||||
zod: 3.23.8
|
||||
zod-to-json-schema: 3.23.3(zod@3.23.8)
|
||||
transitivePeerDependencies:
|
||||
- openai
|
||||
|
||||
'@langchain/google-common@0.1.1(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8)':
|
||||
dependencies:
|
||||
'@langchain/core': 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
|
@ -15278,7 +15256,7 @@ snapshots:
|
|||
|
||||
'@rudderstack/rudder-sdk-node@2.0.9(tslib@2.6.2)':
|
||||
dependencies:
|
||||
axios: 1.7.4
|
||||
axios: 1.7.4(debug@4.3.7)
|
||||
axios-retry: 3.7.0
|
||||
component-type: 1.2.1
|
||||
join-component: 1.1.0
|
||||
|
@ -17534,23 +17512,7 @@ snapshots:
|
|||
'@babel/runtime': 7.24.7
|
||||
is-retry-allowed: 2.2.0
|
||||
|
||||
axios@1.7.4:
|
||||
dependencies:
|
||||
follow-redirects: 1.15.6(debug@4.3.6)
|
||||
form-data: 4.0.0
|
||||
proxy-from-env: 1.1.0
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
|
||||
axios@1.7.4(debug@4.3.7):
|
||||
dependencies:
|
||||
follow-redirects: 1.15.6(debug@4.3.7)
|
||||
form-data: 4.0.0
|
||||
proxy-from-env: 1.1.0
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
|
||||
axios@1.7.7:
|
||||
dependencies:
|
||||
follow-redirects: 1.15.6(debug@4.3.6)
|
||||
form-data: 4.0.0
|
||||
|
@ -19226,7 +19188,7 @@ snapshots:
|
|||
|
||||
eslint-import-resolver-node@0.3.9:
|
||||
dependencies:
|
||||
debug: 3.2.7(supports-color@5.5.0)
|
||||
debug: 3.2.7(supports-color@8.1.1)
|
||||
is-core-module: 2.13.1
|
||||
resolve: 1.22.8
|
||||
transitivePeerDependencies:
|
||||
|
@ -19251,7 +19213,7 @@ snapshots:
|
|||
|
||||
eslint-module-utils@2.8.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0):
|
||||
dependencies:
|
||||
debug: 3.2.7(supports-color@5.5.0)
|
||||
debug: 3.2.7(supports-color@8.1.1)
|
||||
optionalDependencies:
|
||||
'@typescript-eslint/parser': 7.2.0(eslint@8.57.0)(typescript@5.6.2)
|
||||
eslint: 8.57.0
|
||||
|
@ -19271,7 +19233,7 @@ snapshots:
|
|||
array.prototype.findlastindex: 1.2.3
|
||||
array.prototype.flat: 1.3.2
|
||||
array.prototype.flatmap: 1.3.2
|
||||
debug: 3.2.7(supports-color@5.5.0)
|
||||
debug: 3.2.7(supports-color@8.1.1)
|
||||
doctrine: 2.1.0
|
||||
eslint: 8.57.0
|
||||
eslint-import-resolver-node: 0.3.9
|
||||
|
@ -19983,6 +19945,8 @@ snapshots:
|
|||
dependencies:
|
||||
assert-plus: 1.0.0
|
||||
|
||||
github-buttons@2.29.1: {}
|
||||
|
||||
github-from-package@0.0.0: {}
|
||||
|
||||
github-slugger@2.0.0: {}
|
||||
|
@ -20062,7 +20026,7 @@ snapshots:
|
|||
array-parallel: 0.1.3
|
||||
array-series: 0.1.5
|
||||
cross-spawn: 4.0.2
|
||||
debug: 3.2.7(supports-color@5.5.0)
|
||||
debug: 3.2.7(supports-color@8.1.1)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
|
@ -20448,7 +20412,7 @@ snapshots:
|
|||
|
||||
infisical-node@1.3.0:
|
||||
dependencies:
|
||||
axios: 1.7.7
|
||||
axios: 1.7.7(debug@4.3.6)
|
||||
dotenv: 16.3.1
|
||||
tweetnacl: 1.0.3
|
||||
tweetnacl-util: 0.15.1
|
||||
|
@ -21378,7 +21342,7 @@ snapshots:
|
|||
|
||||
kuler@2.0.0: {}
|
||||
|
||||
langchain@0.3.5(7umjwzmwnymi4lyinuvazmp6ki):
|
||||
langchain@0.3.5(4ubssgvn2k3t3hxnzmxuoc2aja):
|
||||
dependencies:
|
||||
'@langchain/core': 0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8))
|
||||
'@langchain/openai': 0.3.11(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)
|
||||
|
@ -21402,7 +21366,7 @@ snapshots:
|
|||
'@langchain/groq': 0.1.2(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)
|
||||
'@langchain/mistralai': 0.1.1(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)
|
||||
'@langchain/ollama': 0.1.1(@langchain/core@0.3.15(openai@4.69.0(encoding@0.1.13)(zod@3.23.8)))
|
||||
axios: 1.7.4
|
||||
axios: 1.7.4(debug@4.3.7)
|
||||
cheerio: 1.0.0
|
||||
handlebars: 4.7.8
|
||||
transitivePeerDependencies:
|
||||
|
@ -21421,28 +21385,6 @@ snapshots:
|
|||
optionalDependencies:
|
||||
openai: 4.69.0(encoding@0.1.13)(zod@3.23.8)
|
||||
|
||||
langsmith@0.2.3(openai@4.69.0(zod@3.23.8)):
|
||||
dependencies:
|
||||
'@types/uuid': 10.0.0
|
||||
commander: 10.0.1
|
||||
p-queue: 6.6.2
|
||||
p-retry: 4.6.2
|
||||
semver: 7.6.0
|
||||
uuid: 10.0.0
|
||||
optionalDependencies:
|
||||
openai: 4.69.0(zod@3.23.8)
|
||||
|
||||
langsmith@0.2.3(openai@4.69.0):
|
||||
dependencies:
|
||||
'@types/uuid': 10.0.0
|
||||
commander: 10.0.1
|
||||
p-queue: 6.6.2
|
||||
p-retry: 4.6.2
|
||||
semver: 7.6.0
|
||||
uuid: 10.0.0
|
||||
optionalDependencies:
|
||||
openai: 4.69.0(zod@3.23.8)
|
||||
|
||||
lazy-ass@1.6.0: {}
|
||||
|
||||
ldapts@4.2.6:
|
||||
|
@ -22777,22 +22719,6 @@ snapshots:
|
|||
- encoding
|
||||
- supports-color
|
||||
|
||||
openai@4.69.0(zod@3.23.8):
|
||||
dependencies:
|
||||
'@types/node': 18.16.16
|
||||
'@types/node-fetch': 2.6.4
|
||||
abort-controller: 3.0.0
|
||||
agentkeepalive: 4.2.1
|
||||
form-data-encoder: 1.7.2
|
||||
formdata-node: 4.4.1
|
||||
node-fetch: 2.7.0(encoding@0.1.13)
|
||||
optionalDependencies:
|
||||
zod: 3.23.8
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
optional: true
|
||||
|
||||
openapi-sampler@1.5.1:
|
||||
dependencies:
|
||||
'@types/json-schema': 7.0.15
|
||||
|
@ -22973,7 +22899,7 @@ snapshots:
|
|||
|
||||
pdf-parse@1.1.1:
|
||||
dependencies:
|
||||
debug: 3.2.7(supports-color@5.5.0)
|
||||
debug: 3.2.7(supports-color@8.1.1)
|
||||
node-ensure: 0.0.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
@ -23175,7 +23101,7 @@ snapshots:
|
|||
|
||||
posthog-node@3.2.1:
|
||||
dependencies:
|
||||
axios: 1.7.7
|
||||
axios: 1.7.7(debug@4.3.6)
|
||||
rusha: 0.8.14
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
|
@ -23804,7 +23730,7 @@ snapshots:
|
|||
|
||||
rhea@1.0.24:
|
||||
dependencies:
|
||||
debug: 3.2.7(supports-color@5.5.0)
|
||||
debug: 3.2.7(supports-color@8.1.1)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
|
@ -24180,7 +24106,7 @@ snapshots:
|
|||
asn1.js: 5.4.1
|
||||
asn1.js-rfc2560: 5.0.1(asn1.js@5.4.1)
|
||||
asn1.js-rfc5280: 3.0.0
|
||||
axios: 1.7.7
|
||||
axios: 1.7.7(debug@4.3.6)
|
||||
big-integer: 1.6.51
|
||||
bignumber.js: 9.1.2
|
||||
binascii: 0.0.2
|
||||
|
@ -25420,6 +25346,10 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
vue-github-button@3.1.3:
|
||||
dependencies:
|
||||
github-buttons: 2.29.1
|
||||
|
||||
vue-i18n@9.2.2(vue@3.5.11(typescript@5.6.2)):
|
||||
dependencies:
|
||||
'@intlify/core-base': 9.2.2
|
||||
|
|
Loading…
Reference in a new issue