diff --git a/code/org.gluu.agama.passkey.add.flow b/code/org.gluu.agama.passkey.add.flow index f510c84..d895ee0 100644 --- a/code/org.gluu.agama.passkey.add.flow +++ b/code/org.gluu.agama.passkey.add.flow @@ -33,8 +33,8 @@ Repeat 5 times max // If there is an active registration flow, it will be canceled obj.isAttestation = false // Ends the flow by replying to the user's inum - it_talgd = {success:true, data: { userId: inum, response: nicknameTrigger }} - Finish it_talgd + it_satjm = {success:true, data: { userId: inum, response: nicknameTrigger }} + Finish it_satjm When E is not null // Show error with detail obtained from verify method obj.isAttestation = false @@ -43,8 +43,8 @@ Repeat 5 times max obj.errorMessage = E.message When addDeviceForm.cancelBtn is "" // Ends the flow because the user cancels it - it_hivis = {success:false, error: "Cancel event"} - Finish it_hivis + it_ltlxb = {success:false, error: "Cancel event"} + Finish it_ltlxb // Finish with error, because the limit of attempts was exceeded. -it_lkaku = {success:false, error: "Passkey registration attempt exceeded."} -Finish it_lkaku \ No newline at end of file +it_qvsge = {success:false, error: "Passkey registration attempt exceeded."} +Finish it_qvsge \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.add.json b/code/org.gluu.agama.passkey.add.json index 24c1d07..564a18b 100644 --- a/code/org.gluu.agama.passkey.add.json +++ b/code/org.gluu.agama.passkey.add.json @@ -1,372 +1,310 @@ { "nodes": [ { - "width": 211, - "height": 30, - "id": "Agama-note-98599c36-fb06-4c7d-8249-c979155a6846", - "position": { - "x": 2923.129382736351, - "y": 296.7565811825262 - }, - "type": "notes", "data": { - "id": "Agama-note-98599c36-fb06-4c7d-8249-c979155a6846", - "type": "Agama-note", - "notes": "If the verification fails", - "position": { - "x": 2923.129382736351, - "y": 296.7565811825262 + "agamaData": { + "isTopLevelFlow": true, + "basepath": "", + "configParams": "{}", + "creationDate": "29/11/2024", + "nodeIcon": "material-symbols:line-start-square", + "timeout": "", + "inputs": "userData", + "configs": "", + "flowname": "org.gluu.agama.passkey.add", + "displayName": "Passkey Add", + "hasComment": true, + "comment": "Flow that takes care of registering a new Passkey" }, - "skake": false + "id": "startNode-c4aa69a5-2ac1-4d79-b721-e46cc6f3e753", + "type": "startNode", + "position": { + "x": 50, + "y": 200 + } }, - "selected": false, - "positionAbsolute": { - "x": 2923.129382736351, - "y": 296.7565811825262 + "type": "startNode", + "id": "startNode-c4aa69a5-2ac1-4d79-b721-e46cc6f3e753", + "position": { + "x": 50, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-b2a3fdaa-5e64-4944-b335-301f93a1d118", - "position": { - "x": 2519.5, - "y": 285.7 - }, - "type": "notes", "data": { - "id": "Agama-note-b2a3fdaa-5e64-4944-b335-301f93a1d118", - "type": "Agama-note", - "notes": "If the verification was successfully", + "agamaData": { + "nodeIcon": "material-symbols:equal", + "displayName": "", + "hasComment": true, + "comment": "Set \"inum\" obtained from userData", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "userData.inum", + "assignedVariableName": "inum" + } + ] + }, + "id": "assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45", + "type": "assignmentNode", "position": { - "x": 2519.5, - "y": 285.7 + "x": 300, + "y": 200 }, - "skake": false + "previousNodeId": "startNode-c4aa69a5-2ac1-4d79-b721-e46cc6f3e753" }, - "selected": false, - "positionAbsolute": { - "x": 2519.5, - "y": 285.7 + "type": "assignmentNode", + "id": "assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45", + "position": { + "x": 300, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 55, - "id": "Agama-note-f505a12b-3dc3-4eae-b7df-2919259427c5", - "position": { - "x": 2382.090062100262, - "y": 23.801467714093917 - }, - "type": "notes", "data": { - "id": "Agama-note-f505a12b-3dc3-4eae-b7df-2919259427c5", - "type": "Agama-note", - "notes": "If the user does not start the passkey registration process and cancels all flow", + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "FidoEnroller instance", + "hasComment": true, + "comment": "Get Instance FidoEnroller", + "javaClassName": "org.gluu.agama.passkey.enroll.FidoEnroller", + "javaMethodName": "", + "javaVariableName": "org.gluu.agama.passkey.enroll.FidoEnroller", + "exceptionVariableField": "", + "callType": "Create an instance", + "arguments": [], + "asssignedVariableName": "fidoEnroller" + }, + "id": "callNode-cf473884-3cc9-416a-880d-28c2bff33fa6", + "type": "callNode", "position": { - "x": 2382.090062100262, - "y": 23.801467714093917 + "x": 550, + "y": 200 }, - "skake": false + "previousNodeId": "assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45" }, - "selected": false, - "positionAbsolute": { - "x": 2382.090062100262, - "y": 23.801467714093917 + "type": "callNode", + "id": "callNode-cf473884-3cc9-416a-880d-28c2bff33fa6", + "position": { + "x": 550, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-2bd0b6c1-3ba5-45fa-87b9-7906057b40e5", - "position": { - "x": 2021, - "y": 29.599999999999994 - }, - "type": "notes", "data": { - "id": "Agama-note-2bd0b6c1-3ba5-45fa-87b9-7906057b40e5", - "type": "Agama-note", - "notes": "When the user completes the passkey registration process", + "agamaData": { + "nodeIcon": "material-symbols:equal", + "displayName": "", + "hasComment": true, + "comment": "Declaration of the variable \"obj\" with initial data", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "{ attestation: \"{}\", isAttestation: false, showError: false, errorTitle: \"\", errorMessage: \"\" }", + "assignedVariableName": "obj" + } + ] + }, + "id": "assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654", + "type": "assignmentNode", "position": { - "x": 2021, - "y": 29.599999999999994 + "x": 800, + "y": 200 }, - "skake": false + "previousNodeId": "callNode-cf473884-3cc9-416a-880d-28c2bff33fa6" }, - "selected": false, - "positionAbsolute": { - "x": 2021, - "y": 29.599999999999994 + "type": "assignmentNode", + "id": "assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654", + "position": { + "x": 800, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-e3fc0b42-3ce1-4f12-932c-42060d1b7700", - "position": { - "x": 1687.7374999999997, - "y": 28 - }, - "type": "notes", "data": { - "id": "Agama-note-e3fc0b42-3ce1-4f12-932c-42060d1b7700", - "type": "Agama-note", - "notes": "When the user cancels the passkey registration process", + "agamaData": { + "nodeIcon": "material-symbols:event-repeat-outline-rounded", + "displayName": "Repeat 5 times", + "hasComment": true, + "comment": "", + "maxIteration": "5", + "maxIterationVariableName": "" + }, + "id": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "type": "repeatNode", "position": { - "x": 1687.7374999999997, - "y": 28 + "x": 1050, + "y": 200 }, - "skake": false + "previousNodeId": "assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654" }, - "selected": false, - "positionAbsolute": { - "x": 1687.7374999999997, - "y": 28 + "type": "repeatNode", + "id": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "position": { + "x": 1050, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 55, - "id": "Agama-note-72c0a5bd-7a4d-43d6-bd49-718cb2b773fd", - "position": { - "x": 1350, - "y": 16 - }, - "type": "notes", "data": { - "id": "Agama-note-72c0a5bd-7a4d-43d6-bd49-718cb2b773fd", - "type": "Agama-note", - "notes": "When the user presses the button, the passkey registration process starts", + "agamaData": { + "nodeIcon": "material-symbols:line-end-square-rounded", + "nodeColor": "#eb999a", + "displayName": "Response error", + "hasComment": true, + "comment": "Finish with error, because the limit of attempts was exceeded.", + "returnVariable": "Passkey registration attempt exceeded.", + "finishMode": "withFailure" + }, + "id": "finishNode-c7bbb0d3-7a15-4b1d-9594-303e6531fc3b", + "type": "finishNode", "position": { - "x": 1350, - "y": 16 + "x": 1300, + "y": 200 }, - "skake": false + "previousNodeId": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 1350, - "y": 16 + "type": "finishNode", + "id": "finishNode-c7bbb0d3-7a15-4b1d-9594-303e6531fc3b", + "position": { + "x": 1300, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "finish-aa9b5b7b-1306-4e1b-ac11-bc113973efcc", - "position": { - "x": 3268.390405085309, - "y": 548.0203304705266 - }, - "type": "finish", "data": { - "id": "finish-aa9b5b7b-1306-4e1b-ac11-bc113973efcc", - "type": "Agama-finish-Flow", - "parentId": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "whenCondition": "", - "inRepeatBlock": true, - "handles": [], - "position": { - "x": 3268.390405085309, - "y": 548.0203304705266 - }, "agamaData": { - "id": "finish-aa9b5b7b-1306-4e1b-ac11-bc113973efcc", - "parentId": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, + "nodeIcon": "ph:globe-simple", + "displayName": "Render passkey add view", "hasComment": true, - "comment": "Ends the flow by replying to the user's inum", - "flowfilename": "", - "returnVariable": "{ userId: inum, response: nicknameTrigger }", - "nodeIcon": "material-symbols:line-end-square-rounded", - "finishMode": "withSuccess", - "displayName": "Response success" + "comment": "Load passkey-add.ftlh page", + "arguments": [ + "obj" + ], + "templatePath": "passkey-add.ftlh", + "asssignedVariableName": "addDeviceForm" }, - "skake": false + "id": "rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13", + "type": "rrfNode", + "position": { + "x": 1300, + "y": 450 + }, + "previousNodeId": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "branching": "repeat" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 3268.390405085309, - "y": 548.0203304705266 + "type": "rrfNode", + "id": "rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13", + "position": { + "x": 1300, + "y": 450 + }, + "measured": { + "width": 170, + "height": 124 } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "position": { - "x": 2998.711838060967, - "y": 551.3813347221254 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "type": "Agama-assignment-Node", - "parentId": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 2998.711838060967, - "y": 551.3813347221254 - }, "agamaData": { - "id": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "parentId": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "type": "Agama-assignment-Node", - "displayName": "", "hasComment": true, - "comment": "If there is an active registration flow, it will be canceled", - "whenCondition": "", - "inRepeatBlock": true, - "assignments": [ + "conditions": [ { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAttestation" + "variable": "addDeviceForm.addPasskeyBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "type": "whenNode", + "position": { + "x": 1550, + "y": 450 }, - "skake": false + "previousNodeId": "rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 2998.711838060967, - "y": 551.3813347221254 + "type": "whenNode", + "id": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "position": { + "x": 1550, + "y": 450 + }, + "measured": { + "width": 110, + "height": 60 } }, { - "width": 170, - "height": 124, - "id": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "position": { - "x": 2732.929153619497, - "y": 551.3813347221254 - }, - "type": "trigger", "data": { - "id": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "type": "Agama-trigger-Node", - "parentId": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2747.929153619497, - "y": 551.3813347221254 - }, "agamaData": { - "id": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "parentId": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "type": "Agama-trigger-Node", - "displayName": "Nickname trigger view", + "nodeIcon": "material-symbols:code", + "displayName": "Attestation request", "hasComment": true, - "comment": "Flow to assign a nickname to the registered passkey", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "nodeIcon": "fluent-mdl2:trigger-approval", - "flowFileName": "org.gluu.agama.passkey.nickname", + "comment": "Invoke the method to initiate passkey registration", + "javaClassName": "", + "javaMethodName": "getAttestationMessage", + "javaVariableName": "fidoEnroller", + "exceptionVariableField": "", + "callType": "Call method on instance", "arguments": [ - "key", - "userData" + "inum" ], - "asssignedVariableName": "nicknameTrigger", - "exceptionVariableField": "", - "nodeColor": "#80deea" + "asssignedVariableName": "detestable" }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2732.929153619497, - "y": 551.3813347221254 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "finish-66411d62-3b1a-41c1-a1c1-991409763972", - "position": { - "x": 1105.4271181503207, - "y": 305.17520891631307 - }, - "type": "finish", - "data": { - "id": "finish-66411d62-3b1a-41c1-a1c1-991409763972", - "type": "Agama-finish-Flow", - "parentId": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "whenCondition": "", - "inRepeatBlock": false, - "handles": [ - "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InFlow", - "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InRepeatBlock" - ], + "id": "callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc", + "type": "callNode", "position": { - "x": 1105.4271181503207, - "y": 305.17520891631307 - }, - "agamaData": { - "id": "finish-66411d62-3b1a-41c1-a1c1-991409763972", - "parentId": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, - "hasComment": true, - "comment": "Finish with error, because the limit of attempts was exceeded.", - "flowfilename": "", - "returnVariable": "Passkey registration attempt exceeded.", - "finishMode": "withFailure", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response error", - "nodeColor": "#eb999a" + "x": 1800, + "y": 700 }, - "skake": false + "previousNodeId": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1105.4271181503207, - "y": 305.17520891631307 + "type": "callNode", + "id": "callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc", + "position": { + "x": 1800, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-30e73be7-0542-4a65-a91e-afe17fb7e07a", - "position": { - "x": 1870.6734620832526, - "y": 530.951113831695 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-30e73be7-0542-4a65-a91e-afe17fb7e07a", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 1870.6734620832526, - "y": 530.951113831695 - }, "agamaData": { - "id": "Agama-assignment-Node-30e73be7-0542-4a65-a91e-afe17fb7e07a", - "parentId": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, "comment": "Show registration flow", - "whenCondition": "", - "inRepeatBlock": true, "assignments": [ { "variableTypeCheck": false, @@ -383,94 +321,67 @@ "assignmentExpression": "false", "assignedVariableName": "obj.showError" } - ], - "nodeIcon": "material-symbols:equal" + ] }, - "skake": false + "id": "assignmentNode-c64036fc-413f-4214-ac73-72aa79893aa6", + "type": "assignmentNode", + "position": { + "x": 2050, + "y": 700 + }, + "previousNodeId": "callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc" }, - "selected": false, - "positionAbsolute": { - "x": 1870.6734620832526, - "y": 530.951113831695 + "type": "assignmentNode", + "id": "assignmentNode-c64036fc-413f-4214-ac73-72aa79893aa6", + "position": { + "x": 2050, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "position": { - "x": 1577.468231853858, - "y": 362.1735954585718 - }, - "type": "call", "data": { - "id": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 1577.468231853858, - "y": 362.1735954585718 - }, "agamaData": { - "id": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "parentId": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "type": "Agama-call-Node", - "displayName": "Attestation request", "hasComment": true, - "comment": "Invoke the method to initiate passkey registration", - "javaClassName": "", - "javaMethodName": "getAttestationMessage", - "javaVariableName": "fidoEnroller", - "exceptionVariableField": "", - "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "arguments": [ - "inum" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "detestable" + "conditions": [ + { + "variable": "addDeviceForm.skipped", + "operator": "is", + "dataValue": "\"skipped\"", + "combinator": "none" + } + ] }, - "skake": false + "id": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "type": "whenNode", + "position": { + "x": 1800, + "y": 450 + }, + "previousNodeId": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 1577.468231853858, - "y": 362.1735954585718 + "type": "whenNode", + "id": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "position": { + "x": 1800, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-a6c6a912-328f-437b-8f2e-e919d507dea8", - "position": { - "x": 1939.6532737181922, - "y": 283.96563906365174 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-a6c6a912-328f-437b-8f2e-e919d507dea8", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 1939.6532737181922, - "y": 283.96563906365174 - }, "agamaData": { - "id": "Agama-assignment-Node-a6c6a912-328f-437b-8f2e-e919d507dea8", - "parentId": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, "comment": "Process cancellation error displayed", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, "assignments": [ { "variableTypeCheck": false, @@ -492,102 +403,67 @@ "assignmentExpression": "addDeviceForm.errorMessage", "assignedVariableName": "obj.errorMessage" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "assignmentNode-d0574732-feda-4b39-81be-d7480569206b", + "type": "assignmentNode", + "position": { + "x": 2050, + "y": 700 }, - "skake": false + "previousNodeId": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1939.6532737181922, - "y": 283.96563906365174 + "type": "assignmentNode", + "id": "assignmentNode-d0574732-feda-4b39-81be-d7480569206b", + "position": { + "x": 1953.7626870218223, + "y": 566.1046080303612 }, + "measured": { + "width": 170, + "height": 124 + }, + "selected": false, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-0736a836-5e6e-467a-a039-1b78c39b2191", - "position": { - "x": 3302.84139737471, - "y": 286.07357548122695 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-0736a836-5e6e-467a-a039-1b78c39b2191", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 3302.84139737471, - "y": 286.07357548122695 - }, "agamaData": { - "id": "Agama-assignment-Node-0736a836-5e6e-467a-a039-1b78c39b2191", - "parentId": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", - "type": "Agama-assignment-Node", - "displayName": "", "hasComment": true, - "comment": "Show error with detail obtained from verify method", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAttestation" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "true", - "assignedVariableName": "obj.showError" - }, - { - "variableTypeCheck": true, - "assignmentExpression": "Passkey registration failed.", - "assignedVariableName": "obj.errorTitle" - }, + "conditions": [ { - "variableTypeCheck": false, - "assignmentExpression": "E.message", - "assignedVariableName": "obj.errorMessage" + "variable": "addDeviceForm.tokenResponse", + "operator": "is not", + "dataValue": "\"\"", + "combinator": "none" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "type": "whenNode", + "position": { + "x": 2050, + "y": 450 }, - "skake": false + "previousNodeId": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 3302.84139737471, - "y": 286.07357548122695 + "type": "whenNode", + "id": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "position": { + "x": 2050, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "position": { - "x": 2237.637495839028, - "y": 288.20501285234945 - }, - "type": "call", "data": { - "id": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2237.637495839028, - "y": 288.20501285234945 - }, "agamaData": { - "id": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "parentId": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "type": "Agama-call-Node", + "nodeIcon": "material-symbols:code", "displayName": "Attestation verify", "hasComment": true, "comment": "Invoke method to verify passkey registration", @@ -596,1117 +472,725 @@ "javaVariableName": "fidoEnroller", "exceptionVariableField": "E", "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, "arguments": [ "inum", "addDeviceForm.tokenResponse" ], - "nodeIcon": "material-symbols:code", "asssignedVariableName": "key" }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 2237.637495839028, - "y": 288.20501285234945 - } - }, - { - "width": 170, - "height": 124, - "id": "finish-56b9136c-5cdc-4ef4-8943-92479fe7d895", - "position": { - "x": 2830.3665260302632, - "y": 36.13464683370225 - }, - "type": "finish", - "data": { - "id": "finish-56b9136c-5cdc-4ef4-8943-92479fe7d895", - "type": "Agama-finish-Flow", - "parentId": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "handles": [ - "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e.FAILURE", - "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e.SUCCESS" - ], + "id": "callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98", + "type": "callNode", "position": { - "x": 2830.3665260302632, - "y": 36.13464683370225 + "x": 2300, + "y": 700 }, - "agamaData": { - "id": "finish-56b9136c-5cdc-4ef4-8943-92479fe7d895", - "parentId": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, - "hasComment": true, - "comment": "Ends the flow because the user cancels it", - "flowfilename": "", - "returnVariable": "Cancel event", - "finishMode": "withFailure", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "", - "nodeColor": "#eb999a" - }, - "skake": false + "previousNodeId": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 2830.3665260302632, - "y": 36.13464683370225 + "type": "callNode", + "id": "callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98", + "position": { + "x": 2300, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "position": { - "x": 1111.2312188408016, - "y": 33.300565596259844 - }, - "type": "rrf", "data": { - "id": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "type": "Agama-rrf-Node", - "parentId": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 1111.2312188408016, - "y": 33.300565596259844 - }, "agamaData": { - "id": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "parentId": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "type": "Agama-rrf-Node", - "displayName": "Render passkey add view", "hasComment": true, - "comment": "Load passkey-add.ftlh page", - "whenCondition": "", - "inRepeatBlock": true, - "assignments": [], - "nodeIcon": "ph:globe-simple", - "templatePath": "passkey-add.ftlh", - "asssignedVariableName": "addDeviceForm", - "arguments": [ - "obj" + "conditions": [ + { + "variable": "E", + "operator": "is", + "dataValue": "null", + "combinator": "and" + }, + { + "variable": "key", + "operator": "is not", + "dataValue": "null", + "combinator": "none" + } ] }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 1111.2312188408016, - "y": 33.300565596259844 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "position": { - "x": 851.4714909797192, - "y": 27.5 - }, - "type": "repeat", - "data": { - "id": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "type": "Agama-repeat-Node", - "parentId": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "whenCondition": "", - "inRepeatBlock": false, - "handles": [ - "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InFlow", - "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InRepeatBlock" - ], + "id": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "type": "whenNode", "position": { - "x": 851.4714909797192, - "y": 27.5 - }, - "agamaData": { - "id": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "parentId": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "type": "Agama-repeat-Node", - "nodeIcon": "material-symbols:event-repeat-outline-rounded", - "maxIteration": "5", - "maxIterationVariableName": "", - "hasComment": true, - "hasNoRepeat": true, - "displayName": "Repeat 5 times", - "comment": "" + "x": 2550, + "y": 700 }, - "skake": false + "previousNodeId": "callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98" }, - "selected": false, - "positionAbsolute": { - "x": 851.4714909797192, - "y": 27.5 + "type": "whenNode", + "id": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "position": { + "x": 2550, + "y": 700 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "position": { - "x": 628, - "y": 27.12944943670385 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 628, - "y": 27.12944943670385 - }, "agamaData": { - "id": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "parentId": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", - "type": "Agama-assignment-Node", - "displayName": "", + "nodeIcon": "fluent-mdl2:trigger-approval", + "nodeColor": "#80deea", + "displayName": "Nickname trigger view", "hasComment": true, - "comment": "Declaration of the variable \"obj\" with initial data", - "whenCondition": "", - "inRepeatBlock": false, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "{ attestation: \"{}\", isAttestation: false, showError: false, errorTitle: \"\", errorMessage: \"\" }", - "assignedVariableName": "obj" - } + "comment": "Flow to assign a nickname to the registered passkey", + "flowFileName": "org.gluu.agama.passkey.nickname", + "arguments": [ + "key", + "userData" ], - "nodeIcon": "material-symbols:equal" + "asssignedVariableName": "nicknameTrigger", + "exceptionVariableField": "" }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 628, - "y": 27.12944943670385 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", - "position": { - "x": 428, - "y": 28 - }, - "type": "call", - "data": { - "id": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", - "type": "Agama-call-Node", - "parentId": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", - "whenCondition": "", - "inRepeatBlock": false, + "id": "triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e", + "type": "triggerNode", "position": { - "x": 428, - "y": 28 - }, - "agamaData": { - "id": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", - "parentId": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", - "type": "Agama-call-Node", - "displayName": "FidoEnroller instance", - "hasComment": true, - "comment": "Get Instance FidoEnroller", - "javaClassName": "org.gluu.agama.passkey.enroll.FidoEnroller", - "javaMethodName": "", - "javaVariableName": "org.gluu.agama.passkey.enroll.FidoEnroller", - "exceptionVariableField": "", - "callType": "Create an instance", - "whenCondition": "", - "inRepeatBlock": false, - "arguments": [], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "fidoEnroller" + "x": 2800, + "y": 950 }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 428, - "y": 28 + "previousNodeId": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "branching": "success" }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", + "type": "triggerNode", + "id": "triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e", "position": { - "x": 229, - "y": 29 + "x": 2800, + "y": 950 }, - "type": "assignment", + "measured": { + "width": 170, + "height": 124 + } + }, + { "data": { - "id": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", - "type": "Agama-assignment-Node", - "parentId": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 229, - "y": 29 - }, "agamaData": { - "id": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", - "parentId": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, - "comment": "Set \"inum\" obtained from userData", - "whenCondition": "", - "inRepeatBlock": false, + "comment": "If there is an active registration flow, it will be canceled", "assignments": [ { "variableTypeCheck": false, - "assignmentExpression": "userData.inum", - "assignedVariableName": "inum" + "assignmentExpression": "false", + "assignedVariableName": "obj.isAttestation" } - ], - "nodeIcon": "material-symbols:equal" + ] }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 229, - "y": 29 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "start", - "sourcePosition": "right", - "data": { - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "Agama-start-Flow", + "id": "assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f", + "type": "assignmentNode", "position": { - "x": 29, - "y": 29 - }, - "inRepeatBlock": false, - "agamaData": { - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "Agama-start-Flow", - "displayName": "Passkey Add", - "hasComment": true, - "comment": "Flow that takes care of registering a new Passkey", - "isTopLevelFlow": true, - "basepath": "", - "configParams": "{}", - "nodeIcon": "material-symbols:line-start-square", - "timeout": "", - "inputs": "userData", - "configs": "", - "flowname": "org.gluu.agama.passkey.add" + "x": 3050, + "y": 950 }, - "skake": false + "previousNodeId": "triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e" }, + "type": "assignmentNode", + "id": "assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f", "position": { - "x": 29, - "y": 29 - }, - "selected": false, - "positionAbsolute": { - "x": 29, - "y": 29 + "x": 3050, + "y": 950 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "position": { - "x": 359.30759034526636, - "y": 2.1927034103583765 - }, - "parentId": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "type": "when", "data": { - "id": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 359.30759034526636, - "y": 2.1927034103583765 - }, "agamaData": { - "id": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "parentId": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "type": "Agama-when-Node", - "conditions": [ - { - "variable": "addDeviceForm.cancelBtn", - "operator": "is", - "dataValue": "\"\"", - "combinator": "none" - } - ], + "nodeIcon": "material-symbols:line-end-square-rounded", + "displayName": "Response success", "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 1529.977459344481 - } + "comment": "Ends the flow by replying to the user's inum", + "returnVariable": "{ userId: inum, response: nicknameTrigger }", + "finishMode": "withSuccess" + }, + "id": "finishNode-bb508770-ba55-4533-a730-4d4cde431205", + "type": "finishNode", + "position": { + "x": 3300, + "y": 950 }, - "handles": [ - "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e.FAILURE", - "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e.SUCCESS" - ], - "skake": false + "previousNodeId": "assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f" }, - "selected": false, - "positionAbsolute": { - "x": 2453.213089034745, - "y": 108.41885097472806 + "type": "finishNode", + "id": "finishNode-bb508770-ba55-4533-a730-4d4cde431205", + "position": { + "x": 3300, + "y": 950 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "position": { - "x": 375.98657943608623, - "y": 7.6161881717894175 - }, - "parentId": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "type": "when", "data": { - "id": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 375.98657943608623, - "y": 7.6161881717894175 - }, "agamaData": { - "id": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "parentId": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { - "variable": "addDeviceForm.tokenResponse", + "variable": "E", "operator": "is not", - "dataValue": "\"\"", + "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 1522.8396830800157 - } + ] + }, + "id": "whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb", + "type": "whenNode", + "position": { + "x": 2800, + "y": 700 }, - "handles": [ - "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b.FAILURE", - "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "branching": "continue" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 2093.9054986894785, - "y": 106.22614756436968 + "type": "whenNode", + "id": "whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb", + "position": { + "x": 2800, + "y": 700 }, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "position": { - "x": 307.1268333474454, - "y": 63.877591218139 - }, - "parentId": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "type": "when", "data": { - "id": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "type": "Agama-when-Node", - "parentId": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "whenCondition": "WhenFalse", - "inRepeatBlock": true, - "position": { - "x": 307.1268333474454, - "y": 63.877591218139 - }, "agamaData": { - "id": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "parentId": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ + "nodeIcon": "material-symbols:equal", + "displayName": "", + "hasComment": true, + "comment": "Show error with detail obtained from verify method", + "assignments": [ { - "variable": "addDeviceForm.addPasskeyBtn", - "operator": "is", - "dataValue": "\"\"", - "combinator": "none" + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAttestation" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "true", + "assignedVariableName": "obj.showError" + }, + { + "variableTypeCheck": true, + "assignmentExpression": "Passkey registration failed.", + "assignedVariableName": "obj.errorTitle" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "E.message", + "assignedVariableName": "obj.errorMessage" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true + ] + }, + "id": "assignmentNode-c7c14184-7b0f-48ae-ba40-518d0c6da35f", + "type": "assignmentNode", + "position": { + "x": 3050, + "y": 950 }, - "handles": [ - "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b.FAILURE", - "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1418.358052188247, - "y": 97.17815681439885 + "type": "assignmentNode", + "id": "assignmentNode-c7c14184-7b0f-48ae-ba40-518d0c6da35f", + "position": { + "x": 3076.500129660658, + "y": 777.0517853725498 + }, + "measured": { + "width": 170, + "height": 124 }, + "selected": false, "dragging": false }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "position": { - "x": 299.5608670651452, - "y": 1.4318025781814185 - }, - "parentId": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "type": "when", "data": { - "id": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 299.5608670651452, - "y": 1.4318025781814185 - }, "agamaData": { - "id": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "parentId": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { - "variable": "addDeviceForm.skipped", + "variable": "addDeviceForm.cancelBtn", "operator": "is", - "dataValue": "\"skipped\"", + "dataValue": "\"\"", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 1750.8942003984787 - } + ] + }, + "id": "whenNode-61429ea8-7403-4912-945c-ffeecb3173a2", + "type": "whenNode", + "position": { + "x": 2300, + "y": 450 }, - "handles": [ - "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8.FAILURE", - "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "branching": "continue" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 1717.9189192533922, - "y": 98.60995939258027 + "type": "whenNode", + "id": "whenNode-61429ea8-7403-4912-945c-ffeecb3173a2", + "position": { + "x": 2300, + "y": 450 }, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "position": { - "x": 365.15501561172323, - "y": 90.89671284355109 - }, - "parentId": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "type": "when", "data": { - "id": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "type": "Agama-when-Node", - "parentId": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "whenCondition": "WhenFalse", - "inRepeatBlock": true, - "position": { - "x": 365.15501561172323, - "y": 90.89671284355109 - }, "agamaData": { - "id": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "parentId": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ - { - "variable": "E", - "operator": "is", - "dataValue": "null", - "combinator": "and" - }, - { - "variable": "key", - "operator": "is not", - "dataValue": "null", - "combinator": "none" - } - ], + "nodeIcon": "material-symbols:line-end-square-rounded", + "nodeColor": "#eb999a", + "displayName": "", "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true + "comment": "Ends the flow because the user cancels it", + "returnVariable": "Cancel event", + "finishMode": "withFailure" }, - "handles": [ - "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6.FAILURE", - "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6.SUCCESS" - ], - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2602.792511450751, - "y": 379.10172569590054 + "id": "finishNode-c37cc8f0-7414-4467-a8d7-8ccf2ed5d88f", + "type": "finishNode", + "position": { + "x": 2550, + "y": 700 + }, + "previousNodeId": "whenNode-61429ea8-7403-4912-945c-ffeecb3173a2", + "branching": "success" }, - "dragging": false - }, - { - "width": 110, - "height": 60, - "id": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", + "type": "finishNode", + "id": "finishNode-c37cc8f0-7414-4467-a8d7-8ccf2ed5d88f", "position": { - "x": 332.9599418007592, - "y": -6.360856605105482 + "x": 2591.842309990512, + "y": 472.65678238488385 }, - "parentId": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "type": "when", - "data": { - "id": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 332.9599418007592, - "y": -6.360856605105482 - }, - "agamaData": { - "id": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", - "parentId": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "type": "Agama-when-Node", - "conditions": [ - { - "variable": "E", - "operator": "is not", - "dataValue": "null", - "combinator": "none" - } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2678.795896610424 - } - }, - "handles": [ - "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db.FAILURE", - "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db.SUCCESS" - ], - "skake": false + "measured": { + "width": 170, + "height": 124 }, "selected": false, - "positionAbsolute": { - "x": 2935.7524532515104, - "y": 372.74086909079506 - }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "dragging": false } ], "edges": [ { - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818-Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48-6e915cae-5642-4e94-90d9-764554790137", - "type": "straight", - "source": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "target": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", - "label": "", + "id": "startNode-c4aa69a5-2ac1-4d79-b721-e46cc6f3e753-assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45", + "type": "default", + "source": "startNode-c4aa69a5-2ac1-4d79-b721-e46cc6f3e753", + "target": "assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, - "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", - "fillOpacity": 0.7 - } - }, - { - "id": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48-Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f-dc7ab7b9-a86e-4253-a1cf-a8f239d5acb9", - "type": "straight", - "source": "Agama-assignment-Node-2be4f846-c4e3-4d45-9744-56c5bd003e48", - "target": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", "label": "", - "labelBgPadding": [ - 8, - 4 - ], - "labelBgBorderRadius": 4, "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_startNode-c4aa69a5-2ac1-4d79-b721-e46cc6f3e753" }, { - "id": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f-Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af-b03264a3-19ba-4b47-b743-4736db2f7c20", - "type": "straight", - "source": "Agama-call-Node-da704b03-6407-46b0-8581-7043512bbc7f", - "target": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "label": "", + "id": "assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45-callNode-cf473884-3cc9-416a-880d-28c2bff33fa6", + "type": "default", + "source": "assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45", + "target": "callNode-cf473884-3cc9-416a-880d-28c2bff33fa6", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, - "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", - "fillOpacity": 0.7 - } - }, - { - "id": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af-Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f-9bc0970d-499a-4de7-8ed0-eb5c114c6acd", - "type": "straight", - "source": "Agama-assignment-Node-7e42631b-09bc-404a-9ece-46a8793778af", - "target": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", "label": "", - "labelBgPadding": [ - 8, - 4 - ], - "labelBgBorderRadius": 4, - "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", - "fillOpacity": 0.7 - } - }, - { - "id": "Agama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8e-Agama-assignment-Node-a0b1a5b9-45c4-417b-8669-f19fc558969c-c6c9de92-9847-4fa5-8fb6-cae5d6df2e8d", - "type": "straight", - "source": "Agama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8e", - "target": "Agama-assignment-Node-a0b1a5b9-45c4-417b-8669-f19fc558969c", - "label": "Condition met", - "labelBgPadding": [ - 8, - 4 - ], - "labelBgBorderRadius": 4, "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8e.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-b0f19fc6-6046-4e11-bb5a-bbb84d363b45" }, { - "id": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e-Agama-call-Node-97e742a1-d368-499f-9218-da5ffa4bf462-74ab1804-9b48-4e99-b889-1093f5123a03", - "type": "straight", - "source": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e", - "target": "Agama-call-Node-97e742a1-d368-499f-9218-da5ffa4bf462", - "label": "Condition met", + "id": "callNode-cf473884-3cc9-416a-880d-28c2bff33fa6-assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654", + "type": "default", + "source": "callNode-cf473884-3cc9-416a-880d-28c2bff33fa6", + "target": "assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_callNode-cf473884-3cc9-416a-880d-28c2bff33fa6" }, { - "id": "Agama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0e-finish-26b494b4-182d-419e-b9df-1805008ad0cd-5342fd1d-2028-4633-a946-1da825a75697", - "type": "straight", - "source": "Agama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0e", - "target": "finish-26b494b4-182d-419e-b9df-1805008ad0cd", - "label": "Condition met", + "id": "assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654-repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "type": "default", + "source": "assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654", + "target": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0e.SUCCESS" - }, - { - "source": "Agama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8e", - "sourceHandle": "Agama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8e.FAILURE", - "target": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e", - "targetHandle": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e.left", - "id": "reactflow__edge-Agama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8eAgama-when-Node-02e66a15-35d7-47a8-b7c1-a8448aa4ae8e.FAILURE-Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02eAgama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e.left" - }, - { - "source": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e", - "sourceHandle": "Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e.FAILURE", - "target": "Agama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0e", - "targetHandle": "Agama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0e.left", - "id": "reactflow__edge-Agama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02eAgama-when-Node-5955b8ab-0e7e-4a9f-bc7e-d9e9a425d02e.FAILURE-Agama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0eAgama-when-Node-624211b8-212c-4ef7-bcad-791ce1054f0e.left" + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-119144b0-fb4b-47b2-ae85-20a84b3c2654" }, { - "type": "straight", - "source": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "target": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "label": "In Block", + "id": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207-finishNode-c7bbb0d3-7a15-4b1d-9594-303e6531fc3b", + "type": "default", + "source": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "target": "finishNode-c7bbb0d3-7a15-4b1d-9594-303e6531fc3b", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InFlow", - "selected": false, - "id": "reactflow__edge-Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704fAgama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InFlow-Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "targetHandle": null + "labelShowBg": true, + "sourceHandle": "source_repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207_continue" }, { - "id": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b-Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e-381a22e9-8592-4707-a715-8bbf8194e8e7", - "type": "straight", - "source": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "target": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "label": "", + "id": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207-rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13", + "type": "default", + "source": "repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207", + "target": "rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "repeat", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_repeatNode-cbab4e28-6134-45ad-8a0c-23504ae7d207_repeat" }, { - "type": "straight", - "source": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e", - "target": "finish-56b9136c-5cdc-4ef4-8943-92479fe7d895", - "label": "Condition met", + "id": "rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13-whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "type": "default", + "source": "rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13", + "target": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e.FAILURE", - "selected": false, - "id": "reactflow__edge-Agama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79eAgama-when-Node-0b0ddd5b-abf4-40c7-8ae6-7ed797b6e79e.FAILURE-finish-56b9136c-5cdc-4ef4-8943-92479fe7d895", - "targetHandle": null + "labelShowBg": true, + "sourceHandle": "source_rrfNode-ad8cf467-5fb3-4cb9-bfaa-b3b4a01e4a13" }, { - "type": "straight", - "source": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", - "target": "Agama-assignment-Node-0736a836-5e6e-467a-a039-1b78c39b2191", - "label": "Condition met", + "id": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214-callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc", + "type": "default", + "source": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "target": "callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db.FAILURE", - "selected": false, - "id": "reactflow__edge-Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9dbAgama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db.FAILURE-Agama-assignment-Node-0736a836-5e6e-467a-a039-1b78c39b2191", - "targetHandle": null + "labelShowBg": true, + "sourceHandle": "source_whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214_success" }, { - "type": "straight", - "source": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "target": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "label": "Condition met", + "id": "callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc-assignmentNode-c64036fc-413f-4214-ac73-72aa79893aa6", + "type": "default", + "source": "callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc", + "target": "assignmentNode-c64036fc-413f-4214-ac73-72aa79893aa6", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b.SUCCESS", - "selected": false, - "id": "reactflow__edge-Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7bAgama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b.SUCCESS-Agama-call-Node-c8192fec-7f06-447d-b680-556c680072adAgama-call-Node-c8192fec-7f06-447d-b680-556c680072ad.righta", - "targetHandle": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad.righta" + "labelShowBg": true, + "sourceHandle": "source_callNode-26a64cc0-afd7-45a2-b07e-e5259ae6b8dc" }, { - "id": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8-Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b-e0c64b96-5cb4-4465-8125-143d769f2e42", - "type": "straight", - "source": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "target": "Agama-when-Node-b5e9fd3e-71c5-454c-a0bd-527066555b7b", - "label": "", + "id": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214-whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "type": "default", + "source": "whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214", + "target": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-fcdf2118-8859-4c30-a252-5cfb95aa5214_continue" }, { - "id": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8-Agama-assignment-Node-a6c6a912-328f-437b-8f2e-e919d507dea8-899565fb-775d-4de3-9472-33d326e89bbb", - "type": "straight", - "source": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "target": "Agama-assignment-Node-a6c6a912-328f-437b-8f2e-e919d507dea8", - "label": "Condition met", + "id": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86-assignmentNode-d0574732-feda-4b39-81be-d7480569206b", + "type": "default", + "source": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "target": "assignmentNode-d0574732-feda-4b39-81be-d7480569206b", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-b565deff-586a-49fe-bc03-152eeea7ae86_success" }, { - "id": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847-Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b-1ab40b46-4b1c-4b3e-b720-9b630cc10b36", - "type": "straight", - "source": "Agama-rrf-Node-ae26dbde-6160-4efd-b78b-580f9e92c847", - "target": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "label": "", + "id": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86-whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "type": "default", + "source": "whenNode-b565deff-586a-49fe-bc03-152eeea7ae86", + "target": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-b565deff-586a-49fe-bc03-152eeea7ae86_continue" }, { - "id": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b-Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8-52cb4c27-f1a1-417f-b8f8-dc7e0220ba7f", - "type": "straight", - "source": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "target": "Agama-when-Node-54662547-493b-47bf-aba2-02655f80abd8", - "label": "", + "id": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553-callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98", + "type": "default", + "source": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "target": "callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-7c2592cd-d11a-41b0-8666-697ff9916553_success" }, { - "id": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b-Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079-8b9615c9-2dad-4fb4-8f1c-86e127cf2aa5", - "type": "straight", - "source": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b", - "target": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "label": "Condition met", + "id": "callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98-whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "type": "default", + "source": "callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98", + "target": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-29f9a2a0-4165-49d2-a90c-42cc4653d99b.SUCCESS", - "selected": false + "labelShowBg": true, + "sourceHandle": "source_callNode-9de2e251-ce65-4f85-854a-7e6a7f02de98" }, { - "id": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079-Agama-assignment-Node-30e73be7-0542-4a65-a91e-afe17fb7e07a-da108b76-0414-434f-bed9-fed18de764d0", - "type": "straight", - "source": "Agama-call-Node-89618ba3-e6c2-4a38-83a3-9830374d4079", - "target": "Agama-assignment-Node-30e73be7-0542-4a65-a91e-afe17fb7e07a", - "label": "", + "id": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8-triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e", + "type": "default", + "source": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "target": "triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8_success" }, { - "type": "straight", - "source": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f", - "target": "finish-66411d62-3b1a-41c1-a1c1-991409763972", - "label": "Not In Block", + "id": "triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e-assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f", + "type": "default", + "source": "triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e", + "target": "assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InRepeatBlock", - "id": "reactflow__edge-Agama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704fAgama-repeat-Node-671e5a55-a960-43e8-8ddb-8b4e7fbd704f.InRepeatBlock-finish-66411d62-3b1a-41c1-a1c1-991409763972", - "targetHandle": null + "labelShowBg": true, + "sourceHandle": "source_triggerNode-4852e8dd-9c81-4a40-a40b-62aa11052e5e" }, { - "id": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad-Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6-5767e69a-1835-4fd6-b600-c182e6b6c7e0", - "type": "straight", - "source": "Agama-call-Node-c8192fec-7f06-447d-b680-556c680072ad", - "target": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "label": "", + "id": "assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f-finishNode-bb508770-ba55-4533-a730-4d4cde431205", + "type": "default", + "source": "assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f", + "target": "finishNode-bb508770-ba55-4533-a730-4d4cde431205", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-df8a0ae9-41d2-46e0-a340-7667bcdf384f" }, { - "id": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6-Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db-2756b3df-aa7c-40ab-b14d-de50a6e45cbb", - "type": "straight", - "source": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "target": "Agama-when-Node-5d7551be-273f-48d3-b36f-dfc94fe5e9db", - "label": "", + "id": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8-whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb", + "type": "default", + "source": "whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8", + "target": "whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-f50042e9-c85c-48aa-8001-04a7c7d72dc8_continue" }, { - "id": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6-Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445-51302ae1-1825-45fa-b822-5964c8bda3d0", - "type": "straight", - "source": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6", - "target": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "label": "Condition met", + "id": "whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb-assignmentNode-c7c14184-7b0f-48ae-ba40-518d0c6da35f", + "type": "default", + "source": "whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb", + "target": "assignmentNode-c7c14184-7b0f-48ae-ba40-518d0c6da35f", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-29b9deb9-9961-4936-a8f8-d1ff6e8b7ec6.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-3a4a4e53-1cf1-4d8b-8871-971a860f44eb_success" }, { - "id": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445-Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da-ebf9765a-38cb-460f-bc6c-419d7dbb5f05", - "type": "straight", - "source": "Agama-trigger-Node-eec22f1d-a92f-4cab-88a0-c202a9fc6445", - "target": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "label": "", + "id": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553-whenNode-61429ea8-7403-4912-945c-ffeecb3173a2", + "type": "default", + "source": "whenNode-7c2592cd-d11a-41b0-8666-697ff9916553", + "target": "whenNode-61429ea8-7403-4912-945c-ffeecb3173a2", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-7c2592cd-d11a-41b0-8666-697ff9916553_continue" }, { - "id": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da-finish-aa9b5b7b-1306-4e1b-ac11-bc113973efcc-9f347cce-26fc-43d8-8d19-f8ffec11377e", - "type": "straight", - "source": "Agama-assignment-Node-d325f7dc-ec4f-4278-a2b9-e5f6b12e10da", - "target": "finish-aa9b5b7b-1306-4e1b-ac11-bc113973efcc", - "label": "", + "id": "whenNode-61429ea8-7403-4912-945c-ffeecb3173a2-finishNode-c37cc8f0-7414-4467-a8d7-8ccf2ed5d88f", + "type": "default", + "source": "whenNode-61429ea8-7403-4912-945c-ffeecb3173a2", + "target": "finishNode-c37cc8f0-7414-4467-a8d7-8ccf2ed5d88f", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-61429ea8-7403-4912-945c-ffeecb3173a2_success" } ], "viewport": { - "x": -986.3812500000022, - "y": -1, - "zoom": 0.75 + "x": -30.680538417319212, + "y": -21.075005553636117, + "zoom": 0.5 } } \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.list.flow b/code/org.gluu.agama.passkey.list.flow index e8c4a86..ad922b4 100644 --- a/code/org.gluu.agama.passkey.list.flow +++ b/code/org.gluu.agama.passkey.list.flow @@ -74,8 +74,8 @@ Repeat 10 times max obj.errorMessage = E.message When E is null // Ends the flow and returns the user's inum - it_rymcu = {success:true, data: { userId: inum }} - Finish it_rymcu + it_qeqor = {success:true, data: { userId: inum }} + Finish it_qeqor // End flow with error because it has exceeded the limit of attempts. -it_xefoi = {success:false, error: "Passkey registration attempt exceeded"} -Finish it_xefoi \ No newline at end of file +it_acdts = {success:false, error: "Passkey registration attempt exceeded"} +Finish it_acdts \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.list.json b/code/org.gluu.agama.passkey.list.json index 837da4c..47a99b5 100644 --- a/code/org.gluu.agama.passkey.list.json +++ b/code/org.gluu.agama.passkey.list.json @@ -1,698 +1,348 @@ { "nodes": [ { - "width": 219, - "height": 30, - "id": "Agama-note-b615a685-997b-4833-a3a2-40cedc6d7081", - "position": { - "x": 4105.854662699496, - "y": 490.35698054603426 - }, - "type": "notes", - "data": { - "id": "Agama-note-b615a685-997b-4833-a3a2-40cedc6d7081", - "type": "Agama-note", - "notes": "If the verification failed", - "position": { - "x": 4105.854662699496, - "y": 490.35698054603426 - }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 4105.854662699496, - "y": 490.35698054603426 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-fee2c2c9-be26-46d9-aa7d-78ef72237471", - "position": { - "x": 4463.75225072144, - "y": 482.3448334020736 - }, - "type": "notes", - "data": { - "id": "Agama-note-fee2c2c9-be26-46d9-aa7d-78ef72237471", - "type": "Agama-note", - "notes": "If the verification was successfully", - "position": { - "x": 4463.75225072144, - "y": 482.3448334020736 - }, - "skake": false - }, - "positionAbsolute": { - "x": 4463.75225072144, - "y": 482.3448334020736 - }, - "selected": false, - "dragging": false - }, - { - "width": 234, - "height": 30, - "id": "Agama-note-adb7e293-8bef-44a8-8c32-203f01cbc4d7", - "position": { - "x": 2790.091688160992, - "y": 683.582896582299 - }, - "type": "notes", "data": { - "id": "Agama-note-adb7e293-8bef-44a8-8c32-203f01cbc4d7", - "type": "Agama-note", - "notes": "If the passkey update failed", - "position": { - "x": 2790.091688160992, - "y": 683.582896582299 - }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2790.091688160992, - "y": 683.582896582299 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-da50b5d4-d579-45eb-91db-29359bd5a4c8", - "position": { - "x": 2439.5112989826894, - "y": 674.3298721423946 - }, - "type": "notes", - "data": { - "id": "Agama-note-da50b5d4-d579-45eb-91db-29359bd5a4c8", - "type": "Agama-note", - "notes": "If the passkey update is successfully", - "position": { - "x": 2439.5112989826894, - "y": 674.3298721423946 - }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2439.5112989826894, - "y": 674.3298721423946 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "finish-775d6567-2d61-4a88-9412-d4f3df062202", - "position": { - "x": 4673.846436626904, - "y": 752.9030326977505 - }, - "type": "finish", - "data": { - "id": "finish-775d6567-2d61-4a88-9412-d4f3df062202", - "type": "Agama-finish-Flow", - "parentId": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "handles": [ - "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b.FAILURE", - "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b.SUCCESS" - ], - "position": { - "x": 4673.846436626904, - "y": 752.9030326977505 - }, "agamaData": { - "id": "finish-775d6567-2d61-4a88-9412-d4f3df062202", - "parentId": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, + "isTopLevelFlow": true, + "basepath": "", + "configParams": "{}", + "creationDate": "29/11/2024", + "nodeIcon": "material-symbols:line-start-square", + "timeout": "", + "inputs": "userData scimSetting", + "configs": "", + "flowname": "org.gluu.agama.passkey.list", + "displayName": "Passkey List", "hasComment": true, - "comment": "Ends the flow and returns the user's inum", - "flowfilename": "", - "returnVariable": "{ userId: inum }", - "finishMode": "withSuccess", - "nodeIcon": "material-symbols:line-end-square-rounded" + "comment": "Flow responsible for managing your passkeys and login with passkey" }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 4673.846436626904, - "y": 752.9030326977505 - }, - "dragging": false - }, - { - "width": 110, - "height": 60, - "id": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "position": { - "x": 329.7083026383607, - "y": 10.616591772911306 - }, - "parentId": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "type": "when", - "data": { - "id": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "whenCondition": "WhenFalse", - "inRepeatBlock": false, - "inIterateBlock": false, + "id": "startNode-50bc43ab-6afc-492b-9fca-1fa6ec308b72", + "type": "startNode", "position": { - "x": 329.7083026383607, - "y": 10.616591772911306 - }, - "agamaData": { - "id": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "parentId": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "type": "Agama-when-Node", - "conditions": [ - { - "variable": "E", - "operator": "is", - "dataValue": "null", - "combinator": "none" - } - ], - "hasComment": true, - "inRepeatBlock": false - }, - "handles": [ - "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b.FAILURE", - "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b.SUCCESS" - ], - "skake": false + "x": 50, + "y": 200 + } }, - "selected": false, - "positionAbsolute": { - "x": 4513.259445053605, - "y": 556.4910883534499 + "type": "startNode", + "id": "startNode-50bc43ab-6afc-492b-9fca-1fa6ec308b72", + "position": { + "x": 50, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-78506e95-df9b-498d-b446-0cf73e01668f", - "position": { - "x": 4330.167349470747, - "y": 762.0969164032674 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-78506e95-df9b-498d-b446-0cf73e01668f", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 4330.167349470747, - "y": 762.0969164032674 - }, "agamaData": { - "id": "Agama-assignment-Node-78506e95-df9b-498d-b446-0cf73e01668f", - "parentId": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, - "comment": "Show verification errors with their details", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, + "comment": "Declaration of uid and inum taken from userData", "assignments": [ { "variableTypeCheck": false, - "assignmentExpression": "true", - "assignedVariableName": "obj.showError" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" - }, - { - "variableTypeCheck": true, - "assignmentExpression": "Passkey authentication failed.", - "assignedVariableName": "obj.errorTitle" + "assignmentExpression": "userData.inum", + "assignedVariableName": "inum" }, { "variableTypeCheck": false, - "assignmentExpression": "E.message", - "assignedVariableName": "obj.errorMessage" + "assignmentExpression": "userData.uid", + "assignedVariableName": "uid" } - ], - "nodeIcon": "material-symbols:equal" + ] }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 4330.167349470747, - "y": 762.0969164032674 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-9c5beeed-4f25-4165-acc3-52a579178daa", - "position": { - "x": 3537.92763530421, - "y": 233.28509020280688 - }, - "type": "notes", - "data": { - "id": "Agama-note-9c5beeed-4f25-4165-acc3-52a579178daa", - "type": "Agama-note", - "notes": "When the user completes the login process with passkey", + "id": "assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2", + "type": "assignmentNode", "position": { - "x": 3537.92763530421, - "y": 233.28509020280688 + "x": 300, + "y": 200 }, - "skake": false + "previousNodeId": "startNode-50bc43ab-6afc-492b-9fca-1fa6ec308b72" }, - "selected": false, - "positionAbsolute": { - "x": 3537.92763530421, - "y": 233.28509020280688 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-266e029a-6bed-4424-96d8-503fb3f03cbb", + "type": "assignmentNode", + "id": "assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2", "position": { - "x": 3162.1875, - "y": 236 - }, - "type": "notes", - "data": { - "id": "Agama-note-266e029a-6bed-4424-96d8-503fb3f03cbb", - "type": "Agama-note", - "notes": "When the user cancels the login process with passkey", - "position": { - "x": 3162.1875, - "y": 236 - }, - "skake": false + "x": 300, + "y": 200 }, - "selected": false, - "positionAbsolute": { - "x": 3162.1875, - "y": 236 - }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-02c6c671-9876-4869-a8fd-e37a4c103a68", - "position": { - "x": 2851.5328258678946, - "y": 235.6292326592569 - }, - "type": "notes", "data": { - "id": "Agama-note-02c6c671-9876-4869-a8fd-e37a4c103a68", - "type": "Agama-note", - "notes": "When the user presses the Login with Passkey button", - "position": { - "x": 2851.5328258678946, - "y": 235.6292326592569 + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "FidoValidator instance", + "hasComment": true, + "comment": "Get Instance FidoValidator", + "javaClassName": "org.gluu.agama.passkey.authn.FidoValidator", + "javaMethodName": "", + "javaVariableName": "", + "exceptionVariableField": "", + "callType": "Create an instance", + "arguments": [], + "asssignedVariableName": "fidoValidator" }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2851.5328258678946, - "y": 235.6292326592569 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-2714db1b-e38c-4c55-aae2-eddb1205f1bd", - "position": { - "x": 2538.5897668518196, - "y": 236.39775724460833 - }, - "type": "notes", - "data": { - "id": "Agama-note-2714db1b-e38c-4c55-aae2-eddb1205f1bd", - "type": "Agama-note", - "notes": "When the user presses the Add new passkey button", + "id": "callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa", + "type": "callNode", "position": { - "x": 2538.5897668518196, - "y": 236.39775724460833 + "x": 550, + "y": 200 }, - "skake": false + "previousNodeId": "assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2" }, - "selected": false, - "positionAbsolute": { - "x": 2538.5897668518196, - "y": 236.39775724460833 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-580f3a45-6e64-47a6-9bed-48567d55e62a", + "type": "callNode", + "id": "callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa", "position": { - "x": 2218.120200479084, - "y": 239.0807595458927 - }, - "type": "notes", - "data": { - "id": "Agama-note-580f3a45-6e64-47a6-9bed-48567d55e62a", - "type": "Agama-note", - "notes": "When the user presses the edit nickname button of the passkey", - "position": { - "x": 2218.120200479084, - "y": 239.0807595458927 - }, - "skake": false + "x": 550, + "y": 200 }, - "selected": false, - "positionAbsolute": { - "x": 2218.120200479084, - "y": 239.0807595458927 - }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-697cfb06-4cb2-42c6-beba-b87f5d8fd0c3", - "position": { - "x": 1900.1669498060053, - "y": 239.62684335873183 - }, - "type": "notes", "data": { - "id": "Agama-note-697cfb06-4cb2-42c6-beba-b87f5d8fd0c3", - "type": "Agama-note", - "notes": "When the user cancels editing the nickname of the passkey", - "position": { - "x": 1900.1669498060053, - "y": 239.62684335873183 + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "ScimFido2Helper instance", + "hasComment": true, + "comment": "Get Instance ScimFido2Helper", + "javaClassName": "org.gluu.agama.passkey.ScimFido2Helper", + "javaMethodName": "", + "javaVariableName": "", + "exceptionVariableField": "", + "callType": "Create an instance", + "arguments": [ + "scimSetting" + ], + "asssignedVariableName": "scimFido2Helper" }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 1900.1669498060053, - "y": 239.62684335873183 - }, - "dragging": false - }, - { - "width": 270, - "height": 42, - "id": "Agama-note-da0b10cf-7d40-4b11-924e-e97124893497", - "position": { - "x": 1589.5931107281276, - "y": 239.67811250329936 - }, - "type": "notes", - "data": { - "id": "Agama-note-da0b10cf-7d40-4b11-924e-e97124893497", - "type": "Agama-note", - "notes": "When the user changes the passkey nickname", + "id": "callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860", + "type": "callNode", "position": { - "x": 1589.5931107281276, - "y": 239.67811250329936 + "x": 800, + "y": 200 }, - "skake": false + "previousNodeId": "callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa" }, - "selected": false, - "positionAbsolute": { - "x": 1589.5931107281276, - "y": 239.67811250329936 + "type": "callNode", + "id": "callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860", + "position": { + "x": 800, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-57260680-3c35-4170-88a1-4922d8e4369b", - "position": { - "x": 2661.7967820616313, - "y": 889.455328912774 - }, - "type": "call", "data": { - "id": "Agama-call-Node-57260680-3c35-4170-88a1-4922d8e4369b", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 2661.7967820616313, - "y": 889.455328912774 - }, "agamaData": { - "id": "Agama-call-Node-57260680-3c35-4170-88a1-4922d8e4369b", - "parentId": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "type": "Agama-call-Node", - "displayName": "Reload all devices by user", + "nodeIcon": "material-symbols:code", + "displayName": "Get fido devices by user", "hasComment": true, - "comment": "Reload the passkey list", + "comment": "Passkey list by user's inum", "javaClassName": "", "javaMethodName": "getFidoDeviceByUser", "javaVariableName": "scimFido2Helper", "exceptionVariableField": "", "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, "arguments": [ "inum" ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "obj.fidoDevice" + "asssignedVariableName": "fidoDevice" }, - "skake": false + "id": "callNode-77738ab6-d466-4c86-9b31-00786094dbe7", + "type": "callNode", + "position": { + "x": 1050, + "y": 200 + }, + "previousNodeId": "callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860" }, - "selected": false, - "positionAbsolute": { - "x": 2661.7967820616313, - "y": 889.455328912774 + "type": "callNode", + "id": "callNode-77738ab6-d466-4c86-9b31-00786094dbe7", + "position": { + "x": 1050, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-25a40e2e-a391-421e-b22d-e60d98d5b438", - "position": { - "x": 2976.879253496648, - "y": 888.9931849044398 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-25a40e2e-a391-421e-b22d-e60d98d5b438", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 2976.879253496648, - "y": 888.9931849044398 - }, "agamaData": { - "id": "Agama-assignment-Node-25a40e2e-a391-421e-b22d-e60d98d5b438", - "parentId": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "type": "Agama-assignment-Node", - "displayName": "", + "nodeIcon": "material-symbols:equal", + "displayName": "Declare obj", "hasComment": true, - "comment": "Show authentication process cancellation error", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, + "comment": "Declare the variable \"obj\" that contains the data for this flow", "assignments": [ { "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.showError" - }, - { - "variableTypeCheck": true, - "assignmentExpression": "Passkey failed to set a new nickname", - "assignedVariableName": "obj.errorTitle" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "E.message", - "assignedVariableName": "obj.errorMessage" + "assignmentExpression": "{ fidoDevice: fidoDevice, assertion: \"{}\", isAssertion: false, showError: false, errorTitle: \"\", errorMessage: \"\", canEdit: false }", + "assignedVariableName": "obj" } - ], - "nodeIcon": "material-symbols:equal", - "nodeColor": "#eb999a" + ] }, - "skake": false + "id": "assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c", + "type": "assignmentNode", + "position": { + "x": 1300, + "y": 200 + }, + "previousNodeId": "callNode-77738ab6-d466-4c86-9b31-00786094dbe7" }, - "selected": false, - "positionAbsolute": { - "x": 2976.879253496648, - "y": 888.9931849044398 + "type": "assignmentNode", + "id": "assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c", + "position": { + "x": 1300, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", + "data": { + "agamaData": { + "nodeIcon": "material-symbols:event-repeat-outline-rounded", + "displayName": "Repeat 10 times", + "hasComment": true, + "maxIteration": "10" + }, + "id": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", + "type": "repeatNode", + "position": { + "x": 1550, + "y": 200 + }, + "previousNodeId": "assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c" + }, + "type": "repeatNode", + "id": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", "position": { - "x": 2164.6156188763466, - "y": 670.5587408402179 + "x": 1550, + "y": 200 }, - "type": "call", + "measured": { + "width": 170, + "height": 124 + } + }, + { "data": { - "id": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "type": "Agama-call-Node", - "parentId": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "whenCondition": "WhenFalse", - "inRepeatBlock": false, - "inIterateBlock": false, + "agamaData": { + "nodeIcon": "material-symbols:line-end-square-rounded", + "nodeColor": "#eb999a", + "displayName": "Response error attempt exceeded", + "hasComment": true, + "comment": "End flow with error because it has exceeded the limit of attempts.", + "returnVariable": "Passkey registration attempt exceeded", + "finishMode": "withFailure" + }, + "id": "finishNode-592073bc-bcbe-400d-865a-e0d2e28d8163", + "type": "finishNode", "position": { - "x": 2164.6156188763466, - "y": 670.5587408402179 + "x": 1800, + "y": 200 }, + "previousNodeId": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", + "branching": "continue" + }, + "type": "finishNode", + "id": "finishNode-592073bc-bcbe-400d-865a-e0d2e28d8163", + "position": { + "x": 1800, + "y": 200 + }, + "measured": { + "width": 170, + "height": 124 + } + }, + { + "data": { "agamaData": { - "id": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "parentId": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "type": "Agama-call-Node", - "displayName": "Update passkey", + "nodeIcon": "ph:globe-simple", + "displayName": "Render passkey list view", "hasComment": true, - "comment": "Call the passkey update method", - "javaClassName": "", - "javaMethodName": "updateDevice", - "javaVariableName": "scimFido2Helper", - "exceptionVariableField": "E", - "callType": "Call method on instance", - "whenCondition": "WhenFalse", - "inRepeatBlock": false, - "inIterateBlock": false, + "comment": "Load passkey-list.ftlh page", "arguments": [ - "inum", - "listForm.deviceId", - "listForm.nickname" + "obj" ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "nickNamed" + "templatePath": "passkey-list.ftlh", + "asssignedVariableName": "listForm" }, - "skake": false + "id": "rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b", + "type": "rrfNode", + "position": { + "x": 1800, + "y": 450 + }, + "previousNodeId": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", + "branching": "repeat" }, - "selected": false, - "positionAbsolute": { - "x": 2164.6156188763466, - "y": 670.5587408402179 + "type": "rrfNode", + "id": "rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b", + "position": { + "x": 1800, + "y": 450 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "position": { - "x": 1871.3857676128466, - "y": 508.27781347731525 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 1871.3857676128466, - "y": 508.27781347731525 - }, "agamaData": { - "id": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "parentId": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "type": "Agama-assignment-Node", - "displayName": "", "hasComment": true, - "comment": "Hide all processes (authentication and error message)", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.canEdit" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" - }, + "conditions": [ { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.showError" + "variable": "listForm.deviceId", + "operator": "is not", + "dataValue": "\"\"", + "combinator": "none" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "type": "whenNode", + "position": { + "x": 2050, + "y": 450 }, - "skake": false + "previousNodeId": "rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b" }, - "selected": false, - "positionAbsolute": { - "x": 1871.3857676128466, - "y": 508.27781347731525 + "type": "whenNode", + "id": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "position": { + "x": 2050, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-1ebf9991-e326-48c9-8008-2d3eb681447b", - "position": { - "x": 2162.424418127188, - "y": 502.5075038914815 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-1ebf9991-e326-48c9-8008-2d3eb681447b", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 2162.424418127188, - "y": 502.5075038914815 - }, "agamaData": { - "id": "Agama-assignment-Node-1ebf9991-e326-48c9-8008-2d3eb681447b", - "parentId": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, "comment": "Hide all processes (authentication and error message)", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, "assignments": [ { "variableTypeCheck": false, @@ -709,985 +359,680 @@ "assignmentExpression": "false", "assignedVariableName": "obj.showError" } - ], - "nodeIcon": "material-symbols:equal" + ] }, - "skake": false + "id": "assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a", + "type": "assignmentNode", + "position": { + "x": 2300, + "y": 700 + }, + "previousNodeId": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 2162.424418127188, - "y": 502.5075038914815 + "type": "assignmentNode", + "id": "assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a", + "position": { + "x": 2300, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-e4d3b6b1-d8fa-4513-80fb-f87055fba7d8", - "position": { - "x": 2464.9727331491185, - "y": 495.80448441696296 - }, - "type": "assignment", - "data": { - "id": "Agama-assignment-Node-e4d3b6b1-d8fa-4513-80fb-f87055fba7d8", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 2464.9727331491185, - "y": 495.80448441696296 - }, - "agamaData": { - "id": "Agama-assignment-Node-e4d3b6b1-d8fa-4513-80fb-f87055fba7d8", - "parentId": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "type": "Agama-assignment-Node", - "displayName": "", - "hasComment": true, - "comment": "Enables the input to modify the passkey nickname", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "inIterateBlock": false, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "true", - "assignedVariableName": "obj.canEdit" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.showError" - } + "data": { + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "Update passkey", + "hasComment": true, + "comment": "Call the passkey update method", + "javaClassName": "", + "javaMethodName": "updateDevice", + "javaVariableName": "scimFido2Helper", + "exceptionVariableField": "E", + "callType": "Call method on instance", + "arguments": [ + "inum", + "listForm.deviceId", + "listForm.nickname" ], - "nodeIcon": "material-symbols:equal" + "asssignedVariableName": "nickNamed" }, - "skake": false + "id": "callNode-d433b5af-1768-4f50-ab65-0c33a460c74b", + "type": "callNode", + "position": { + "x": 2550, + "y": 700 + }, + "previousNodeId": "assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a" }, - "selected": false, - "positionAbsolute": { - "x": 2464.9727331491185, - "y": 495.80448441696296 + "type": "callNode", + "id": "callNode-d433b5af-1768-4f50-ab65-0c33a460c74b", + "position": { + "x": 2550, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "finish-b0459236-3083-40d4-9892-2a5ff3bc7a94", - "position": { - "x": 1550.9807847767834, - "y": 28.43395524801582 - }, - "type": "finish", "data": { - "id": "finish-b0459236-3083-40d4-9892-2a5ff3bc7a94", - "type": "Agama-finish-Flow", - "parentId": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "whenCondition": "", - "inRepeatBlock": false, - "handles": [ - "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43.InFlow", - "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43.InRepeatBlock" - ], - "position": { - "x": 1550.9807847767834, - "y": 28.43395524801582 - }, "agamaData": { - "id": "finish-b0459236-3083-40d4-9892-2a5ff3bc7a94", - "parentId": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, "hasComment": true, - "comment": "End flow with error because it has exceeded the limit of attempts.", - "flowfilename": "", - "returnVariable": "Passkey registration attempt exceeded", - "finishMode": "withFailure", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response error attempt exceeded", - "nodeColor": "#eb999a" + "conditions": [ + { + "variable": "E", + "operator": "is", + "dataValue": "null", + "combinator": "none" + } + ] + }, + "id": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "type": "whenNode", + "position": { + "x": 2800, + "y": 700 }, - "skake": false + "previousNodeId": "callNode-d433b5af-1768-4f50-ab65-0c33a460c74b" }, - "selected": false, - "positionAbsolute": { - "x": 1550.9807847767834, - "y": 28.43395524801582 + "type": "whenNode", + "id": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "position": { + "x": 2816, + "y": 790 }, + "measured": { + "width": 110, + "height": 60 + }, + "selected": false, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-22d1db2a-c501-4f0e-8c37-0edf0a02b781", - "position": { - "x": 3691.268282920075, - "y": 906.1286127123672 - }, - "type": "call", "data": { - "id": "Agama-call-Node-22d1db2a-c501-4f0e-8c37-0edf0a02b781", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 3691.268282920075, - "y": 906.1286127123672 - }, "agamaData": { - "id": "Agama-call-Node-22d1db2a-c501-4f0e-8c37-0edf0a02b781", - "parentId": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "type": "Agama-call-Node", + "nodeIcon": "material-symbols:code", "displayName": "Reload all devices by user", "hasComment": true, - "comment": "Reload the passkeys list", + "comment": "Reload the passkey list", "javaClassName": "", "javaMethodName": "getFidoDeviceByUser", "javaVariableName": "scimFido2Helper", "exceptionVariableField": "", "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, "arguments": [ "inum" ], - "nodeIcon": "material-symbols:code", "asssignedVariableName": "obj.fidoDevice" }, - "skake": false + "id": "callNode-27ab3584-96b0-4ec9-a1fc-a387546ccac1", + "type": "callNode", + "position": { + "x": 3050, + "y": 950 + }, + "previousNodeId": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 3691.268282920075, - "y": 906.1286127123672 + "type": "callNode", + "id": "callNode-27ab3584-96b0-4ec9-a1fc-a387546ccac1", + "position": { + "x": 3050, + "y": 950 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "position": { - "x": 331.1962568891445, - "y": 157.7057522191982 - }, - "parentId": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "type": "when", "data": { - "id": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "type": "Agama-when-Node", - "parentId": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 331.1962568891445, - "y": 157.7057522191982 - }, "agamaData": { - "id": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "parentId": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "type": "Agama-when-Node", + "hasComment": true, "conditions": [ { - "variable": "addTrigger.success", - "operator": "is", - "dataValue": "true", + "variable": "E", + "operator": "is not", + "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true + ] }, - "handles": [ - "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594.FAILURE", - "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594.SUCCESS" - ], - "skake": false + "id": "whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084", + "type": "whenNode", + "position": { + "x": 3050, + "y": 700 + }, + "previousNodeId": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 3459.353275489968, - "y": 840.9082960947594 + "type": "whenNode", + "id": "whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084", + "position": { + "x": 3050, + "y": 700 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "position": { - "x": 3128.1570186008234, - "y": 683.2025438755612 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "type": "Agama-assignment-Node", - "parentId": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 3118.1570186008234, - "y": 683.2025438755612 - }, "agamaData": { - "id": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "parentId": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", + "nodeColor": "#eb999a", "displayName": "", "hasComment": true, - "comment": "Hide all processes (authentication and error message)", - "whenCondition": "", - "inRepeatBlock": true, + "comment": "Show authentication process cancellation error", "assignments": [ { "variableTypeCheck": false, "assignmentExpression": "false", "assignedVariableName": "obj.showError" }, + { + "variableTypeCheck": true, + "assignmentExpression": "Passkey failed to set a new nickname", + "assignedVariableName": "obj.errorTitle" + }, { "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" + "assignmentExpression": "E.message", + "assignedVariableName": "obj.errorMessage" } - ], - "nodeIcon": "material-symbols:equal" + ] }, - "skake": false + "id": "assignmentNode-874cec86-df91-4123-ab52-0f44b80d237d", + "type": "assignmentNode", + "position": { + "x": 3300, + "y": 950 + }, + "previousNodeId": "whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084", + "branching": "success" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 3128.1570186008234, - "y": 683.2025438755612 + "type": "assignmentNode", + "id": "assignmentNode-874cec86-df91-4123-ab52-0f44b80d237d", + "position": { + "x": 3300, + "y": 950 + }, + "measured": { + "width": 170, + "height": 124 } }, { - "width": 170, - "height": 124, - "id": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "position": { - "x": 2804.780808823725, - "y": 496.9519671182617 - }, - "type": "trigger", "data": { - "id": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "type": "Agama-trigger-Node", - "parentId": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2804.780808823725, - "y": 496.9519671182617 - }, "agamaData": { - "id": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "parentId": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "type": "Agama-trigger-Node", - "displayName": "Passkey add flow", "hasComment": true, - "comment": "Passkey registration flow", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "nodeIcon": "fluent-mdl2:trigger-approval", - "flowFileName": "org.gluu.agama.passkey.add", - "arguments": [ - "userData" - ], - "asssignedVariableName": "addTrigger", - "exceptionVariableField": "", - "nodeColor": "#80deea" + "conditions": [ + { + "variable": "listForm.cancelItemBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" + } + ] + }, + "id": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "type": "whenNode", + "position": { + "x": 2300, + "y": 450 }, - "skake": false + "previousNodeId": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 2804.780808823725, - "y": 496.9519671182617 + "type": "whenNode", + "id": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "position": { + "x": 2300, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-642689a4-66e6-4b5a-ad29-aaf82dee374b", - "position": { - "x": 3454.5386236357167, - "y": 637.9236175559594 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-642689a4-66e6-4b5a-ad29-aaf82dee374b", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 3454.5386236357167, - "y": 637.9236175559594 - }, "agamaData": { - "id": "Agama-assignment-Node-642689a4-66e6-4b5a-ad29-aaf82dee374b", - "parentId": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, - "comment": "Show authentication process with passkey", - "whenCondition": "", - "inRepeatBlock": true, + "comment": "Hide all processes (authentication and error message)", "assignments": [ { "variableTypeCheck": false, "assignmentExpression": "false", - "assignedVariableName": "obj.showError" + "assignedVariableName": "obj.canEdit" }, { "variableTypeCheck": false, - "assignmentExpression": "true", + "assignmentExpression": "false", "assignedVariableName": "obj.isAssertion" }, { "variableTypeCheck": false, - "assignmentExpression": "detestable", - "assignedVariableName": "obj.assertion" + "assignmentExpression": "false", + "assignedVariableName": "obj.showError" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "assignmentNode-5be53b82-6e7d-48c7-ba03-e4f0c90fb6d6", + "type": "assignmentNode", + "position": { + "x": 2550, + "y": 700 }, - "skake": false + "previousNodeId": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 3454.5386236357167, - "y": 637.9236175559594 + "type": "assignmentNode", + "id": "assignmentNode-5be53b82-6e7d-48c7-ba03-e4f0c90fb6d6", + "position": { + "x": 2460, + "y": 544 + }, + "measured": { + "width": 170, + "height": 124 }, + "selected": false, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "position": { - "x": 3122.613011139306, - "y": 497.9100047991924 - }, - "type": "call", "data": { - "id": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 3122.613011139306, - "y": 497.9100047991924 - }, "agamaData": { - "id": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "parentId": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "type": "Agama-call-Node", - "displayName": "Assertion request", "hasComment": true, - "comment": "Method for generating a passkey authentication request", - "javaClassName": "", - "javaMethodName": "assertionRequest", - "javaVariableName": "fidoValidator", - "exceptionVariableField": "", - "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "arguments": [ - "uid" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "detestable" + "conditions": [ + { + "variable": "listForm.editItemBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" + } + ] + }, + "id": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "type": "whenNode", + "position": { + "x": 2550, + "y": 450 }, - "skake": false + "previousNodeId": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 3122.613011139306, - "y": 497.9100047991924 + "type": "whenNode", + "id": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "position": { + "x": 2550, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-f23696fa-95f5-4af0-9b48-1f7872b9b137", - "position": { - "x": 3453.3442026449625, - "y": 484.07516791156525 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-f23696fa-95f5-4af0-9b48-1f7872b9b137", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 3453.3442026449625, - "y": 484.07516791156525 - }, "agamaData": { - "id": "Agama-assignment-Node-f23696fa-95f5-4af0-9b48-1f7872b9b137", - "parentId": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, - "comment": "Show authentication process cancellation error", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, + "comment": "Enables the input to modify the passkey nickname", "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" - }, { "variableTypeCheck": false, "assignmentExpression": "true", - "assignedVariableName": "obj.showError" + "assignedVariableName": "obj.canEdit" }, { - "variableTypeCheck": true, - "assignmentExpression": "Passkey authentication failed.", - "assignedVariableName": "obj.errorTitle" + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAssertion" }, { "variableTypeCheck": false, - "assignmentExpression": "listForm.errorMessage", - "assignedVariableName": "obj.errorMessage" + "assignmentExpression": "false", + "assignedVariableName": "obj.showError" } - ], - "nodeIcon": "material-symbols:equal", - "nodeColor": "#eb999a" + ] }, - "skake": false + "id": "assignmentNode-c99fd5cc-6629-4861-a3eb-fcae4cea457e", + "type": "assignmentNode", + "position": { + "x": 2800, + "y": 700 + }, + "previousNodeId": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 3453.3442026449625, - "y": 484.07516791156525 + "type": "assignmentNode", + "id": "assignmentNode-c99fd5cc-6629-4861-a3eb-fcae4cea457e", + "position": { + "x": 2706, + "y": 526 }, + "measured": { + "width": 170, + "height": 124 + }, + "selected": false, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "position": { - "x": 3800.572711886758, - "y": 479.40112527004703 - }, - "type": "call", "data": { - "id": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 3800.572711886758, - "y": 479.40112527004703 - }, "agamaData": { - "id": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "parentId": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "type": "Agama-call-Node", - "displayName": "Assertion verify", "hasComment": true, - "comment": "Call the method to verify authentication with the passkey", - "javaClassName": "", - "javaMethodName": "verify", - "javaVariableName": "fidoValidator", - "exceptionVariableField": "E", - "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "arguments": [ - "listForm.tokenResponse" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "verifyResponse" + "conditions": [ + { + "variable": "listForm.addAPasskeyBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" + } + ] + }, + "id": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "type": "whenNode", + "position": { + "x": 2800, + "y": 450 }, - "skake": false + "previousNodeId": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 3800.572711886758, - "y": 479.40112527004703 + "type": "whenNode", + "id": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "position": { + "x": 2800, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "position": { - "x": 1372.8940396310654, - "y": 234.9328715861049 - }, - "type": "rrf", "data": { - "id": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "type": "Agama-rrf-Node", - "parentId": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 1372.8940396310654, - "y": 234.9328715861049 - }, "agamaData": { - "id": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "parentId": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "type": "Agama-rrf-Node", - "displayName": "Render passkey list view", + "nodeIcon": "fluent-mdl2:trigger-approval", + "nodeColor": "#80deea", + "displayName": "Passkey add flow", "hasComment": true, - "comment": "Load passkey-list.ftlh page", - "whenCondition": "", - "inRepeatBlock": true, - "assignments": [], - "nodeIcon": "ph:globe-simple", - "templatePath": "passkey-list.ftlh", - "asssignedVariableName": "listForm", + "comment": "Passkey registration flow", + "flowFileName": "org.gluu.agama.passkey.add", "arguments": [ - "obj" - ] + "userData" + ], + "asssignedVariableName": "addTrigger", + "exceptionVariableField": "" + }, + "id": "triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4", + "type": "triggerNode", + "position": { + "x": 3050, + "y": 700 }, - "skake": false + "previousNodeId": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1372.8940396310654, - "y": 234.9328715861049 + "type": "triggerNode", + "id": "triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4", + "position": { + "x": 2956, + "y": 554 + }, + "measured": { + "width": 170, + "height": 124 }, + "selected": false, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "position": { - "x": 1230, - "y": 28 - }, - "type": "repeat", "data": { - "id": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "type": "Agama-repeat-Node", - "parentId": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "whenCondition": "", - "inRepeatBlock": false, - "handles": [ - "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43.InFlow", - "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43.InRepeatBlock" - ], - "position": { - "x": 1230, - "y": 28 - }, "agamaData": { - "id": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "parentId": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "type": "Agama-repeat-Node", - "nodeIcon": "material-symbols:event-repeat-outline-rounded", - "maxIteration": "10", - "displayName": "Repeat 10 times", + "nodeIcon": "material-symbols:equal", + "displayName": "", "hasComment": true, - "hasNoRepeat": true + "comment": "Hide all processes (authentication and error message)", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.showError" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAssertion" + } + ] }, - "skake": false + "id": "assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b", + "type": "assignmentNode", + "position": { + "x": 3300, + "y": 700 + }, + "previousNodeId": "triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4" }, - "selected": false, - "positionAbsolute": { - "x": 1230, - "y": 28 + "type": "assignmentNode", + "id": "assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b", + "position": { + "x": 3330, + "y": 776 }, + "measured": { + "width": 170, + "height": 124 + }, + "selected": false, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "position": { - "x": 1029, - "y": 29 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 1029, - "y": 29 - }, "agamaData": { - "id": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "parentId": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "type": "Agama-assignment-Node", - "displayName": "Declare obj", "hasComment": true, - "comment": "Declare the variable \"obj\" that contains the data for this flow", - "whenCondition": "", - "inRepeatBlock": false, - "assignments": [ + "conditions": [ { - "variableTypeCheck": false, - "assignmentExpression": "{ fidoDevice: fidoDevice, assertion: \"{}\", isAssertion: false, showError: false, errorTitle: \"\", errorMessage: \"\", canEdit: false }", - "assignedVariableName": "obj" + "variable": "addTrigger.success", + "operator": "is", + "dataValue": "true", + "combinator": "none" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "whenNode-bbff892b-f1fa-467b-a4d1-644f54301691", + "type": "whenNode", + "position": { + "x": 3550, + "y": 700 }, - "skake": false + "previousNodeId": "assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b" + }, + "type": "whenNode", + "id": "whenNode-bbff892b-f1fa-467b-a4d1-644f54301691", + "position": { + "x": 3546, + "y": 862 + }, + "measured": { + "width": 110, + "height": 60 }, "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 1029, - "y": 29 - } + "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "position": { - "x": 829, - "y": 29 - }, - "type": "call", "data": { - "id": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "type": "Agama-call-Node", - "parentId": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 829, - "y": 29 - }, "agamaData": { - "id": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "parentId": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "type": "Agama-call-Node", - "displayName": "Get fido devices by user", + "nodeIcon": "material-symbols:code", + "displayName": "Reload all devices by user", "hasComment": true, - "comment": "Passkey list by user's inum", + "comment": "Reload the passkeys list", "javaClassName": "", "javaMethodName": "getFidoDeviceByUser", "javaVariableName": "scimFido2Helper", "exceptionVariableField": "", "callType": "Call method on instance", - "whenCondition": "", - "inRepeatBlock": false, "arguments": [ "inum" ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "fidoDevice" + "asssignedVariableName": "obj.fidoDevice" + }, + "id": "callNode-8a4dfa72-d9e5-4715-8247-0ef481024bce", + "type": "callNode", + "position": { + "x": 3800, + "y": 950 }, - "skake": false + "previousNodeId": "whenNode-bbff892b-f1fa-467b-a4d1-644f54301691", + "branching": "success" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 829, - "y": 29 + "type": "callNode", + "id": "callNode-8a4dfa72-d9e5-4715-8247-0ef481024bce", + "position": { + "x": 3800, + "y": 950 + }, + "measured": { + "width": 170, + "height": 124 } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "position": { - "x": 629, - "y": 30 - }, - "type": "call", "data": { - "id": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "type": "Agama-call-Node", - "parentId": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 629, - "y": 30 - }, "agamaData": { - "id": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "parentId": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "type": "Agama-call-Node", - "displayName": "ScimFido2Helper instance", "hasComment": true, - "comment": "Get Instance ScimFido2Helper", - "javaClassName": "org.gluu.agama.passkey.ScimFido2Helper", - "javaMethodName": "", - "javaVariableName": "", - "exceptionVariableField": "", - "callType": "Create an instance", - "whenCondition": "", - "inRepeatBlock": false, - "arguments": [ - "scimSetting" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "scimFido2Helper" + "conditions": [ + { + "variable": "listForm.loginWithPasskeyBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" + } + ] + }, + "id": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "type": "whenNode", + "position": { + "x": 3050, + "y": 450 }, - "skake": false + "previousNodeId": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "branching": "continue" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 629, - "y": 30 + "type": "whenNode", + "id": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "position": { + "x": 3050, + "y": 450 + }, + "measured": { + "width": 110, + "height": 60 } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "position": { - "x": 429, - "y": 31 - }, - "type": "call", "data": { - "id": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "type": "Agama-call-Node", - "parentId": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 429, - "y": 31 - }, "agamaData": { - "id": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "parentId": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "type": "Agama-call-Node", - "displayName": "FidoValidator instance", + "nodeIcon": "material-symbols:code", + "displayName": "Assertion request", "hasComment": true, - "comment": "Get Instance FidoValidator", - "javaClassName": "org.gluu.agama.passkey.authn.FidoValidator", - "javaMethodName": "", - "javaVariableName": "", + "comment": "Method for generating a passkey authentication request", + "javaClassName": "", + "javaMethodName": "assertionRequest", + "javaVariableName": "fidoValidator", "exceptionVariableField": "", - "callType": "Create an instance", - "whenCondition": "", - "inRepeatBlock": false, - "arguments": [], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "fidoValidator" + "callType": "Call method on instance", + "arguments": [ + "uid" + ], + "asssignedVariableName": "detestable" }, - "skake": false + "id": "callNode-fd84c14c-e802-449d-b313-e185f3f8d10d", + "type": "callNode", + "position": { + "x": 3300, + "y": 700 + }, + "previousNodeId": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "branching": "success" + }, + "type": "callNode", + "id": "callNode-fd84c14c-e802-449d-b313-e185f3f8d10d", + "position": { + "x": 3260, + "y": 602 + }, + "measured": { + "width": 170, + "height": 124 }, "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 429, - "y": 31 - } + "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "position": { - "x": 232, - "y": 30 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "type": "Agama-assignment-Node", - "parentId": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 232, - "y": 30 - }, "agamaData": { - "id": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "parentId": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32", - "type": "Agama-assignment-Node", + "nodeIcon": "material-symbols:equal", "displayName": "", "hasComment": true, - "comment": "Declaration of uid and inum taken from userData", - "whenCondition": "", - "inRepeatBlock": false, + "comment": "Show authentication process with passkey", "assignments": [ { "variableTypeCheck": false, - "assignmentExpression": "userData.inum", - "assignedVariableName": "inum" + "assignmentExpression": "false", + "assignedVariableName": "obj.showError" }, { "variableTypeCheck": false, - "assignmentExpression": "userData.uid", - "assignedVariableName": "uid" + "assignmentExpression": "true", + "assignedVariableName": "obj.isAssertion" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "detestable", + "assignedVariableName": "obj.assertion" } - ], - "nodeIcon": "material-symbols:equal" + ] }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 232, - "y": 30 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32", - "type": "start", - "sourcePosition": "right", - "data": { - "id": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32", - "type": "Agama-start-Flow", + "id": "assignmentNode-c9006578-c7a8-476d-9bda-52ac388e9802", + "type": "assignmentNode", "position": { - "x": 30.602139755179337, - "y": 31 - }, - "inRepeatBlock": false, - "agamaData": { - "id": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32", - "type": "Agama-start-Flow", - "displayName": "Passkey List", - "hasComment": true, - "comment": "Flow responsible for managing your passkeys and login with passkey", - "isTopLevelFlow": true, - "basepath": "", - "configParams": "{}", - "nodeIcon": "material-symbols:line-start-square", - "timeout": "", - "inputs": "userData scimSetting", - "configs": "", - "flowname": "org.gluu.agama.passkey.list" + "x": 3550, + "y": 700 }, - "skake": false - }, - "position": { - "x": 30.602139755179337, - "y": 31 + "previousNodeId": "callNode-fd84c14c-e802-449d-b313-e185f3f8d10d" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 30.602139755179337, - "y": 31 - } - }, - { - "width": 110, - "height": 60, - "id": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", + "type": "assignmentNode", + "id": "assignmentNode-c9006578-c7a8-476d-9bda-52ac388e9802", "position": { - "x": 430.7627115571704, - "y": -0.8568432276669 + "x": 3546, + "y": 656 }, - "parentId": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "type": "when", - "data": { - "id": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 430.7627115571704, - "y": -0.8568432276669 - }, - "agamaData": { - "id": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "parentId": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "type": "Agama-when-Node", - "conditions": [ - { - "variable": "listForm.tokenResponse", - "operator": "is not", - "dataValue": "\"\"", - "combinator": "and" - }, - { - "variable": "listForm.tokenResponse", - "operator": "is not", - "dataValue": "null", - "combinator": "none" - } - ], - "comment": "", - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2569.6612871314683 - } - }, - "handles": [ - "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5.FAILURE", - "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5.SUCCESS" - ], - "skake": false + "measured": { + "width": 170, + "height": 124 }, "selected": false, - "positionAbsolute": { - "x": 3639.3070611651874, - "y": 326.960326925457 - }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "dragging": false }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "position": { - "x": 267.31275019832447, - "y": 13.571105031164507 - }, - "parentId": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "type": "when", "data": { - "id": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 267.31275019832447, - "y": 13.571105031164507 - }, "agamaData": { - "id": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "parentId": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { "variable": "listForm.skipped", @@ -1695,328 +1040,196 @@ "dataValue": "\"skipped\"", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2379.555044510517 - } - }, - "handles": [ - "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e.FAILURE", - "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e.SUCCESS" - ], - "skake": false + ] + }, + "id": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "type": "whenNode", + "position": { + "x": 3300, + "y": 450 + }, + "previousNodeId": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 3208.544349608017, - "y": 327.8171701531239 + "type": "whenNode", + "id": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "position": { + "x": 3300, + "y": 450 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "position": { - "x": 326.22617243787045, - "y": 0.11817257934205827 - }, - "parentId": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "type": "when", "data": { - "id": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 326.22617243787045, - "y": 0.11817257934205827 - }, "agamaData": { - "id": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "parentId": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ + "nodeIcon": "material-symbols:equal", + "nodeColor": "#eb999a", + "displayName": "", + "hasComment": true, + "comment": "Show authentication process cancellation error", + "assignments": [ { - "variable": "listForm.loginWithPasskeyBtn", - "operator": "is", - "dataValue": "\"\"", - "combinator": "none" + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAssertion" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "true", + "assignedVariableName": "obj.showError" + }, + { + "variableTypeCheck": true, + "assignmentExpression": "Passkey authentication failed.", + "assignedVariableName": "obj.errorTitle" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "listForm.errorMessage", + "assignedVariableName": "obj.errorMessage" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2159.8904094846243 - } - }, - "handles": [ - "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3.FAILURE", - "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3.SUCCESS" - ], - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2941.2315994096925, - "y": 314.2460651219594 + ] + }, + "id": "assignmentNode-cd24e52d-037a-4b09-92c6-9dfc11c62f07", + "type": "assignmentNode", + "position": { + "x": 3550, + "y": 700 + }, + "previousNodeId": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "branching": "success" }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" - }, - { - "width": 110, - "height": 60, - "id": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", + "type": "assignmentNode", + "id": "assignmentNode-cd24e52d-037a-4b09-92c6-9dfc11c62f07", "position": { - "x": 324.1104003460532, - "y": -3.631957170559531 + "x": 3418, + "y": 490 }, - "parentId": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "type": "when", - "data": { - "id": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 324.1104003460532, - "y": -3.631957170559531 - }, - "agamaData": { - "id": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "parentId": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ - { - "variable": "listForm.addAPasskeyBtn", - "operator": "is", - "dataValue": "\"\"", - "combinator": "none" - } - ], - "hasComment": true, - "inRepeatBlock": true, - "position": { - "x": 2102.0357010730263 - } - }, - "handles": [ - "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da.FAILURE", - "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da.SUCCESS" - ], - "skake": false, - "inIterateBlock": "" + "measured": { + "width": 170, + "height": 124 }, "selected": false, - "positionAbsolute": { - "x": 2615.005426971822, - "y": 314.12789254261736 - }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "" + "dragging": false }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "position": { - "x": 301.5077119638281, - "y": 2.058672215571164 - }, - "parentId": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "type": "when", "data": { - "id": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "", - "position": { - "x": 301.5077119638281, - "y": 2.058672215571164 - }, "agamaData": { - "id": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "parentId": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, + "comment": "", "conditions": [ { - "variable": "listForm.editItemBtn", - "operator": "is", + "variable": "listForm.tokenResponse", + "operator": "is not", "dataValue": "\"\"", + "combinator": "and" + }, + { + "variable": "listForm.tokenResponse", + "operator": "is not", + "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": false, - "position": { - "x": 1800.1656564010102 - } + ] }, - "handles": [ - "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b.FAILURE", - "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b.SUCCESS" - ], - "skake": false + "id": "whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96", + "type": "whenNode", + "position": { + "x": 3550, + "y": 450 + }, + "previousNodeId": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 2290.895026625769, - "y": 317.7598497131769 + "type": "whenNode", + "id": "whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96", + "position": { + "x": 3550, + "y": 450 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "position": { - "x": 253.20098779770615, - "y": 81.25077664713939 - }, - "parentId": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "type": "when", "data": { - "id": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "type": "Agama-when-Node", - "parentId": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "whenCondition": "WhenFalse", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 253.20098779770615, - "y": 81.25077664713939 - }, "agamaData": { - "id": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "parentId": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ - { - "variable": "listForm.deviceId", - "operator": "is not", - "dataValue": "\"\"", - "combinator": "none" - } - ], + "nodeIcon": "material-symbols:code", + "displayName": "Assertion verify", "hasComment": true, - "inRepeatBlock": false + "comment": "Call the method to verify authentication with the passkey", + "javaClassName": "", + "javaMethodName": "verify", + "javaVariableName": "fidoValidator", + "exceptionVariableField": "E", + "callType": "Call method on instance", + "arguments": [ + "listForm.tokenResponse" + ], + "asssignedVariableName": "verifyResponse" + }, + "id": "callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a", + "type": "callNode", + "position": { + "x": 3800, + "y": 700 }, - "handles": [ - "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19.FAILURE", - "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1626.0950274287716, - "y": 316.1836482332443 + "type": "callNode", + "id": "callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a", + "position": { + "x": 3868, + "y": 598 + }, + "measured": { + "width": 170, + "height": 124 }, + "selected": false, "dragging": false }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "position": { - "x": 363.2922872331692, - "y": -0.48247073563857157 - }, - "parentId": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "type": "when", "data": { - "id": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "", - "position": { - "x": 363.2922872331692, - "y": -0.48247073563857157 - }, "agamaData": { - "id": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "parentId": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { - "variable": "listForm.cancelItemBtn", - "operator": "is", - "dataValue": "\"\"", + "variable": "E", + "operator": "is not", + "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": false, - "position": { - "x": 1741.306509375275 - } + ] + }, + "id": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "type": "whenNode", + "position": { + "x": 4050, + "y": 700 }, - "handles": [ - "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8.FAILURE", - "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8.SUCCESS" - ], - "skake": false + "previousNodeId": "callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 1989.3873146619408, - "y": 315.7011774976057 + "type": "whenNode", + "id": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "position": { + "x": 4050, + "y": 700 }, - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "position": { - "x": 300.8498332040858, - "y": 86.22248497769453 - }, - "parentId": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "type": "when", "data": { - "id": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "type": "Agama-when-Node", - "parentId": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "whenCondition": "WhenFalse", - "inRepeatBlock": false, - "inIterateBlock": false, - "position": { - "x": 300.8498332040858, - "y": 86.22248497769453 - }, "agamaData": { - "id": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "parentId": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { "variable": "E", @@ -2024,754 +1237,778 @@ "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": false + ] + }, + "id": "whenNode-1c16f245-7959-4181-a722-56d7ff1530ca", + "type": "whenNode", + "position": { + "x": 4300, + "y": 700 }, - "handles": [ - "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e.FAILURE", - "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 2465.4654520804324, - "y": 756.7812258179124 + "type": "whenNode", + "id": "whenNode-1c16f245-7959-4181-a722-56d7ff1530ca", + "position": { + "x": 4300, + "y": 700 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "position": { - "x": 345.6947493431426, - "y": 4.026979277279224 - }, - "parentId": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "type": "when", "data": { - "id": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "", - "position": { - "x": 345.6947493431426, - "y": 4.026979277279224 - }, "agamaData": { - "id": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "parentId": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "type": "Agama-when-Node", - "conditions": [ - { - "variable": "E", - "operator": "is not", - "dataValue": "null", - "combinator": "none" - } - ], + "nodeIcon": "material-symbols:line-end-square-rounded", "hasComment": true, - "inRepeatBlock": false, - "position": { - "x": 2719.8358563414517 - } - }, - "handles": [ - "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94.FAILURE", - "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94.SUCCESS" - ], - "skake": false - }, - "selected": true, - "positionAbsolute": { - "x": 2811.160201423575, - "y": 760.8082050951916 - }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "" - }, - { - "width": 110, - "height": 60, - "id": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", + "comment": "Ends the flow and returns the user's inum", + "returnVariable": "{ userId: inum }", + "finishMode": "withSuccess" + }, + "id": "finishNode-4bb74329-653e-48aa-8b39-1c5eb992620a", + "type": "finishNode", + "position": { + "x": 4550, + "y": 950 + }, + "previousNodeId": "whenNode-1c16f245-7959-4181-a722-56d7ff1530ca", + "branching": "success" + }, + "type": "finishNode", + "id": "finishNode-4bb74329-653e-48aa-8b39-1c5eb992620a", "position": { - "x": 382.97843052848657, - "y": 66.47337131049153 + "x": 4550, + "y": 950 }, - "parentId": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "type": "when", + "measured": { + "width": 170, + "height": 124 + } + }, + { "data": { - "id": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "type": "Agama-when-Node", - "parentId": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "", - "position": { - "x": 382.97843052848657, - "y": 66.47337131049153 - }, "agamaData": { - "id": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "parentId": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ + "nodeIcon": "material-symbols:equal", + "displayName": "", + "hasComment": true, + "comment": "Show verification errors with their details", + "assignments": [ { - "variable": "E", - "operator": "is not", - "dataValue": "null", - "combinator": "none" + "variableTypeCheck": false, + "assignmentExpression": "true", + "assignedVariableName": "obj.showError" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAssertion" + }, + { + "variableTypeCheck": true, + "assignmentExpression": "Passkey authentication failed.", + "assignedVariableName": "obj.errorTitle" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "E.message", + "assignedVariableName": "obj.errorMessage" } - ], - "hasComment": true, - "inRepeatBlock": false, - "position": { - "x": 4267.1354207886825 - } + ] + }, + "id": "assignmentNode-54837dc6-8bad-4ab3-bb2f-57e35fd8eaae", + "type": "assignmentNode", + "position": { + "x": 4300, + "y": 950 }, - "handles": [ - "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6.FAILURE", - "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 4183.551142415245, - "y": 545.8744965805386 - }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "", - "inIterateBlock": "" + "type": "assignmentNode", + "id": "assignmentNode-54837dc6-8bad-4ab3-bb2f-57e35fd8eaae", + "position": { + "x": 4300, + "y": 950 + }, + "measured": { + "width": 170, + "height": 124 + } } ], "edges": [ { - "id": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32-Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2-d557d6c0-80de-45b7-9ef3-3bb611008e82", - "type": "straight", - "source": "Agama-start-Flow-93ffac5b-aaa9-472e-a1c9-783c54a54b32", - "target": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "label": "", + "id": "startNode-50bc43ab-6afc-492b-9fca-1fa6ec308b72-assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2", + "type": "default", + "source": "startNode-50bc43ab-6afc-492b-9fca-1fa6ec308b72", + "target": "assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_startNode-50bc43ab-6afc-492b-9fca-1fa6ec308b72" }, { - "id": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2-Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028-39681149-cb24-459c-9b4d-642a16fd2533", - "type": "straight", - "source": "Agama-assignment-Node-7f9fc2f6-5137-4bb3-acee-421851b701e2", - "target": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "label": "", + "id": "assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2-callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa", + "type": "default", + "source": "assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2", + "target": "callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-c4e3d067-a5ad-4b6b-a202-50e537fd02e2" }, { - "id": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028-Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44-e7a0b076-9384-4b36-a66c-b4485f6d4c23", - "type": "straight", - "source": "Agama-call-Node-b9aa2445-9141-4b46-b6a1-e4a296842028", - "target": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "label": "", + "id": "callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa-callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860", + "type": "default", + "source": "callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa", + "target": "callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-b6b92786-435f-4e8d-b17f-78fa0a252efa" }, { - "id": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44-Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c-4bd8cf8b-7857-4795-8b42-6b5e443bd61e", - "type": "straight", - "source": "Agama-call-Node-0d001f9c-34e2-43c1-a75c-260734e65c44", - "target": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "label": "", + "id": "callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860-callNode-77738ab6-d466-4c86-9b31-00786094dbe7", + "type": "default", + "source": "callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860", + "target": "callNode-77738ab6-d466-4c86-9b31-00786094dbe7", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-a20c066f-b9a9-49e2-8be2-9c3830dd9860" }, { - "id": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c-Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285-50483089-0edb-474e-80f8-2145da0ede82", - "type": "straight", - "source": "Agama-call-Node-6fcad667-fb9f-4d49-bf9f-412a4d28e20c", - "target": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "label": "", + "id": "callNode-77738ab6-d466-4c86-9b31-00786094dbe7-assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c", + "type": "default", + "source": "callNode-77738ab6-d466-4c86-9b31-00786094dbe7", + "target": "assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-77738ab6-d466-4c86-9b31-00786094dbe7" }, { - "id": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285-Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43-304741f2-7ba8-4172-8da2-f00803ba05db", - "type": "straight", - "source": "Agama-assignment-Node-7f3fcf18-ea17-4e81-aa51-6fbf89b15285", - "target": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "label": "", + "id": "assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c-repeatNode-ee338b35-c02a-4a59-9241-130588162828", + "type": "default", + "source": "assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c", + "target": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-55d478cf-f583-4511-bc03-c8644c8a1f1c" }, { - "id": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43-Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2-2522d5b5-a87c-4a9d-be5d-0e272a4a9f53", - "type": "straight", - "source": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "target": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "label": "In Block", + "id": "repeatNode-ee338b35-c02a-4a59-9241-130588162828-finishNode-592073bc-bcbe-400d-865a-e0d2e28d8163", + "type": "default", + "source": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", + "target": "finishNode-592073bc-bcbe-400d-865a-e0d2e28d8163", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43.InRepeatBlock" + "labelShowBg": true, + "sourceHandle": "source_repeatNode-ee338b35-c02a-4a59-9241-130588162828_continue" }, { - "id": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5-Agama-when-Node-57120ce1-4a7f-4858-a608-60f849d1ef48-dd8f17e3-2f41-4d51-b7ca-272ca0f70ce4", - "type": "straight", - "source": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "target": "Agama-when-Node-57120ce1-4a7f-4858-a608-60f849d1ef48", - "label": "Condition met", + "id": "repeatNode-ee338b35-c02a-4a59-9241-130588162828-rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b", + "type": "default", + "source": "repeatNode-ee338b35-c02a-4a59-9241-130588162828", + "target": "rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "repeat", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_repeatNode-ee338b35-c02a-4a59-9241-130588162828_repeat" }, { - "id": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5-Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191-a127dc09-4c07-4829-832e-6895608e189c", - "type": "straight", - "source": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "target": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "label": "Condition met", + "id": "rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b-whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "type": "default", + "source": "rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b", + "target": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5.SUCCESS", - "selected": false + "labelShowBg": true, + "sourceHandle": "source_rrfNode-375f9c38-b9f0-428d-bb93-3b2de1a60c3b" }, { - "id": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e-Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5-e3cc81e2-14e7-41f7-ae56-148494c45c08", - "type": "straight", - "source": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "target": "Agama-when-Node-ce5621e5-11f9-4f9c-b05e-d9292150f7e5", - "label": "", + "id": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87-assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a", + "type": "default", + "source": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "target": "assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87_success" }, { - "id": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e-Agama-assignment-Node-f23696fa-95f5-4af0-9b48-1f7872b9b137-b2c69be6-256e-485b-a459-adf98dbfcfdb", - "type": "straight", - "source": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "target": "Agama-assignment-Node-f23696fa-95f5-4af0-9b48-1f7872b9b137", - "label": "Condition met", + "id": "assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a-callNode-d433b5af-1768-4f50-ab65-0c33a460c74b", + "type": "default", + "source": "assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a", + "target": "callNode-d433b5af-1768-4f50-ab65-0c33a460c74b", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-29ab5e0b-a141-4b1b-8278-cae7f3014d3a" }, { - "id": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3-Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e-3aac07af-681c-4987-b9f7-baad13723205", - "type": "straight", - "source": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "target": "Agama-when-Node-6786557b-5a46-40f6-a2d7-a70b4241649e", - "label": "", + "id": "callNode-d433b5af-1768-4f50-ab65-0c33a460c74b-whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "type": "default", + "source": "callNode-d433b5af-1768-4f50-ab65-0c33a460c74b", + "target": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_callNode-d433b5af-1768-4f50-ab65-0c33a460c74b" }, { - "id": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3-Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0-898551d0-96f0-49a5-aa3b-1d0f88b9999d", - "type": "straight", - "source": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "target": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "label": "Condition met", + "id": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722-callNode-27ab3584-96b0-4ec9-a1fc-a387546ccac1", + "type": "default", + "source": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "target": "callNode-27ab3584-96b0-4ec9-a1fc-a387546ccac1", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722_success" }, { - "id": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0-Agama-assignment-Node-642689a4-66e6-4b5a-ad29-aaf82dee374b-ee254b4f-f315-4610-aba2-2e1f74665d57", - "type": "straight", - "source": "Agama-call-Node-8ea24826-c6dc-4436-b3a3-6a67dca112c0", - "target": "Agama-assignment-Node-642689a4-66e6-4b5a-ad29-aaf82dee374b", - "label": "", + "id": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722-whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084", + "type": "default", + "source": "whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722", + "target": "whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "selected": false + "labelShowBg": true, + "sourceHandle": "source_whenNode-ed089c93-5f93-4cf4-92a8-6405d14b6722_continue" }, { - "id": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da-Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3-f5cbefbd-b24d-44c5-b0b8-02d84a215497", - "type": "straight", - "source": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "target": "Agama-when-Node-1c6dd4a0-70db-46ac-acd4-4c4ce4d8d9f3", - "label": "", + "id": "whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084-assignmentNode-874cec86-df91-4123-ab52-0f44b80d237d", + "type": "default", + "source": "whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084", + "target": "assignmentNode-874cec86-df91-4123-ab52-0f44b80d237d", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-f7d7a238-8f96-4caf-88fe-53721d76e084_success" }, { - "id": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da-Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3-7382f69d-3852-43df-badf-38c78f492f9c", - "type": "straight", - "source": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "target": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "label": "Condition met", + "id": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87-whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "type": "default", + "source": "whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87", + "target": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-69ae9b48-96ac-456a-8bb5-9e0515c12f87_continue" }, { - "id": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3-Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5-d2c8a784-d56b-4e31-9b40-7d5b1aa54d05", - "type": "straight", - "source": "Agama-trigger-Node-5b164c31-747d-413a-8669-bb1cd7219bf3", - "target": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "label": "", + "id": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7-assignmentNode-5be53b82-6e7d-48c7-ba03-e4f0c90fb6d6", + "type": "default", + "source": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "target": "assignmentNode-5be53b82-6e7d-48c7-ba03-e4f0c90fb6d6", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7_success" }, { - "id": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5-Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594-759884d8-1ebe-444c-ae73-20c470b4daff", - "type": "straight", - "source": "Agama-assignment-Node-822bb243-1b06-46dc-95a8-f9bcc91683b5", - "target": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "label": "", + "id": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7-whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "type": "default", + "source": "whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7", + "target": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "selected": false + "labelShowBg": true, + "sourceHandle": "source_whenNode-448a37d6-c898-47c3-ae7a-2ead15a804c7_continue" }, { - "id": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594-Agama-call-Node-22d1db2a-c501-4f0e-8c37-0edf0a02b781-260ba8be-1b31-4f5d-8590-dbcb4051d7d6", - "type": "straight", - "source": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594", - "target": "Agama-call-Node-22d1db2a-c501-4f0e-8c37-0edf0a02b781", - "label": "Condition met", + "id": "whenNode-13f634ab-7904-4283-973a-f654bf74373f-assignmentNode-c99fd5cc-6629-4861-a3eb-fcae4cea457e", + "type": "default", + "source": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "target": "assignmentNode-c99fd5cc-6629-4861-a3eb-fcae4cea457e", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-359dc929-bddc-402c-94d0-1c37b8461594.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-13f634ab-7904-4283-973a-f654bf74373f_success" }, { - "id": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43-finish-b0459236-3083-40d4-9892-2a5ff3bc7a94-395f0bc4-6dad-4aa0-8d7d-162c7fed9c4f", - "type": "straight", - "source": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43", - "target": "finish-b0459236-3083-40d4-9892-2a5ff3bc7a94", - "label": "Not In Block", + "id": "whenNode-13f634ab-7904-4283-973a-f654bf74373f-whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "type": "default", + "source": "whenNode-13f634ab-7904-4283-973a-f654bf74373f", + "target": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-repeat-Node-e9662d07-f37f-45fe-a764-9c29d1e9cd43.InFlow" - }, - { - "id": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b->Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da", - "source": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "target": "Agama-when-Node-aabe4891-06a1-4e4f-b537-981a856e53da" + "labelShowBg": true, + "sourceHandle": "source_whenNode-13f634ab-7904-4283-973a-f654bf74373f_continue" }, { - "id": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b-Agama-assignment-Node-e4d3b6b1-d8fa-4513-80fb-f87055fba7d8-891175db-270c-4b90-a037-2d804de15e1c", - "type": "straight", - "source": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "target": "Agama-assignment-Node-e4d3b6b1-d8fa-4513-80fb-f87055fba7d8", - "label": "Condition met", + "id": "whenNode-5a7e188f-9752-4d13-8634-90470815188e-triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4", + "type": "default", + "source": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "target": "triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-5a7e188f-9752-4d13-8634-90470815188e_success" }, { - "id": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8-Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b-16eb1982-d093-4d55-8e7f-4121d90f91ac", - "type": "straight", - "source": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "target": "Agama-when-Node-e5569247-f616-49dc-a77c-6ccc231d3b4b", - "label": "", + "id": "triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4-assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b", + "type": "default", + "source": "triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4", + "target": "assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_triggerNode-6b2717b6-0935-4a45-a759-ec608d4d7bf4" }, { - "id": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8-Agama-assignment-Node-1ebf9991-e326-48c9-8008-2d3eb681447b-4d894dc2-24b2-4966-8b18-d8c011e566e2", - "type": "straight", - "source": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "target": "Agama-assignment-Node-1ebf9991-e326-48c9-8008-2d3eb681447b", - "label": "Condition met", + "id": "assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b-whenNode-bbff892b-f1fa-467b-a4d1-644f54301691", + "type": "default", + "source": "assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b", + "target": "whenNode-bbff892b-f1fa-467b-a4d1-644f54301691", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-09bdae9e-18e1-44fd-97c2-c3316b796c4b" }, { - "id": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2-Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19-1a1cd309-e0a0-4011-a24c-fec764450809", - "type": "straight", - "source": "Agama-rrf-Node-88cdeffc-e4a7-46cb-a159-29bac8d3f8f2", - "target": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "label": "", + "id": "whenNode-bbff892b-f1fa-467b-a4d1-644f54301691-callNode-8a4dfa72-d9e5-4715-8247-0ef481024bce", + "type": "default", + "source": "whenNode-bbff892b-f1fa-467b-a4d1-644f54301691", + "target": "callNode-8a4dfa72-d9e5-4715-8247-0ef481024bce", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-bbff892b-f1fa-467b-a4d1-644f54301691_success" }, { - "id": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19-Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8-dc7e7d48-6902-4b0d-9a66-785a95c5d884", - "type": "straight", - "source": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "target": "Agama-when-Node-9efcefb0-fa12-4ba3-bab3-2b68b02b31a8", - "label": "", + "id": "whenNode-5a7e188f-9752-4d13-8634-90470815188e-whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "type": "default", + "source": "whenNode-5a7e188f-9752-4d13-8634-90470815188e", + "target": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-5a7e188f-9752-4d13-8634-90470815188e_continue" }, { - "id": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19-Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091-73b39df5-c918-4694-862b-43e540baa6ee", - "type": "straight", - "source": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19", - "target": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "label": "Condition met", + "id": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a-callNode-fd84c14c-e802-449d-b313-e185f3f8d10d", + "type": "default", + "source": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "target": "callNode-fd84c14c-e802-449d-b313-e185f3f8d10d", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-525e0948-e085-4c64-acb0-46cd30b47e19.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a_success" }, { - "id": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091-Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17-61c1c26d-b1a4-401e-ad4c-ce3b60706990", - "type": "straight", - "source": "Agama-assignment-Node-a49ce286-d0ef-4070-903f-43aff111c091", - "target": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "label": "", + "id": "callNode-fd84c14c-e802-449d-b313-e185f3f8d10d-assignmentNode-c9006578-c7a8-476d-9bda-52ac388e9802", + "type": "default", + "source": "callNode-fd84c14c-e802-449d-b313-e185f3f8d10d", + "target": "assignmentNode-c9006578-c7a8-476d-9bda-52ac388e9802", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-fd84c14c-e802-449d-b313-e185f3f8d10d" }, { - "id": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94-Agama-assignment-Node-25a40e2e-a391-421e-b22d-e60d98d5b438-77ab14d0-e1a5-4dac-9c40-db4a077e258c", - "type": "straight", - "source": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "target": "Agama-assignment-Node-25a40e2e-a391-421e-b22d-e60d98d5b438", - "label": "Condition met", + "id": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a-whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "type": "default", + "source": "whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a", + "target": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-d70cbf8c-cac9-4618-8264-48aa9831384a_continue" }, { - "id": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17-Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e-2da06514-aa18-438c-8f04-742996c1ac4c", - "type": "straight", - "source": "Agama-call-Node-668d617c-b558-4979-b8ad-625daac60b17", - "target": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "label": "", + "id": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef-assignmentNode-cd24e52d-037a-4b09-92c6-9dfc11c62f07", + "type": "default", + "source": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "target": "assignmentNode-cd24e52d-037a-4b09-92c6-9dfc11c62f07", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef_success" }, { - "id": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e-Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94-e5058e6f-f614-4b6e-af7c-c4d1332e43ca", - "type": "straight", - "source": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "target": "Agama-when-Node-c663e76a-575b-46cb-8e2c-29b830441f94", - "label": "", + "id": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef-whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96", + "type": "default", + "source": "whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef", + "target": "whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-51d5346c-3328-4cfa-b46f-cda6e84e0aef_continue" }, { - "id": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e-Agama-call-Node-57260680-3c35-4170-88a1-4922d8e4369b-efdcf3c3-effe-488a-9c7f-e03c0cf28b4e", - "type": "straight", - "source": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e", - "target": "Agama-call-Node-57260680-3c35-4170-88a1-4922d8e4369b", - "label": "Condition met", + "id": "whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96-callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a", + "type": "default", + "source": "whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96", + "target": "callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-7da83847-0a02-4f3b-8368-8bd94429600e.SUCCESS", - "selected": false + "labelShowBg": true, + "sourceHandle": "source_whenNode-70a825d3-736e-4ea5-8058-504fc59f0f96_success" }, { - "id": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6-Agama-assignment-Node-78506e95-df9b-498d-b446-0cf73e01668f-df705c7f-54cc-4a8d-8967-150e319e4699", - "type": "straight", - "source": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "target": "Agama-assignment-Node-78506e95-df9b-498d-b446-0cf73e01668f", - "label": "Condition met", + "id": "callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a-whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "type": "default", + "source": "callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a", + "target": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_callNode-7a8aa04d-8cbc-4720-b849-6dfaf0f7bd8a" }, { - "id": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6-Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b-593593b8-0a2e-48af-86fe-a222a9510495", - "type": "straight", - "source": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "target": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "label": "", + "id": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621-whenNode-1c16f245-7959-4181-a722-56d7ff1530ca", + "type": "default", + "source": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "target": "whenNode-1c16f245-7959-4181-a722-56d7ff1530ca", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621_continue" }, { - "id": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191->Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6", - "source": "Agama-call-Node-a417cb5f-611c-4eb0-97c7-ca19d0828191", - "target": "Agama-when-Node-5c9abd3e-baee-4ebd-9e80-d815071e38b6" + "id": "whenNode-1c16f245-7959-4181-a722-56d7ff1530ca-finishNode-4bb74329-653e-48aa-8b39-1c5eb992620a", + "type": "default", + "source": "whenNode-1c16f245-7959-4181-a722-56d7ff1530ca", + "target": "finishNode-4bb74329-653e-48aa-8b39-1c5eb992620a", + "labelBgPadding": [ + 8, + 4 + ], + "labelBgBorderRadius": 4, + "label": "Condition met", + "labelBgStyle": { + "fill": "#009688", + "color": "#ffffff", + "fillOpacity": 0.7 + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-1c16f245-7959-4181-a722-56d7ff1530ca_success" }, { - "id": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b-finish-775d6567-2d61-4a88-9412-d4f3df062202-dc8bb277-081d-4217-a09e-211dbddd5b97", - "type": "straight", - "source": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b", - "target": "finish-775d6567-2d61-4a88-9412-d4f3df062202", - "label": "Condition met", + "id": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621-assignmentNode-54837dc6-8bad-4ab3-bb2f-57e35fd8eaae", + "type": "default", + "source": "whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621", + "target": "assignmentNode-54837dc6-8bad-4ab3-bb2f-57e35fd8eaae", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-9c78aab0-3b60-40a8-99ee-1250af47a24b.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-f39321ea-4b98-4d74-adc8-6ff5577e4621_success" } ], "viewport": { - "x": -418.9467034409531, - "y": 67.6093626876152, + "x": 68.68486103646319, + "y": -10.188241703941571, "zoom": 0.5 } } \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.main.flow b/code/org.gluu.agama.passkey.main.flow index 42a55d8..0c1376b 100644 --- a/code/org.gluu.agama.passkey.main.flow +++ b/code/org.gluu.agama.passkey.main.flow @@ -26,8 +26,8 @@ Repeat 5 times max listTrigger = Trigger org.gluu.agama.passkey.list userData conf When listTrigger.success is true // Finish with success userId - it_odhpf = {success:true, data: { userId: userData.uid }} - Finish it_odhpf + it_nnhjo = {success:true, data: { userId: userData.uid }} + Finish it_nnhjo When mainForm.loginWithPasskeyBtn is "" // Generates an assertion request without username detestable = Call fidoValidator assertionRequest null @@ -46,8 +46,8 @@ Repeat 5 times max obj.errorMessage = E.message When E is null // Finish with success userId - it_htzwz = {success:true, data: { userId: verifyResponse }} - Finish it_htzwz + it_ghxci = {success:true, data: { userId: verifyResponse }} + Finish it_ghxci When mainForm.skipped is "skipped" // Displays the authentication event cancellation error obj.isAssertion = false @@ -55,5 +55,5 @@ Repeat 5 times max obj.errorTitle = "Passkey authentication failed." obj.errorMessage = mainForm.errorMessage // When you have made the maximum number of attempts, the flow will be terminated. -it_smtbh = {success:false, error: "Login attempt exceeded"} -Finish it_smtbh \ No newline at end of file +it_mtzsh = {success:false, error: "Login attempt exceeded"} +Finish it_mtzsh \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.main.json b/code/org.gluu.agama.passkey.main.json index 8f3c4c5..0ed4af6 100644 --- a/code/org.gluu.agama.passkey.main.json +++ b/code/org.gluu.agama.passkey.main.json @@ -1,427 +1,417 @@ { "nodes": [ { - "width": 180, - "height": 30, - "id": "Agama-note-4d03b0f4-d73a-4668-9086-8769181accf7", + "data": { + "agamaData": { + "isTopLevelFlow": true, + "basepath": "", + "configParams": "{}", + "creationDate": "29/11/2024", + "nodeIcon": "material-symbols:line-start-square", + "timeout": "", + "inputs": "", + "configs": "conf", + "flowname": "org.gluu.agama.passkey.main", + "displayName": "Passkey Main", + "hasComment": true, + "comment": "Main flow to handle all sub flows" + }, + "id": "startNode-f9a49856-7f0f-42e6-b873-83d2afe2b2ae", + "type": "startNode", + "position": { + "x": 50, + "y": 200 + } + }, + "type": "startNode", + "id": "startNode-f9a49856-7f0f-42e6-b873-83d2afe2b2ae", "position": { - "x": 2764.0861855639464, - "y": 606.9386479741179 + "x": 50, + "y": 200 }, - "type": "notes", + "measured": { + "width": 170, + "height": 124 + } + }, + { "data": { - "id": "Agama-note-4d03b0f4-d73a-4668-9086-8769181accf7", - "type": "Agama-note", - "notes": "If verification fails", + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "Authentication service class", + "hasComment": true, + "comment": "Get Instance AuthenticationService", + "javaClassName": "io.jans.as.server.service.AuthenticationService", + "javaMethodName": "", + "javaVariableName": "", + "exceptionVariableField": "", + "callType": "Get class object", + "arguments": [], + "asssignedVariableName": "authService" + }, + "id": "callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9", + "type": "callNode", "position": { - "x": 2764.0861855639464, - "y": 606.9386479741179 + "x": 300, + "y": 200 }, - "skake": false + "previousNodeId": "startNode-f9a49856-7f0f-42e6-b873-83d2afe2b2ae" }, - "selected": false, - "positionAbsolute": { - "x": 2764.0861855639464, - "y": 606.9386479741179 + "type": "callNode", + "id": "callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9", + "position": { + "x": 300, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 242, - "height": 30, - "id": "Agama-note-461513cf-4bc0-473b-9a2b-c33b6097a986", - "position": { - "x": 3133.214676503235, - "y": 605.7582048541075 - }, - "type": "notes", "data": { - "id": "Agama-note-461513cf-4bc0-473b-9a2b-c33b6097a986", - "type": "Agama-note", - "notes": "If verification is successful", + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "CdiUtil static instance", + "hasComment": true, + "comment": "Get Instance CdiUtil", + "javaClassName": "io.jans.service.cdi.util.CdiUtil", + "javaMethodName": "bean", + "javaVariableName": "", + "exceptionVariableField": "", + "callType": "Call static method", + "arguments": [ + "authService" + ], + "asssignedVariableName": "cdiUtil" + }, + "id": "callNode-fa6fc699-2a89-44c3-9952-df54fb41861d", + "type": "callNode", "position": { - "x": 3133.214676503235, - "y": 605.7582048541075 + "x": 550, + "y": 200 }, - "skake": false + "previousNodeId": "callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9" }, - "selected": false, - "positionAbsolute": { - "x": 3133.214676503235, - "y": 605.7582048541075 + "type": "callNode", + "id": "callNode-fa6fc699-2a89-44c3-9952-df54fb41861d", + "position": { + "x": 550, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-319f093f-7c73-4f47-8336-cdaa6bea1933", - "position": { - "x": 2902.4258465318508, - "y": 1023.285805115605 - }, - "type": "notes", "data": { - "id": "Agama-note-319f093f-7c73-4f47-8336-cdaa6bea1933", - "type": "Agama-note", - "notes": "If the flow is executed correctly", + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "FidoValidator instance", + "hasComment": true, + "comment": "Get Instance FidoValidator", + "javaClassName": "org.gluu.agama.passkey.authn.FidoValidator", + "javaMethodName": "", + "javaVariableName": "", + "exceptionVariableField": "", + "callType": "Create an instance", + "arguments": [], + "asssignedVariableName": "fidoValidator" + }, + "id": "callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d", + "type": "callNode", "position": { - "x": 2902.4258465318508, - "y": 1023.285805115605 + "x": 800, + "y": 200 }, - "skake": false + "previousNodeId": "callNode-fa6fc699-2a89-44c3-9952-df54fb41861d" }, - "selected": false, - "positionAbsolute": { - "x": 2902.4258465318508, - "y": 1023.285805115605 + "type": "callNode", + "id": "callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d", + "position": { + "x": 800, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 258, - "height": 30, - "id": "Agama-note-c86b5e7b-1582-46f9-b615-8600b3d08966", - "position": { - "x": 2212.5, - "y": 804.5 - }, - "type": "notes", "data": { - "id": "Agama-note-c86b5e7b-1582-46f9-b615-8600b3d08966", - "type": "Agama-note", - "notes": "If authentication is successful", + "agamaData": { + "nodeIcon": "material-symbols:equal", + "displayName": "new obj var", + "hasComment": true, + "comment": "obj variable declaration, which is sent to the main form", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "{}", + "assignedVariableName": "authResult" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "{ success: true, assertion: \"{}\", isAssertion: false, showError: false, errorTitle: \"\", errorMessage: \"\" }", + "assignedVariableName": "obj" + } + ] + }, + "id": "assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c", + "type": "assignmentNode", "position": { - "x": 2212.5, - "y": 804.5 + "x": 1050, + "y": 200 }, - "skake": false + "previousNodeId": "callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d" }, - "selected": false, - "positionAbsolute": { - "x": 2212.5, - "y": 804.5 + "type": "assignmentNode", + "id": "assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c", + "position": { + "x": 1050, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-62753a39-ff23-47e9-a180-b88dace38547", - "position": { - "x": 2238.713022043914, - "y": 220.4082722608269 - }, - "type": "notes", "data": { - "id": "Agama-note-62753a39-ff23-47e9-a180-b88dace38547", - "type": "Agama-note", - "notes": "When generating the FIDO authorization token", + "agamaData": { + "nodeIcon": "material-symbols:event-repeat-outline-rounded", + "displayName": "Repeat 5 times", + "hasComment": true, + "maxIteration": "5" + }, + "id": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "type": "repeatNode", "position": { - "x": 2238.713022043914, - "y": 220.4082722608269 + "x": 1300, + "y": 200 }, - "skake": false + "previousNodeId": "assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c" }, - "selected": false, - "positionAbsolute": { - "x": 2238.713022043914, - "y": 220.4082722608269 + "type": "repeatNode", + "id": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "position": { + "x": 1300, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-6afb82e3-fcdd-4100-b201-16ddf06d2cbc", - "position": { - "x": 2580.26825070132, - "y": 224.5572524242874 - }, - "type": "notes", "data": { - "id": "Agama-note-6afb82e3-fcdd-4100-b201-16ddf06d2cbc", - "type": "Agama-note", - "notes": "When skipping the \"login with passkey\" request", + "agamaData": { + "nodeIcon": "material-symbols:line-end-square-rounded", + "nodeColor": "#ef9a9a", + "titleColor": "#000000", + "descColor": "#000000", + "displayName": "Response error", + "hasComment": true, + "comment": "When you have made the maximum number of attempts, the flow will be terminated.", + "returnVariable": "Login attempt exceeded", + "finishMode": "withFailure" + }, + "id": "finishNode-81fe6e49-10d8-4081-b0b6-1f4715ad84f9", + "type": "finishNode", "position": { - "x": 2580.26825070132, - "y": 224.5572524242874 + "x": 1550, + "y": 200 }, - "skake": false + "previousNodeId": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 2580.26825070132, - "y": 224.5572524242874 + "type": "finishNode", + "id": "finishNode-81fe6e49-10d8-4081-b0b6-1f4715ad84f9", + "position": { + "x": 1550, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 270, - "height": 42, - "id": "Agama-note-68cb7e60-7fba-45c0-95b3-3042e11e70e2", - "position": { - "x": 1899.201384774979, - "y": 219.0841235250822 - }, - "type": "notes", "data": { - "id": "Agama-note-68cb7e60-7fba-45c0-95b3-3042e11e70e2", - "type": "Agama-note", - "notes": "When press the button \"Login with passkey\"", + "agamaData": { + "nodeIcon": "ph:globe-simple", + "displayName": "Render main view", + "hasComment": true, + "comment": "Load main.ftlh page and pass obj", + "arguments": [ + "obj" + ], + "templatePath": "main.ftlh", + "asssignedVariableName": "mainForm" + }, + "id": "rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558", + "type": "rrfNode", "position": { - "x": 1899.201384774979, - "y": 219.0841235250822 + "x": 1550, + "y": 450 }, - "skake": false + "previousNodeId": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "branching": "repeat" }, - "positionAbsolute": { - "x": 1899.201384774979, - "y": 219.0841235250822 + "type": "rrfNode", + "id": "rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558", + "position": { + "x": 1550, + "y": 450 }, - "selected": false, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 242, - "height": 30, - "id": "Agama-note-797dc5c9-8fae-4cdf-9487-6028cd334aab", - "position": { - "x": 1486.9999999999998, - "y": 226 - }, - "type": "notes", "data": { - "id": "Agama-note-797dc5c9-8fae-4cdf-9487-6028cd334aab", - "type": "Agama-note", - "notes": "When press the button \"Login\"", + "agamaData": { + "hasComment": true, + "conditions": [ + { + "variable": "mainForm.loginBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" + } + ] + }, + "id": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "type": "whenNode", "position": { - "x": 1486.9999999999998, - "y": 226 + "x": 1800, + "y": 450 }, - "skake": false + "previousNodeId": "rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558" }, - "selected": false, - "positionAbsolute": { - "x": 1486.9999999999998, - "y": 226 + "type": "whenNode", + "id": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "position": { + "x": 1800, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "finish-0ec140a8-d576-4116-9e5b-5099ba614fdc", - "position": { - "x": 1322.3267328979139, - "y": 27.462214098337398 - }, - "type": "finish", "data": { - "id": "finish-0ec140a8-d576-4116-9e5b-5099ba614fdc", - "type": "Agama-finish-Flow", - "parentId": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "whenCondition": "", - "inRepeatBlock": false, - "handles": [ - "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745.InFlow", - "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745.InRepeatBlock" - ], - "position": { - "x": 1322.3267328979139, - "y": 27.462214098337398 - }, "agamaData": { - "id": "finish-0ec140a8-d576-4116-9e5b-5099ba614fdc", - "parentId": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, + "nodeIcon": "material-symbols:code", + "displayName": "Authenticate with credentials", "hasComment": true, - "comment": "When you have made the maximum number of attempts, the flow will be terminated.", - "flowfilename": "", - "returnVariable": "Login attempt exceeded", - "finishMode": "withFailure", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response error", - "titleColor": "#000000", - "descColor": "#000000", - "nodeColor": "#ef9a9a" + "comment": "Call cdiUtil.authenticate using the credentials entered in main.ftlh", + "javaClassName": "", + "javaMethodName": "authenticate", + "javaVariableName": "cdiUtil", + "exceptionVariableField": "", + "callType": "Call method on instance", + "arguments": [ + "mainForm.username", + "mainForm.password" + ], + "asssignedVariableName": "authResult.success" }, - "skake": false + "id": "callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c", + "type": "callNode", + "position": { + "x": 2050, + "y": 700 + }, + "previousNodeId": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1322.3267328979139, - "y": 27.462214098337398 + "type": "callNode", + "id": "callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c", + "position": { + "x": 2050, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "finish-b3590c97-7f78-47ac-9fb4-c8ef7e830c0d", - "position": { - "x": 3157.1975061492576, - "y": 1223.9125830936168 - }, - "type": "finish", "data": { - "id": "finish-b3590c97-7f78-47ac-9fb4-c8ef7e830c0d", - "type": "Agama-finish-Flow", - "parentId": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "handles": [ - "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b.FAILURE", - "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b.SUCCESS" - ], - "position": { - "x": 3157.1975061492576, - "y": 1223.9125830936168 - }, "agamaData": { - "id": "finish-b3590c97-7f78-47ac-9fb4-c8ef7e830c0d", - "parentId": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, + "nodeIcon": "material-symbols:equal", + "displayName": "UID assignment", "hasComment": true, - "comment": "Finish with success userId", - "flowfilename": "", - "returnVariable": "{ userId: userData.uid }", - "finishMode": "withSuccess", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response success" + "comment": "Assign authResult.uid = mainForm.username", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "mainForm.username", + "assignedVariableName": "authResult.uid" + } + ] + }, + "id": "assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee", + "type": "assignmentNode", + "position": { + "x": 2300, + "y": 700 }, - "skake": false + "previousNodeId": "callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c" }, - "selected": false, - "positionAbsolute": { - "x": 3157.1975061492576, - "y": 1223.9125830936168 + "type": "assignmentNode", + "id": "assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee", + "position": { + "x": 2300, + "y": 700 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "position": { - "x": 311.4169075943314, - "y": 73.82552548890067 - }, - "parentId": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "type": "when", "data": { - "id": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "type": "Agama-when-Node", - "parentId": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 311.4169075943314, - "y": 73.82552548890067 - }, "agamaData": { - "id": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "parentId": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "type": "Agama-when-Node", + "hasComment": true, "conditions": [ { - "variable": "listTrigger.success", + "variable": "authResult.success", "operator": "is", "dataValue": "true", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true + ] }, - "handles": [ - "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b.FAILURE", - "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b.SUCCESS" - ], - "skake": false - }, - "selected": true, - "positionAbsolute": { - "x": 2987.4676249231675, - "y": 1098.5668212804032 + "id": "whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325", + "type": "whenNode", + "position": { + "x": 2550, + "y": 700 + }, + "previousNodeId": "assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee" }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", + "type": "whenNode", + "id": "whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325", "position": { - "x": 2676.050717328836, - "y": 1024.7412957915026 + "x": 2530, + "y": 910 }, - "type": "trigger", - "data": { - "id": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "type": "Agama-trigger-Node", - "parentId": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 2676.050717328836, - "y": 1024.7412957915026 - }, - "agamaData": { - "id": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "parentId": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "type": "Agama-trigger-Node", - "displayName": "Passkey list trigger", - "hasComment": true, - "comment": "Enrollment flow, Authentication and Passkey Device management ", - "whenCondition": "", - "inRepeatBlock": true, - "nodeIcon": "fluent-mdl2:trigger-approval", - "flowFileName": "org.gluu.agama.passkey.list", - "arguments": [ - "userData", - "conf" - ], - "asssignedVariableName": "listTrigger", - "exceptionVariableField": "", - "nodeColor": "#80deea" - }, - "skake": false + "measured": { + "width": 110, + "height": 60 }, "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 2676.050717328836, - "y": 1024.7412957915026 - } + "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "position": { - "x": 2439.397462641198, - "y": 1026.816090494094 - }, - "type": "call", "data": { - "id": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2439.397462641198, - "y": 1026.816090494094 - }, "agamaData": { - "id": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "parentId": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "type": "Agama-call-Node", + "nodeIcon": "material-symbols:code", "displayName": "Get account user by UID", "hasComment": true, "comment": "Searches for user data by UID and loads into userData variable", @@ -430,246 +420,165 @@ "javaVariableName": "", "exceptionVariableField": "", "callType": "Call static method", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, "arguments": [ "authResult.uid" ], - "nodeIcon": "material-symbols:code", "asssignedVariableName": "userData" }, - "skake": false + "id": "callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77", + "type": "callNode", + "position": { + "x": 2800, + "y": 950 + }, + "previousNodeId": "whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 2439.397462641198, - "y": 1026.816090494094 + "type": "callNode", + "id": "callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77", + "position": { + "x": 2800, + "y": 950 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "position": { - "x": 274.4087329689578, - "y": 82.62536556848602 - }, - "parentId": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "type": "when", "data": { - "id": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "type": "Agama-when-Node", - "parentId": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 274.4087329689578, - "y": 82.62536556848602 - }, "agamaData": { - "id": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "parentId": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "type": "Agama-when-Node", - "conditions": [ - { - "variable": "authResult.success", - "operator": "is", - "dataValue": "true", - "combinator": "none" - } - ], + "nodeIcon": "fluent-mdl2:trigger-approval", + "nodeColor": "#80deea", + "displayName": "Passkey list trigger", "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true + "comment": "Enrollment flow, Authentication and Passkey Device management ", + "flowFileName": "org.gluu.agama.passkey.list", + "arguments": [ + "userData", + "conf" + ], + "asssignedVariableName": "listTrigger", + "exceptionVariableField": "" + }, + "id": "triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129", + "type": "triggerNode", + "position": { + "x": 3050, + "y": 950 }, - "handles": [ - "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42.FAILURE", - "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42.SUCCESS" - ], - "skake": false + "previousNodeId": "callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77" }, - "selected": false, - "positionAbsolute": { - "x": 2212.8287362656756, - "y": 729.4135123127071 + "type": "triggerNode", + "id": "triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129", + "position": { + "x": 3050, + "y": 950 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "position": { - "x": 1938.4200032967178, - "y": 646.7881467442211 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 1938.4200032967178, - "y": 646.7881467442211 - }, "agamaData": { - "id": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "parentId": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "type": "Agama-assignment-Node", - "displayName": "UID assignment", "hasComment": true, - "comment": "Assign authResult.uid = mainForm.username", - "whenCondition": "", - "inRepeatBlock": true, - "assignments": [ + "conditions": [ { - "variableTypeCheck": false, - "assignmentExpression": "mainForm.username", - "assignedVariableName": "authResult.uid" + "variable": "listTrigger.success", + "operator": "is", + "dataValue": "true", + "combinator": "none" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1", + "type": "whenNode", + "position": { + "x": 3300, + "y": 950 }, - "skake": false + "previousNodeId": "triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129" }, - "selected": false, - "positionAbsolute": { - "x": 1938.4200032967178, - "y": 646.7881467442211 + "type": "whenNode", + "id": "whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1", + "position": { + "x": 3300, + "y": 950 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "position": { - "x": 1665.0999064335406, - "y": 487.4073061694096 - }, - "type": "call", "data": { - "id": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 1665.0999064335406, - "y": 487.4073061694096 - }, "agamaData": { - "id": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "parentId": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "type": "Agama-call-Node", - "displayName": "Authenticate with credentials", + "nodeIcon": "material-symbols:line-end-square-rounded", + "displayName": "Response success", "hasComment": true, - "comment": "Call cdiUtil.authenticate using the credentials entered in main.ftlh", - "javaClassName": "", - "javaMethodName": "authenticate", - "javaVariableName": "cdiUtil", - "exceptionVariableField": "", - "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "arguments": [ - "mainForm.username", - "mainForm.password" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "authResult.success" + "comment": "Finish with success userId", + "returnVariable": "{ userId: userData.uid }", + "finishMode": "withSuccess" + }, + "id": "finishNode-5715c077-9855-4dca-adbd-cb82c70b6540", + "type": "finishNode", + "position": { + "x": 3550, + "y": 1200 }, - "skake": false + "previousNodeId": "whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1", + "branching": "success" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 1665.0999064335406, - "y": 487.4073061694096 + "type": "finishNode", + "id": "finishNode-5715c077-9855-4dca-adbd-cb82c70b6540", + "position": { + "x": 3550, + "y": 1200 + }, + "measured": { + "width": 170, + "height": 124 } }, { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-fe14556e-f0e4-4362-867e-0d599d071721", - "position": { - "x": 2453.3672329249666, - "y": 666.5705670779025 - }, - "type": "assignment", "data": { - "id": "Agama-assignment-Node-fe14556e-f0e4-4362-867e-0d599d071721", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 2453.3672329249666, - "y": 666.5705670779025 - }, "agamaData": { - "id": "Agama-assignment-Node-fe14556e-f0e4-4362-867e-0d599d071721", - "parentId": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "type": "Agama-assignment-Node", - "displayName": "", "hasComment": true, - "comment": "Starts the authentication process", - "whenCondition": "", - "inRepeatBlock": true, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.showError" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "true", - "assignedVariableName": "obj.isAssertion" - }, + "conditions": [ { - "variableTypeCheck": false, - "assignmentExpression": "detestable", - "assignedVariableName": "obj.assertion" + "variable": "mainForm.loginWithPasskeyBtn", + "operator": "is", + "dataValue": "\"\"", + "combinator": "none" } - ], - "nodeIcon": "material-symbols:equal" + ] + }, + "id": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "type": "whenNode", + "position": { + "x": 2050, + "y": 450 }, - "skake": false + "previousNodeId": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 2453.3672329249666, - "y": 666.5705670779025 + "type": "whenNode", + "id": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "position": { + "x": 2050, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "position": { - "x": 2117.8879829469624, - "y": 464.1984374232589 - }, - "type": "call", "data": { - "id": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2117.8879829469624, - "y": 464.1984374232589 - }, "agamaData": { - "id": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "parentId": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "type": "Agama-call-Node", + "nodeIcon": "material-symbols:code", "displayName": "Assertion request", "hasComment": true, "comment": "Generates an assertion request without username", @@ -678,643 +587,155 @@ "javaVariableName": "fidoValidator", "exceptionVariableField": "", "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, "arguments": [ "null" ], - "nodeIcon": "material-symbols:code", "asssignedVariableName": "detestable" }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2117.8879829469624, - "y": 464.1984374232589 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-3444c2b9-4561-493d-9018-7f434fec2b36", - "position": { - "x": 2951.500988629287, - "y": 835.9046346609008 - }, - "type": "assignment", - "data": { - "id": "Agama-assignment-Node-3444c2b9-4561-493d-9018-7f434fec2b36", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, + "id": "callNode-341ce152-d1f3-46c6-a228-9d88c52183f2", + "type": "callNode", "position": { - "x": 2951.500988629287, - "y": 835.9046346609008 - }, - "agamaData": { - "id": "Agama-assignment-Node-3444c2b9-4561-493d-9018-7f434fec2b36", - "parentId": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "type": "Agama-assignment-Node", - "displayName": "Show verification error", - "hasComment": true, - "comment": "Show verification error", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "true", - "assignedVariableName": "obj.showError" - }, - { - "variableTypeCheck": true, - "assignmentExpression": "Passkey authentication failed.", - "assignedVariableName": "obj.errorTitle" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "E.message", - "assignedVariableName": "obj.errorMessage" - } - ], - "nodeIcon": "material-symbols:equal", - "nodeColor": "#ef9a9a" + "x": 2300, + "y": 700 }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2951.500988629287, - "y": 835.9046346609008 + "previousNodeId": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "branching": "success" }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "finish-69c30941-5be8-4eb4-aa60-d0a53d630d66", + "type": "callNode", + "id": "callNode-341ce152-d1f3-46c6-a228-9d88c52183f2", "position": { - "x": 3332.52149676443, - "y": 837.971901885652 + "x": 2208, + "y": 566 }, - "type": "finish", - "data": { - "id": "finish-69c30941-5be8-4eb4-aa60-d0a53d630d66", - "type": "Agama-finish-Flow", - "parentId": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "handles": [ - "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50.FAILURE", - "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50.SUCCESS" - ], - "position": { - "x": 3332.52149676443, - "y": 837.971901885652 - }, - "agamaData": { - "id": "finish-69c30941-5be8-4eb4-aa60-d0a53d630d66", - "parentId": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, - "hasComment": true, - "comment": "Finish with success userId", - "flowfilename": "", - "returnVariable": "{ userId: verifyResponse }", - "finishMode": "withSuccess", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response username" - }, - "skake": false + "measured": { + "width": 170, + "height": 124 }, "selected": false, - "positionAbsolute": { - "x": 3332.52149676443, - "y": 837.971901885652 - }, "dragging": false }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "position": { - "x": 2504.963392144978, - "y": 449.50458946598746 - }, - "type": "call", "data": { - "id": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "type": "Agama-call-Node", - "parentId": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2504.963392144978, - "y": 449.50458946598746 - }, "agamaData": { - "id": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "parentId": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "type": "Agama-call-Node", - "displayName": "Assertion verify", - "hasComment": true, - "comment": "FIDO Device Authentication Validation", - "javaClassName": "", - "javaMethodName": "verify", - "javaVariableName": "fidoValidator", - "exceptionVariableField": "E", - "callType": "Call method on instance", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "arguments": [ - "mainForm.tokenResponse" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "verifyResponse" - }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2504.963392144978, - "y": 449.50458946598746 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-0b8e9487-19b4-4d39-a1c4-eefb74936a2c", - "position": { - "x": 2905.9717035756516, - "y": 351.47687461975295 - }, - "type": "assignment", - "data": { - "id": "Agama-assignment-Node-0b8e9487-19b4-4d39-a1c4-eefb74936a2c", - "type": "Agama-assignment-Node", - "parentId": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, - "position": { - "x": 2905.9717035756516, - "y": 351.47687461975295 - }, - "agamaData": { - "id": "Agama-assignment-Node-0b8e9487-19b4-4d39-a1c4-eefb74936a2c", - "parentId": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "type": "Agama-assignment-Node", - "displayName": "Show authentication error", + "nodeIcon": "material-symbols:equal", + "displayName": "", "hasComment": true, - "comment": "Displays the authentication event cancellation error", - "whenCondition": "WhenTrue", - "inRepeatBlock": true, + "comment": "Starts the authentication process", "assignments": [ { "variableTypeCheck": false, "assignmentExpression": "false", - "assignedVariableName": "obj.isAssertion" + "assignedVariableName": "obj.showError" }, { "variableTypeCheck": false, "assignmentExpression": "true", - "assignedVariableName": "obj.showError" - }, - { - "variableTypeCheck": true, - "assignmentExpression": "Passkey authentication failed.", - "assignedVariableName": "obj.errorTitle" + "assignedVariableName": "obj.isAssertion" }, { "variableTypeCheck": false, - "assignmentExpression": "mainForm.errorMessage", - "assignedVariableName": "obj.errorMessage" + "assignmentExpression": "detestable", + "assignedVariableName": "obj.assertion" } - ], - "nodeIcon": "material-symbols:equal", - "nodeColor": "#eb999a" - }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 2905.9717035756516, - "y": 351.47687461975295 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "position": { - "x": 1221.354383017349, - "y": 217.48611121392008 - }, - "type": "rrf", - "data": { - "id": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "type": "Agama-rrf-Node", - "parentId": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "whenCondition": "", - "inRepeatBlock": true, - "position": { - "x": 1221.354383017349, - "y": 217.48611121392008 - }, - "agamaData": { - "id": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "parentId": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "type": "Agama-rrf-Node", - "displayName": "Render main view", - "hasComment": true, - "comment": "Load main.ftlh page and pass obj", - "whenCondition": "", - "inRepeatBlock": true, - "assignments": [], - "nodeIcon": "ph:globe-simple", - "templatePath": "main.ftlh", - "asssignedVariableName": "mainForm", - "arguments": [ - "obj" ] }, - "skake": false - }, - "selected": false, - "positionAbsolute": { - "x": 1221.354383017349, - "y": 217.48611121392008 - }, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "position": { - "x": 1028.375834725549, - "y": 29.285805115604944 - }, - "type": "repeat", - "data": { - "id": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "type": "Agama-repeat-Node", - "parentId": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "whenCondition": "", - "inRepeatBlock": false, - "handles": [ - "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745.InFlow", - "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745.InRepeatBlock" - ], - "position": { - "x": 1028.375834725549, - "y": 29.285805115604944 - }, - "agamaData": { - "id": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "parentId": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "type": "Agama-repeat-Node", - "nodeIcon": "material-symbols:event-repeat-outline-rounded", - "maxIteration": "5", - "displayName": "Repeat 5 times", - "hasComment": true, - "hasNoRepeat": true, - "hasSuccess": "", - "hasFailure": "", - "hasRepeat": false - }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 1028.375834725549, - "y": 29.285805115604944 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "position": { - "x": 830, - "y": 28.285805115604944 - }, - "type": "assignment", - "data": { - "id": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "type": "Agama-assignment-Node", - "parentId": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "whenCondition": "", - "inRepeatBlock": false, + "id": "assignmentNode-16517ce1-6e0e-4d2b-adb1-ae5ef7439a5f", + "type": "assignmentNode", "position": { - "x": 830, - "y": 28.285805115604944 - }, - "agamaData": { - "id": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "parentId": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "type": "Agama-assignment-Node", - "displayName": "new obj var", - "hasComment": true, - "comment": "obj variable declaration, which is sent to the main form", - "whenCondition": "", - "inRepeatBlock": false, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "{}", - "assignedVariableName": "authResult" - }, - { - "variableTypeCheck": false, - "assignmentExpression": "{ success: true, assertion: \"{}\", isAssertion: false, showError: false, errorTitle: \"\", errorMessage: \"\" }", - "assignedVariableName": "obj" - } - ], - "nodeIcon": "material-symbols:equal" - }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 830, - "y": 28.285805115604944 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "position": { - "x": 630, - "y": 28.285805115604944 - }, - "type": "call", - "data": { - "id": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "type": "Agama-call-Node", - "parentId": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 630, - "y": 28.285805115604944 - }, - "agamaData": { - "id": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "parentId": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "type": "Agama-call-Node", - "displayName": "FidoValidator instance", - "hasComment": true, - "comment": "Get Instance FidoValidator", - "javaClassName": "org.gluu.agama.passkey.authn.FidoValidator", - "javaMethodName": "", - "javaVariableName": "", - "exceptionVariableField": "", - "callType": "Create an instance", - "whenCondition": "", - "inRepeatBlock": false, - "arguments": [], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "fidoValidator" - }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 630, - "y": 28.285805115604944 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "position": { - "x": 429.5, - "y": 27.285805115604944 - }, - "type": "call", - "data": { - "id": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "type": "Agama-call-Node", - "parentId": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 429.5, - "y": 27.285805115604944 - }, - "agamaData": { - "id": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "parentId": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "type": "Agama-call-Node", - "displayName": "CdiUtil static instance", - "hasComment": true, - "comment": "Get Instance CdiUtil", - "javaClassName": "io.jans.service.cdi.util.CdiUtil", - "javaMethodName": "bean", - "javaVariableName": "", - "exceptionVariableField": "", - "callType": "Call static method", - "whenCondition": "", - "inRepeatBlock": false, - "arguments": [ - "authService" - ], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "cdiUtil" - }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 429.5, - "y": 27.285805115604944 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "position": { - "x": 231, - "y": 27.392902557802472 - }, - "type": "call", - "data": { - "id": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "type": "Agama-call-Node", - "parentId": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 231, - "y": 27.392902557802472 - }, - "agamaData": { - "id": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "parentId": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420", - "type": "Agama-call-Node", - "displayName": "Authentication service class", - "hasComment": true, - "comment": "Get Instance AuthenticationService", - "javaClassName": "io.jans.as.server.service.AuthenticationService", - "javaMethodName": "", - "javaVariableName": "", - "exceptionVariableField": "", - "callType": "Get class object", - "whenCondition": "", - "inRepeatBlock": false, - "arguments": [], - "nodeIcon": "material-symbols:code", - "asssignedVariableName": "authService" - }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 231, - "y": 27.392902557802472 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420", - "type": "start", - "sourcePosition": "right", - "data": { - "id": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420", - "type": "Agama-start-Flow", - "position": { - "x": 30, - "y": 30 - }, - "inRepeatBlock": false, - "agamaData": { - "id": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420", - "type": "Agama-start-Flow", - "displayName": "Passkey Main", - "hasComment": true, - "comment": "Main flow to handle all sub flows", - "isTopLevelFlow": true, - "basepath": "", - "configParams": "{}", - "nodeIcon": "material-symbols:line-start-square", - "timeout": "", - "inputs": "", - "configs": "conf", - "flowname": "org.gluu.agama.passkey.main" + "x": 2550, + "y": 700 }, - "skake": false + "previousNodeId": "callNode-341ce152-d1f3-46c6-a228-9d88c52183f2" }, + "type": "assignmentNode", + "id": "assignmentNode-16517ce1-6e0e-4d2b-adb1-ae5ef7439a5f", "position": { - "x": 30, - "y": 30 + "x": 2576, + "y": 678 + }, + "measured": { + "width": 170, + "height": 124 }, "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 30, - "y": 30 - } + "dragging": false }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "position": { - "x": 334.5367829556749, - "y": -12.990437538299943 - }, - "parentId": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "type": "when", "data": { - "id": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 334.5367829556749, - "y": -12.990437538299943 - }, "agamaData": { - "id": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "parentId": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "type": "Agama-when-Node", + "hasComment": true, "conditions": [ { - "variable": "mainForm.skipped", - "operator": "is", - "dataValue": "\"skipped\"", + "variable": "mainForm.tokenResponse", + "operator": "is not", + "dataValue": "\"\"", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2255.3814677678 - } + ] + }, + "id": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "type": "whenNode", + "position": { + "x": 2300, + "y": 450 }, - "handles": [ - "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9.FAILURE", - "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 2613.0244424363, - "y": 305.55117430280256 + "type": "whenNode", + "id": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "position": { + "x": 2300, + "y": 450 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "position": { - "x": 288.2311329378176, - "y": 212.55955617820302 - }, - "parentId": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "type": "when", "data": { - "id": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "type": "Agama-when-Node", - "parentId": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "whenCondition": "WhenFalse", - "inRepeatBlock": true, + "agamaData": { + "nodeIcon": "material-symbols:code", + "displayName": "Assertion verify", + "hasComment": true, + "comment": "FIDO Device Authentication Validation", + "javaClassName": "", + "javaMethodName": "verify", + "javaVariableName": "fidoValidator", + "exceptionVariableField": "E", + "callType": "Call method on instance", + "arguments": [ + "mainForm.tokenResponse" + ], + "asssignedVariableName": "verifyResponse" + }, + "id": "callNode-571511db-cdee-4291-8ef3-89096d229920", + "type": "callNode", "position": { - "x": 288.2311329378176, - "y": 212.55955617820302 + "x": 2550, + "y": 700 }, + "previousNodeId": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "branching": "success" + }, + "type": "callNode", + "id": "callNode-571511db-cdee-4291-8ef3-89096d229920", + "position": { + "x": 2416, + "y": 494 + }, + "measured": { + "width": 170, + "height": 124 + }, + "selected": false, + "dragging": false + }, + { + "data": { "agamaData": { - "id": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "parentId": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { "variable": "E", @@ -1322,48 +743,84 @@ "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true + ] }, - "handles": [ - "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef.FAILURE", - "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef.SUCCESS" - ], - "skake": false + "id": "whenNode-50602218-996b-4631-bb94-4438706b14e2", + "type": "whenNode", + "position": { + "x": 2800, + "y": 700 + }, + "previousNodeId": "callNode-571511db-cdee-4291-8ef3-89096d229920" }, - "selected": false, - "positionAbsolute": { - "x": 2793.1945250827957, - "y": 662.0641456441905 + "type": "whenNode", + "id": "whenNode-50602218-996b-4631-bb94-4438706b14e2", + "position": { + "x": 2800, + "y": 700 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "position": { - "x": 401.2125987445829, - "y": 10.516954171473117 - }, - "parentId": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "type": "when", "data": { - "id": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "whenCondition": "", - "inRepeatBlock": "", + "agamaData": { + "nodeIcon": "material-symbols:equal", + "nodeColor": "#ef9a9a", + "displayName": "Show verification error", + "hasComment": true, + "comment": "Show verification error", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAssertion" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "true", + "assignedVariableName": "obj.showError" + }, + { + "variableTypeCheck": true, + "assignmentExpression": "Passkey authentication failed.", + "assignedVariableName": "obj.errorTitle" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "E.message", + "assignedVariableName": "obj.errorMessage" + } + ] + }, + "id": "assignmentNode-9a516a47-b256-4bb0-a254-4c3ddc812274", + "type": "assignmentNode", "position": { - "x": 401.2125987445829, - "y": 10.516954171473117 + "x": 3050, + "y": 950 }, + "previousNodeId": "whenNode-50602218-996b-4631-bb94-4438706b14e2", + "branching": "success" + }, + "type": "assignmentNode", + "id": "assignmentNode-9a516a47-b256-4bb0-a254-4c3ddc812274", + "position": { + "x": 2950, + "y": 800 + }, + "measured": { + "width": 170, + "height": 124 + }, + "selected": false, + "dragging": false + }, + { + "data": { "agamaData": { - "id": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "parentId": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "type": "Agama-when-Node", + "hasComment": true, "conditions": [ { "variable": "E", @@ -1371,650 +828,646 @@ "dataValue": "null", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2880.899513911112 - } + ] + }, + "id": "whenNode-dcb65856-1e65-411c-8887-816d80cf1c88", + "type": "whenNode", + "position": { + "x": 3050, + "y": 700 }, - "handles": [ - "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50.FAILURE", - "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-50602218-996b-4631-bb94-4438706b14e2", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 3194.4071238273787, - "y": 672.5810998156636 + "type": "whenNode", + "id": "whenNode-dcb65856-1e65-411c-8887-816d80cf1c88", + "position": { + "x": 3050, + "y": 700 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "position": { - "x": 342.663266661556, - "y": 19.293126357185088 - }, - "parentId": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "type": "when", "data": { - "id": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 342.663266661556, - "y": 19.293126357185088 - }, "agamaData": { - "id": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "parentId": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ - { - "variable": "mainForm.tokenResponse", - "operator": "is not", - "dataValue": "\"\"", - "combinator": "none" - } - ], + "nodeIcon": "material-symbols:line-end-square-rounded", + "displayName": "Response username", "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 2119.8660005175525 - } + "comment": "Finish with success userId", + "returnVariable": "{ userId: verifyResponse }", + "finishMode": "withSuccess" + }, + "id": "finishNode-296d3cd0-941b-4331-99de-cc9687de4403", + "type": "finishNode", + "position": { + "x": 3300, + "y": 950 }, - "handles": [ - "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c.FAILURE", - "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-dcb65856-1e65-411c-8887-816d80cf1c88", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 2278.487659480625, - "y": 318.5416118411025 + "type": "finishNode", + "id": "finishNode-296d3cd0-941b-4331-99de-cc9687de4403", + "position": { + "x": 3302, + "y": 728 + }, + "measured": { + "width": 170, + "height": 124 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "selected": true, + "dragging": false }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "position": { - "x": 308.0612961847005, - "y": 67.84354956719011 - }, - "parentId": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "type": "when", "data": { - "id": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "type": "Agama-when-Node", - "parentId": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "whenCondition": "WhenFalse", - "inRepeatBlock": true, - "position": { - "x": 308.0612961847005, - "y": 67.84354956719011 - }, "agamaData": { - "id": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "parentId": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "type": "Agama-when-Node", - "hasFailure": true, + "hasComment": true, "conditions": [ { - "variable": "mainForm.loginBtn", + "variable": "mainForm.skipped", "operator": "is", - "dataValue": "\"\"", + "dataValue": "\"skipped\"", "combinator": "none" } - ], - "hasComment": true, - "inRepeatBlock": true + ] }, - "handles": [ - "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3.FAILURE", - "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3.SUCCESS" - ], - "skake": false + "id": "whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c", + "type": "whenNode", + "position": { + "x": 2550, + "y": 450 + }, + "previousNodeId": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "branching": "continue" }, - "selected": false, - "positionAbsolute": { - "x": 1529.4156792020494, - "y": 285.3296607811102 + "type": "whenNode", + "id": "whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c", + "position": { + "x": 2550, + "y": 450 }, - "dragging": false + "measured": { + "width": 110, + "height": 60 + } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "position": { - "x": 406.40871361701966, - "y": 13.918824702807228 - }, - "parentId": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "type": "when", "data": { - "id": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "type": "Agama-when-Node", - "parentId": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 406.40871361701966, - "y": 13.918824702807228 - }, "agamaData": { - "id": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "parentId": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "type": "Agama-when-Node", - "hasFailure": true, - "conditions": [ + "nodeIcon": "material-symbols:equal", + "nodeColor": "#eb999a", + "displayName": "Show authentication error", + "hasComment": true, + "comment": "Displays the authentication event cancellation error", + "assignments": [ { - "variable": "mainForm.loginWithPasskeyBtn", - "operator": "is", - "dataValue": "\"\"", - "combinator": "none" + "variableTypeCheck": false, + "assignmentExpression": "false", + "assignedVariableName": "obj.isAssertion" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "true", + "assignedVariableName": "obj.showError" + }, + { + "variableTypeCheck": true, + "assignmentExpression": "Passkey authentication failed.", + "assignedVariableName": "obj.errorTitle" + }, + { + "variableTypeCheck": false, + "assignmentExpression": "mainForm.errorMessage", + "assignedVariableName": "obj.errorMessage" } - ], - "hasComment": true, - "inRepeatBlock": true, - "hasSuccess": true, - "position": { - "x": 1930.3743954590598 - } + ] + }, + "id": "assignmentNode-f9bd0594-5ac2-43c8-ac74-a68767cff717", + "type": "assignmentNode", + "position": { + "x": 2800, + "y": 700 }, - "handles": [ - "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db.FAILURE", - "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db.SUCCESS" - ], - "skake": false + "previousNodeId": "whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c", + "branching": "success" }, - "selected": false, - "positionAbsolute": { - "x": 1935.824392819069, - "y": 299.2484854839174 + "type": "assignmentNode", + "id": "assignmentNode-f9bd0594-5ac2-43c8-ac74-a68767cff717", + "position": { + "x": 2888, + "y": 492 + }, + "measured": { + "width": 170, + "height": 124 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "selected": false, + "dragging": false } ], "edges": [ { - "id": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420-Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46-1e7d2d04-69cb-4113-8dde-998c3e4082dc", - "type": "straight", - "source": "Agama-start-Flow-2e3f09bf-fd7b-47cf-b55a-6519d9ee4420", - "target": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "label": "", + "id": "startNode-f9a49856-7f0f-42e6-b873-83d2afe2b2ae-callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9", + "type": "default", + "source": "startNode-f9a49856-7f0f-42e6-b873-83d2afe2b2ae", + "target": "callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_startNode-f9a49856-7f0f-42e6-b873-83d2afe2b2ae" }, { - "id": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46-Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718-0228fdc2-3cc6-4f40-90da-148a9489f312", - "type": "straight", - "source": "Agama-call-Node-c166c478-2040-4e2e-8967-a59d5da5ac46", - "target": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "label": "", + "id": "callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9-callNode-fa6fc699-2a89-44c3-9952-df54fb41861d", + "type": "default", + "source": "callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9", + "target": "callNode-fa6fc699-2a89-44c3-9952-df54fb41861d", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-0c3fa0c6-6e79-40fe-8e4a-bfab034c8df9" }, { - "id": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718-Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324-fba834a6-4995-412c-957b-db80f68f3647", - "type": "straight", - "source": "Agama-call-Node-2ffc4a8d-7ebc-451f-a491-37072013d718", - "target": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "label": "", + "id": "callNode-fa6fc699-2a89-44c3-9952-df54fb41861d-callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d", + "type": "default", + "source": "callNode-fa6fc699-2a89-44c3-9952-df54fb41861d", + "target": "callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-fa6fc699-2a89-44c3-9952-df54fb41861d" }, { - "id": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324-Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94-2e21bb63-de8a-452f-b0f0-290b8a2ab0aa", - "type": "straight", - "source": "Agama-call-Node-f3074067-fd6f-4547-8348-c66a511fd324", - "target": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "label": "", + "id": "callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d-assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c", + "type": "default", + "source": "callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d", + "target": "assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-6ca4c1a2-897e-4d62-b5e9-571b05603a0d" }, { - "id": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94-Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745-84abc826-15a2-4254-8a43-4ae98401c8be", - "type": "straight", - "source": "Agama-assignment-Node-6437c169-3f8e-4a5a-81c4-0a9549a14f94", - "target": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "label": "", + "id": "assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c-repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "type": "default", + "source": "assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c", + "target": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-9200092c-1229-4429-b695-f6fb433f3a3c" }, { - "id": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745-Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78-3424337d-77c0-4df2-b46c-75d34d1cb64b", - "type": "straight", - "source": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "target": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "label": "In Block", + "id": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163-finishNode-81fe6e49-10d8-4081-b0b6-1f4715ad84f9", + "type": "default", + "source": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "target": "finishNode-81fe6e49-10d8-4081-b0b6-1f4715ad84f9", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745.InRepeatBlock" + "labelShowBg": true, + "sourceHandle": "source_repeatNode-444346a9-6c99-476f-9a63-ec1662d19163_continue" }, { - "id": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9-Agama-assignment-Node-0b8e9487-19b4-4d39-a1c4-eefb74936a2c-381a9c6e-e5d0-46c2-accb-bd1f960251bb", - "type": "straight", - "source": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "target": "Agama-assignment-Node-0b8e9487-19b4-4d39-a1c4-eefb74936a2c", - "label": "Condition met", + "id": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163-rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558", + "type": "default", + "source": "repeatNode-444346a9-6c99-476f-9a63-ec1662d19163", + "target": "rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "repeat", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_repeatNode-444346a9-6c99-476f-9a63-ec1662d19163_repeat" }, { - "id": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c-Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9-28d0f236-1d1a-4fe5-8075-0991adbd204e", - "type": "straight", - "source": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "target": "Agama-when-Node-297e4309-03d5-42e7-b49f-0d5a13d290e9", - "label": "", + "id": "rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558-whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "type": "default", + "source": "rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558", + "target": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_rrfNode-6213ca53-38f2-4a36-aa98-c431f2cef558" }, { - "id": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c-Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0-8e8af2a6-e0d9-49b5-8b56-015b68c06e3b", - "type": "straight", - "source": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "target": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "label": "Condition met", + "id": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8-callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c", + "type": "default", + "source": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "target": "callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8_success" }, { - "id": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50-finish-69c30941-5be8-4eb4-aa60-d0a53d630d66-d9ad46d7-c492-4ac7-9cf1-ac38b2b29789", - "type": "straight", - "source": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "target": "finish-69c30941-5be8-4eb4-aa60-d0a53d630d66", - "label": "Condition met", + "id": "callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c-assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee", + "type": "default", + "source": "callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c", + "target": "assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_callNode-e0781bb6-d341-46ea-8a9f-f11c1d64813c" }, { - "id": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0-Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef-80ba61c5-e05a-4468-91be-f4f679543d11", - "type": "straight", - "source": "Agama-call-Node-2564883c-a538-4c63-81c5-2a25154448c0", - "target": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "label": "", + "id": "assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee-whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325", + "type": "default", + "source": "assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee", + "target": "whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-97764e24-ac07-4d04-accb-3d7beaa6f6ee" }, { - "id": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef-Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50-da025c85-46d8-46df-aeaa-1e2163d0f28f", - "type": "straight", - "source": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "target": "Agama-when-Node-03fbac87-d255-4ea7-bcd1-a7d142f2ab50", - "label": "", + "id": "whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325-callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77", + "type": "default", + "source": "whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325", + "target": "callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_whenNode-37e97579-1a2d-4aa8-bedc-afa7db74e325_success" }, { - "id": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef-Agama-assignment-Node-3444c2b9-4561-493d-9018-7f434fec2b36-21b6ed64-d77b-4866-9899-6a08efa91057", - "type": "straight", - "source": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef", - "target": "Agama-assignment-Node-3444c2b9-4561-493d-9018-7f434fec2b36", - "label": "Condition met", + "id": "callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77-triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129", + "type": "default", + "source": "callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77", + "target": "triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-a2cfe299-fc78-4739-839e-ab74a1ed8eef.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_callNode-f856b155-d26d-4b21-a14e-ff133b9b1b77" }, { - "id": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db-Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c-948b827c-f797-4543-a8e9-487e483f2ebf", - "type": "straight", - "source": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "target": "Agama-when-Node-f52ef8e3-bd28-437d-b699-15fd23fd663c", - "label": "", + "id": "triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129-whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1", + "type": "default", + "source": "triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129", + "target": "whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_triggerNode-2602ac59-732f-453a-a19d-cb8ab1508129" }, { - "id": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db-Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53-ca51f247-d43d-46c7-ab49-980d2b0053f8", - "type": "straight", - "source": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "target": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "label": "Condition met", + "id": "whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1-finishNode-5715c077-9855-4dca-adbd-cb82c70b6540", + "type": "default", + "source": "whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1", + "target": "finishNode-5715c077-9855-4dca-adbd-cb82c70b6540", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-b9f51984-d4bd-473c-9741-203782aa8ce1_success" }, { - "id": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53-Agama-assignment-Node-fe14556e-f0e4-4362-867e-0d599d071721-ac8e7f71-8aeb-4b48-8091-f38242aa32f9", - "type": "straight", - "source": "Agama-call-Node-3eebfff1-071d-47e5-9b57-ba7fa2697b53", - "target": "Agama-assignment-Node-fe14556e-f0e4-4362-867e-0d599d071721", - "label": "", + "id": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8-whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "type": "default", + "source": "whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8", + "target": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-792e8d2d-1bfc-4255-aadc-eed98527f8c8_continue" }, { - "id": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78-Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3-5054bb32-2ae5-4116-99be-d0149ff9aa69", - "type": "straight", - "source": "Agama-rrf-Node-212f9d24-4203-469c-ade1-fcd7b8557a78", - "target": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "label": "", + "id": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174-callNode-341ce152-d1f3-46c6-a228-9d88c52183f2", + "type": "default", + "source": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "target": "callNode-341ce152-d1f3-46c6-a228-9d88c52183f2", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174_success" }, { - "id": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3-Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db-3f97615c-48c6-4eab-8de1-91c32ff308ab", - "type": "straight", - "source": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "target": "Agama-when-Node-904352e8-24f8-42ab-bde4-56af3dd195db", - "label": "", + "id": "callNode-341ce152-d1f3-46c6-a228-9d88c52183f2-assignmentNode-16517ce1-6e0e-4d2b-adb1-ae5ef7439a5f", + "type": "default", + "source": "callNode-341ce152-d1f3-46c6-a228-9d88c52183f2", + "target": "assignmentNode-16517ce1-6e0e-4d2b-adb1-ae5ef7439a5f", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_callNode-341ce152-d1f3-46c6-a228-9d88c52183f2" }, { - "id": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3-Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff-38aa3d8e-f6d4-42f1-810d-04372d30a89f", - "type": "straight", - "source": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3", - "target": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "label": "Condition met", + "id": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174-whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "type": "default", + "source": "whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174", + "target": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-90ce65ec-a034-4b39-a5e9-4266069cc3d3.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-52915533-ea79-4d95-9ca0-5c4b6a45a174_continue" }, { - "id": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff-Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30-020c60e9-c687-4d8f-86b4-97482e7d4356", - "type": "straight", - "source": "Agama-call-Node-bc0fa067-0129-4cc0-bf6d-6391cea027ff", - "target": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "label": "", + "id": "whenNode-394da514-cebe-42e7-8141-a75b587360c0-callNode-571511db-cdee-4291-8ef3-89096d229920", + "type": "default", + "source": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "target": "callNode-571511db-cdee-4291-8ef3-89096d229920", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-394da514-cebe-42e7-8141-a75b587360c0_success" }, { - "id": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30-Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42-7be78b80-0fa0-4438-8246-9316f3587b75", - "type": "straight", - "source": "Agama-assignment-Node-35b5a76b-bba7-4c0f-bb72-439d94467c30", - "target": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "label": "", + "id": "callNode-571511db-cdee-4291-8ef3-89096d229920-whenNode-50602218-996b-4631-bb94-4438706b14e2", + "type": "default", + "source": "callNode-571511db-cdee-4291-8ef3-89096d229920", + "target": "whenNode-50602218-996b-4631-bb94-4438706b14e2", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_callNode-571511db-cdee-4291-8ef3-89096d229920" }, { - "id": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42-Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b-e2a5be17-24de-4858-8a12-1323255d37cc", - "type": "straight", - "source": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42", - "target": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "label": "Condition met", + "id": "whenNode-50602218-996b-4631-bb94-4438706b14e2-assignmentNode-9a516a47-b256-4bb0-a254-4c3ddc812274", + "type": "default", + "source": "whenNode-50602218-996b-4631-bb94-4438706b14e2", + "target": "assignmentNode-9a516a47-b256-4bb0-a254-4c3ddc812274", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-d72a821d-13ea-40ff-94b2-ecb094f2ff42.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-50602218-996b-4631-bb94-4438706b14e2_success" }, { - "id": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b-Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f-cfe2dcaa-ef4c-4d33-a69f-c535e57ad265", - "type": "straight", - "source": "Agama-call-Node-38b6f190-4dff-478d-852d-967c2d51b60b", - "target": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "label": "", + "id": "whenNode-50602218-996b-4631-bb94-4438706b14e2-whenNode-dcb65856-1e65-411c-8887-816d80cf1c88", + "type": "default", + "source": "whenNode-50602218-996b-4631-bb94-4438706b14e2", + "target": "whenNode-dcb65856-1e65-411c-8887-816d80cf1c88", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-50602218-996b-4631-bb94-4438706b14e2_continue" }, { - "id": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f-Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b-b242e47d-54ed-4f51-8e44-43e0e7aaa93e", - "type": "straight", - "source": "Agama-trigger-Node-c2baf16d-2fe3-4b88-852f-eec08f53423f", - "target": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "label": "", + "id": "whenNode-dcb65856-1e65-411c-8887-816d80cf1c88-finishNode-296d3cd0-941b-4331-99de-cc9687de4403", + "type": "default", + "source": "whenNode-dcb65856-1e65-411c-8887-816d80cf1c88", + "target": "finishNode-296d3cd0-941b-4331-99de-cc9687de4403", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-dcb65856-1e65-411c-8887-816d80cf1c88_success" }, { - "id": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b-finish-b3590c97-7f78-47ac-9fb4-c8ef7e830c0d-d96e1075-dc73-4e6c-ac9b-4f9b13006e9c", - "type": "straight", - "source": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b", - "target": "finish-b3590c97-7f78-47ac-9fb4-c8ef7e830c0d", - "label": "Condition met", + "id": "whenNode-394da514-cebe-42e7-8141-a75b587360c0-whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c", + "type": "default", + "source": "whenNode-394da514-cebe-42e7-8141-a75b587360c0", + "target": "whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-1e9f7568-075a-42eb-984a-2544bafabc1b.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_whenNode-394da514-cebe-42e7-8141-a75b587360c0_continue" }, { - "id": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745-finish-0ec140a8-d576-4116-9e5b-5099ba614fdc-c28e0c4c-087c-4de9-bda1-3e8840df5278", - "type": "straight", - "source": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745", - "target": "finish-0ec140a8-d576-4116-9e5b-5099ba614fdc", - "label": "Not In Block", + "id": "whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c-assignmentNode-f9bd0594-5ac2-43c8-ac74-a68767cff717", + "type": "default", + "source": "whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c", + "target": "assignmentNode-f9bd0594-5ac2-43c8-ac74-a68767cff717", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-repeat-Node-cb2c4b3b-58fa-4cfa-8df7-196eda6ea745.InFlow" + "labelShowBg": true, + "sourceHandle": "source_whenNode-b0506409-1403-40f1-b870-d4ff6f5c592c_success" } ], "viewport": { - "x": -347.63037419110753, - "y": 70.70040294769456, + "x": 22.093134975140856, + "y": 33.680992661429514, "zoom": 0.5 } } \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.nickname.flow b/code/org.gluu.agama.passkey.nickname.flow index 15d9b65..57aaecc 100644 --- a/code/org.gluu.agama.passkey.nickname.flow +++ b/code/org.gluu.agama.passkey.nickname.flow @@ -12,8 +12,8 @@ fidoEnroller = Call org.gluu.agama.passkey.enroll.FidoEnroller#new nickNamed = Call fidoEnroller nameIt inum nicknameForm.nickname key When nickNamed is false // Ends the flow by responding error - it_fctjx = {success:false, error: "Nickname passkey failed to save"} - Finish it_fctjx + it_rczkq = {success:false, error: "Nickname passkey failed to save"} + Finish it_rczkq // Successfully completes the flow -it_cjhqc = {success:true, data: { userId: inum, message: "Nickname passkey saved"}} -Finish it_cjhqc \ No newline at end of file +it_gnwya = {success:true, data: { userId: inum, message: "Nickname passkey saved"}} +Finish it_gnwya \ No newline at end of file diff --git a/code/org.gluu.agama.passkey.nickname.json b/code/org.gluu.agama.passkey.nickname.json index fe8e44e..50afdbc 100644 --- a/code/org.gluu.agama.passkey.nickname.json +++ b/code/org.gluu.agama.passkey.nickname.json @@ -1,147 +1,106 @@ { "nodes": [ { - "width": 270, - "height": 42, - "id": "Agama-note-518f8567-bf40-48f9-8d82-9b76e542bf79", - "position": { - "x": 1077.2037444245784, - "y": 22.68040645338064 - }, - "type": "notes", "data": { - "id": "Agama-note-518f8567-bf40-48f9-8d82-9b76e542bf79", - "type": "Agama-note", - "notes": "If the \"nameIt\" method stores successfully", - "position": { - "x": 1077.2037444245784, - "y": 22.68040645338064 + "agamaData": { + "isTopLevelFlow": true, + "basepath": "", + "configParams": "{}", + "creationDate": "29/11/2024", + "nodeIcon": "material-symbols:line-start-square", + "timeout": "", + "inputs": "key userData", + "configs": "", + "flowname": "org.gluu.agama.passkey.nickname", + "displayName": "Passkey Nickname", + "hasComment": true, + "comment": "This flow is responsible for establishing a nickname for the FIDO device, which is correctly registered." }, - "skake": false + "id": "startNode-59730288-5141-4df8-a66d-73534b01bc24", + "type": "startNode", + "position": { + "x": 50, + "y": 200 + } }, - "selected": false, - "positionAbsolute": { - "x": 1077.2037444245784, - "y": 22.68040645338064 + "type": "startNode", + "id": "startNode-59730288-5141-4df8-a66d-73534b01bc24", + "position": { + "x": 50, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "finish-2dd91a73-7ce4-480a-8ecb-31aee5748398", - "position": { - "x": 1477, - "y": 21.888278709641696 - }, - "type": "finish", "data": { - "id": "finish-2dd91a73-7ce4-480a-8ecb-31aee5748398", - "type": "Agama-finish-Flow", - "parentId": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "whenCondition": "WhenFalse", - "inRepeatBlock": false, - "handles": [ - "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.FAILURE", - "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.SUCCESS" - ], - "position": { - "x": 1477, - "y": 21.888278709641696 - }, "agamaData": { - "id": "finish-2dd91a73-7ce4-480a-8ecb-31aee5748398", - "parentId": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, + "nodeIcon": "material-symbols:equal", + "displayName": "", "hasComment": true, - "comment": "Successfully completes the flow", - "flowfilename": "", - "returnVariable": "{ userId: inum, message: \"Nickname passkey saved\"}", - "finishMode": "withSuccess", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response success" + "comment": "Set inum of userData", + "assignments": [ + { + "variableTypeCheck": false, + "assignmentExpression": "userData.inum", + "assignedVariableName": "inum" + } + ] + }, + "id": "assignmentNode-c75889fb-f593-41a6-8140-052aa292b182", + "type": "assignmentNode", + "position": { + "x": 300, + "y": 200 }, - "skake": false + "previousNodeId": "startNode-59730288-5141-4df8-a66d-73534b01bc24" }, - "selected": false, - "positionAbsolute": { - "x": 1477, - "y": 21.888278709641696 + "type": "assignmentNode", + "id": "assignmentNode-c75889fb-f593-41a6-8140-052aa292b182", + "position": { + "x": 300, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "finish-64bedf04-d03b-41d8-9f9f-989a0692aa0e", - "position": { - "x": 1326.8117522470266, - "y": 314.2451497123007 - }, - "type": "finish", "data": { - "id": "finish-64bedf04-d03b-41d8-9f9f-989a0692aa0e", - "type": "Agama-finish-Flow", - "parentId": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "whenCondition": "WhenTrue", - "inRepeatBlock": false, - "handles": [ - "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.FAILURE", - "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.SUCCESS" - ], - "position": { - "x": 1326.8117522470266, - "y": 314.2451497123007 - }, "agamaData": { - "id": "finish-64bedf04-d03b-41d8-9f9f-989a0692aa0e", - "parentId": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "type": "Agama-finish-Flow", - "hasSuccess": false, - "hasFailure": false, + "nodeIcon": "ph:globe-simple", + "displayName": "Render nickname input view", "hasComment": true, - "comment": "Ends the flow by responding error", - "flowfilename": "", - "returnVariable": "Nickname passkey failed to save", - "finishMode": "withFailure", - "nodeIcon": "material-symbols:line-end-square-rounded", - "displayName": "Response error", - "nodeColor": "#eb999a" + "comment": "Load nickname.ftlh page", + "templatePath": "nickname.ftlh", + "asssignedVariableName": "nicknameForm" + }, + "id": "rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2", + "type": "rrfNode", + "position": { + "x": 550, + "y": 200 }, - "skake": false + "previousNodeId": "assignmentNode-c75889fb-f593-41a6-8140-052aa292b182" }, - "selected": false, - "positionAbsolute": { - "x": 1326.8117522470266, - "y": 314.2451497123007 + "type": "rrfNode", + "id": "rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2", + "position": { + "x": 550, + "y": 200 }, - "dragging": false + "measured": { + "width": 170, + "height": 124 + } }, { - "width": 170, - "height": 124, - "id": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "position": { - "x": 630, - "y": 30 - }, - "type": "call", "data": { - "id": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "type": "Agama-call-Node", - "parentId": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 630, - "y": 30 - }, "agamaData": { - "id": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "parentId": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "type": "Agama-call-Node", + "nodeIcon": "material-symbols:code", "displayName": "FidoEnroller instance", "hasComment": true, "comment": " Get Instance FidoEnroller", @@ -150,174 +109,32 @@ "javaVariableName": "", "exceptionVariableField": "", "callType": "Create an instance", - "whenCondition": "", - "inRepeatBlock": false, "arguments": [], - "nodeIcon": "material-symbols:code", "asssignedVariableName": "fidoEnroller" }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 630, - "y": 30 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "position": { - "x": 430, - "y": 30 - }, - "type": "rrf", - "data": { - "id": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "type": "Agama-rrf-Node", - "parentId": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", - "whenCondition": "", - "inRepeatBlock": false, + "id": "callNode-634312ec-f544-4da2-872c-38760ab58fb5", + "type": "callNode", "position": { - "x": 430, - "y": 30 - }, - "agamaData": { - "id": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "parentId": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", - "type": "Agama-rrf-Node", - "displayName": "Render nickname input view", - "hasComment": true, - "comment": "Load nickname.ftlh page", - "whenCondition": "", - "inRepeatBlock": false, - "assignments": [], - "nodeIcon": "ph:globe-simple", - "templatePath": "nickname.ftlh", - "asssignedVariableName": "nicknameForm" + "x": 800, + "y": 200 }, - "skake": false + "previousNodeId": "rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2" }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 430, - "y": 30 - } - }, - { - "width": 170, - "height": 124, - "id": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", + "type": "callNode", + "id": "callNode-634312ec-f544-4da2-872c-38760ab58fb5", "position": { - "x": 230, - "y": 30 + "x": 800, + "y": 200 }, - "type": "assignment", - "data": { - "id": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", - "type": "Agama-assignment-Node", - "parentId": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 230, - "y": 30 - }, - "agamaData": { - "id": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", - "parentId": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "Agama-assignment-Node", - "displayName": "", - "hasComment": true, - "comment": "Set inum of userData", - "whenCondition": "", - "inRepeatBlock": false, - "assignments": [ - { - "variableTypeCheck": false, - "assignmentExpression": "userData.inum", - "assignedVariableName": "inum" - } - ], - "nodeIcon": "material-symbols:equal" - }, - "skake": false - }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 230, - "y": 30 + "measured": { + "width": 170, + "height": 124 } }, { - "width": 170, - "height": 124, - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "start", - "sourcePosition": "right", "data": { - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "Agama-start-Flow", - "position": { - "x": 30, - "y": 30 - }, - "inRepeatBlock": false, - "agamaData": { - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "type": "Agama-start-Flow", - "displayName": "Passkey Nickname", - "hasComment": true, - "comment": "This flow is responsible for establishing a nickname for the FIDO device, which is correctly registered.", - "isTopLevelFlow": true, - "basepath": "", - "configParams": "{}", - "nodeIcon": "material-symbols:line-start-square", - "timeout": "", - "inputs": "key userData", - "configs": "", - "flowname": "org.gluu.agama.passkey.nickname" - }, - "skake": false - }, - "position": { - "x": 30, - "y": 30 - }, - "positionAbsolute": { - "x": 30, - "y": 30 - }, - "selected": false, - "dragging": false - }, - { - "width": 170, - "height": 124, - "id": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "position": { - "x": 863, - "y": 27 - }, - "type": "call", - "data": { - "id": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "type": "Agama-call-Node", - "parentId": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "whenCondition": "", - "inRepeatBlock": false, - "position": { - "x": 863, - "y": 27 - }, "agamaData": { - "id": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "parentId": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "type": "Agama-call-Node", + "nodeIcon": "material-symbols:code", "displayName": "Save nickname", "hasComment": true, "comment": "Invoke the method to save the nickname", @@ -326,49 +143,36 @@ "javaVariableName": "fidoEnroller", "exceptionVariableField": "", "callType": "Call method on instance", - "whenCondition": "", - "inRepeatBlock": false, "arguments": [ "inum", "nicknameForm.nickname", "key" ], - "nodeIcon": "material-symbols:code", "asssignedVariableName": "nickNamed" }, - "skake": false + "id": "callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d", + "type": "callNode", + "position": { + "x": 1050, + "y": 200 + }, + "previousNodeId": "callNode-634312ec-f544-4da2-872c-38760ab58fb5" + }, + "type": "callNode", + "id": "callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d", + "position": { + "x": 1050, + "y": 200 }, - "selected": false, - "dragging": false, - "positionAbsolute": { - "x": 863, - "y": 27 + "measured": { + "width": 170, + "height": 124 } }, { - "width": 110, - "height": 60, - "id": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "position": { - "x": 264.35217670138877, - "y": 60.51573379464293 - }, - "parentId": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "type": "when", "data": { - "id": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "type": "Agama-when-Node", - "parentId": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "whenCondition": "", - "inRepeatBlock": "", - "position": { - "x": 264.35217670138877, - "y": 60.51573379464293 - }, "agamaData": { - "id": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "parentId": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "type": "Agama-when-Node", + "hasComment": true, "conditions": [ { "variable": "nickNamed", @@ -376,159 +180,227 @@ "dataValue": "false", "combinator": "none" } - ], + ] + }, + "id": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "type": "whenNode", + "position": { + "x": 1300, + "y": 200 + }, + "previousNodeId": "callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d" + }, + "type": "whenNode", + "id": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "position": { + "x": 1300, + "y": 200 + }, + "measured": { + "width": 110, + "height": 60 + } + }, + { + "data": { + "agamaData": { + "nodeIcon": "material-symbols:line-end-square-rounded", + "displayName": "Response success", "hasComment": true, - "inRepeatBlock": false, - "hasFailure": true, - "hasSuccess": true, - "hasNoRepeat": false, - "hasRepeat": false, - "position": { - "x": 1106 - } + "comment": "Successfully completes the flow", + "returnVariable": "{ userId: inum, message: \"Nickname passkey saved\"}", + "finishMode": "withSuccess" }, - "handles": [ - "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.FAILURE", - "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.SUCCESS" - ], - "skake": false + "id": "finishNode-f14871b5-d5ae-4c1e-adae-05dd75451d9f", + "type": "finishNode", + "position": { + "x": 1550, + "y": 200 + }, + "previousNodeId": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "branching": "continue" }, - "selected": true, - "positionAbsolute": { - "x": 1127.3521767013888, - "y": 87.51573379464293 + "type": "finishNode", + "id": "finishNode-f14871b5-d5ae-4c1e-adae-05dd75451d9f", + "position": { + "x": 1550, + "y": 200 }, - "dragging": false, - "whenCondition": "", - "inRepeatBlock": "" + "measured": { + "width": 170, + "height": 124 + } + }, + { + "data": { + "agamaData": { + "nodeIcon": "material-symbols:line-end-square-rounded", + "nodeColor": "#eb999a", + "displayName": "Response error", + "hasComment": true, + "comment": "Ends the flow by responding error", + "returnVariable": "Nickname passkey failed to save", + "finishMode": "withFailure" + }, + "id": "finishNode-65117591-42dc-4e26-895c-a45d051d9448", + "type": "finishNode", + "position": { + "x": 1550, + "y": 450 + }, + "previousNodeId": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "branching": "success" + }, + "type": "finishNode", + "id": "finishNode-65117591-42dc-4e26-895c-a45d051d9448", + "position": { + "x": 1550, + "y": 450 + }, + "measured": { + "width": 170, + "height": 124 + } } ], "edges": [ { - "id": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818-Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4-b8c57c37-1ed1-46e2-9536-9fc91c2e77c5", - "type": "straight", - "source": "Agama-start-Flow-6c1c7061-0c95-4167-b910-dfaba3878818", - "target": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", - "label": "", + "id": "startNode-59730288-5141-4df8-a66d-73534b01bc24-assignmentNode-c75889fb-f593-41a6-8140-052aa292b182", + "type": "default", + "source": "startNode-59730288-5141-4df8-a66d-73534b01bc24", + "target": "assignmentNode-c75889fb-f593-41a6-8140-052aa292b182", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_startNode-59730288-5141-4df8-a66d-73534b01bc24" }, { - "id": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4-Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24-5149d2ba-ac0b-4c04-8924-d36e532b4a08", - "type": "straight", - "source": "Agama-assignment-Node-74fba559-7aaf-415d-a7b6-dcde2be6f6c4", - "target": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "label": "", + "id": "assignmentNode-c75889fb-f593-41a6-8140-052aa292b182-rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2", + "type": "default", + "source": "assignmentNode-c75889fb-f593-41a6-8140-052aa292b182", + "target": "rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_assignmentNode-c75889fb-f593-41a6-8140-052aa292b182" }, { - "id": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24-Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a-8e0f7ecb-a154-471f-b494-f65ede326114", - "type": "straight", - "source": "Agama-rrf-Node-480fe837-8db9-4474-9fcd-e5cd09bb1d24", - "target": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "label": "", + "id": "rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2-callNode-634312ec-f544-4da2-872c-38760ab58fb5", + "type": "default", + "source": "rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2", + "target": "callNode-634312ec-f544-4da2-872c-38760ab58fb5", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_rrfNode-146669f4-3edd-4033-9e6f-dfd852fa70c2" }, { - "id": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248-finish-64bedf04-d03b-41d8-9f9f-989a0692aa0e-01647453-a7c6-4554-a612-ccee6211c701", - "type": "straight", - "source": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "target": "finish-64bedf04-d03b-41d8-9f9f-989a0692aa0e", - "label": "Condition met", + "id": "callNode-634312ec-f544-4da2-872c-38760ab58fb5-callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d", + "type": "default", + "source": "callNode-634312ec-f544-4da2-872c-38760ab58fb5", + "target": "callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.SUCCESS" + "labelShowBg": true, + "sourceHandle": "source_callNode-634312ec-f544-4da2-872c-38760ab58fb5" }, { - "id": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248-finish-2dd91a73-7ce4-480a-8ecb-31aee5748398-6f21091f-f9c8-4488-a780-f7395ce32909", - "type": "straight", - "source": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "target": "finish-2dd91a73-7ce4-480a-8ecb-31aee5748398", - "label": "", + "id": "callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d-whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "type": "default", + "source": "callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d", + "target": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 }, - "sourceHandle": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248.FAILURE" + "labelShowBg": true, + "sourceHandle": "source_callNode-17463e25-8f6a-4682-b7f2-bb3e2d540d4d" }, { - "id": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a-Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b-a11ad81c-bff0-40a9-ad89-ff80432c1afd", - "type": "straight", - "source": "Agama-call-Node-8ed1325d-5c01-45bb-8be1-fcedf293705a", - "target": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "label": "", + "id": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a-finishNode-f14871b5-d5ae-4c1e-adae-05dd75451d9f", + "type": "default", + "source": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "target": "finishNode-f14871b5-d5ae-4c1e-adae-05dd75451d9f", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "continue", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a_continue" }, { - "id": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b-Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248-62b189e1-e7ea-455e-a475-3a4beb7e50c9", - "type": "straight", - "source": "Agama-call-Node-afbeff50-1e92-4a19-be6a-df6f7ada5c8b", - "target": "Agama-when-Node-ab55f7db-7275-4b2f-99fe-d199109d2248", - "label": "", + "id": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a-finishNode-65117591-42dc-4e26-895c-a45d051d9448", + "type": "default", + "source": "whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a", + "target": "finishNode-65117591-42dc-4e26-895c-a45d051d9448", "labelBgPadding": [ 8, 4 ], "labelBgBorderRadius": 4, + "label": "Condition met", "labelBgStyle": { - "fill": "#FFCC00", - "color": "#fff", + "fill": "#009688", + "color": "#ffffff", "fillOpacity": 0.7 - } + }, + "labelShowBg": true, + "sourceHandle": "source_whenNode-c5bae05c-5087-4a80-a1e0-f8748c2dd11a_success" } ], "viewport": { - "x": -235, - "y": 269, - "zoom": 0.75 + "x": 233.68399176567527, + "y": 127.1802125873125, + "zoom": 0.7169776240079136 } } \ No newline at end of file