diff --git a/code/org.gluu.agama.typekey.flow b/code/org.gluu.agama.typekey.flow index 2c541d3..e75aa0a 100644 --- a/code/org.gluu.agama.typekey.flow +++ b/code/org.gluu.agama.typekey.flow @@ -1,13 +1,14 @@ Flow org.gluu.agama.typekey Basepath "" + Configs conf Log "@info " Starting typekey authentication idp = Call org.gluu.agama.typekey.IdentityProcessor#new tk = Call org.gluu.agama.typekey.Typekey#new conf user = RRF "typekey/username.ftlh" userData = Call idp accountFromUsername user.username When userData.empty is true - it_aixno = {success:false, error: "User not found"} - Finish it_aixno + it_wxvhn = {success:false, error: "User not found"} + Finish it_wxvhn enrolled = Call idp enrolled user.username When enrolled is false random_usecase = Call tk getRandomUseCase @@ -27,18 +28,18 @@ When typekey_result.status is "Enrollment" authenticated = Call idp authenticate user.username password.pwd When authenticated is true Call tk notifyKeystrokes user.username typekey_result.track_id - it_ouffo = {success:true, data: { userId: user.username}} - Finish it_ouffo - it_wqexb = {success:false, error: "Authentication failed"} - Finish it_wqexb + it_jnjqh = {success:true, data: { userId: user.username}} + Finish it_jnjqh + it_ywtwp = {success:false, error: "Authentication failed"} + Finish it_ywtwp When typekey_result.status is "Approved" - it_vgryb = {success:true, data: { userId: user.username}} - Finish it_vgryb + it_aisfp = {success:true, data: { userId: user.username}} + Finish it_aisfp password = RRF "typekey/password.ftlh" authenticated = Call idp authenticate user.username password.pwd When authenticated is true Call tk notifyKeystrokes user.username typekey_result.track_id - it_txptw = {success:true, data: { userId: user.username}} - Finish it_txptw -it_zqjxb = {success:false, error: "Password and typekey failed"} -Finish it_zqjxb \ No newline at end of file + it_xwyyw = {success:true, data: { userId: user.username}} + Finish it_xwyyw +it_szlqs = {success:false, error: "Password and typekey failed"} +Finish it_szlqs \ No newline at end of file diff --git a/code/org.gluu.agama.typekey.json b/code/org.gluu.agama.typekey.json index 143a251..4431445 100644 --- a/code/org.gluu.agama.typekey.json +++ b/code/org.gluu.agama.typekey.json @@ -37,9 +37,10 @@ "finishMode": "withFailure", "nodeIcon": "material-symbols:line-end-square-rounded", "displayName": "Password and typekey failed" - } + }, + "skake": false }, - "selected": true, + "selected": false, "dragging": false, "positionAbsolute": { "x": 3907.0191156813116, @@ -80,7 +81,8 @@ "finishMode": "withSuccess", "nodeIcon": "material-symbols:line-end-square-rounded", "displayName": "Failed Typekey, passed password" - } + }, + "skake": false }, "selected": false, "dragging": false, @@ -129,7 +131,8 @@ "typekey_result.track_id" ], "nodeIcon": "material-symbols:code" - } + }, + "skake": false }, "selected": false, "dragging": false, @@ -177,7 +180,8 @@ "handles": [ "Agama-when-Node-06dd00af-3f72-4101-a947-cbe0f662bf27.FAILURE", "Agama-when-Node-06dd00af-3f72-4101-a947-cbe0f662bf27.SUCCESS" - ] + ], + "skake": false }, "selected": false, "positionAbsolute": { @@ -227,7 +231,8 @@ ], "nodeIcon": "material-symbols:code", "asssignedVariableName": "authenticated" - } + }, + "skake": false }, "selected": false, "positionAbsolute": { @@ -270,7 +275,8 @@ "nodeIcon": "ph:globe-simple", "templatePath": "typekey/password.ftlh", "asssignedVariableName": "password" - } + }, + "skake": false }, "selected": false, "positionAbsolute": { @@ -1657,11 +1663,11 @@ "comment": "", "isTopLevelFlow": true, "basepath": "", - "configParams": "{}", + "configParams": "{\n \"keystoreName\": \"\",\n \"keystorePassword\": \"\",\n \"orgId\": \"\",\n \"clientId\": \"\",\n \"clientSecret\": \"\",\n \"authHost\": \"https://account.gluu.org\",\n \"scanHost\": \"https://cloud.gluu.org\",\n \"phrases\": {\n \"1\": \"Lorem Ipsum\",\n \"2\": \"Dolor Si Amet\"\n }\n}", "nodeIcon": "material-symbols:line-start-square", "timeout": "", "inputs": "", - "configs": "", + "configs": "conf", "hasSuccess": "", "hasFailure": "", "hasNoRepeat": false, @@ -1674,7 +1680,7 @@ "x": 30, "y": 30 }, - "selected": false, + "selected": true, "dragging": false, "positionAbsolute": { "x": 30, @@ -2277,8 +2283,8 @@ } ], "viewport": { - "x": -2157.4406145777793, - "y": 429.9547777739752, - "zoom": 0.6579272625145041 + "x": 10, + "y": 15, + "zoom": 1 } } \ No newline at end of file diff --git a/project.json b/project.json index 0c351a4..c325ceb 100644 --- a/project.json +++ b/project.json @@ -13,7 +13,7 @@ ], "noDirectLaunch": [], "configs": { - "": { + "org.gluu.agama.typekey": { "keystoreName": "", "keystorePassword": "", "orgId": "", @@ -25,8 +25,7 @@ "1": "Lorem Ipsum", "2": "Dolor Si Amet" } - }, - "org.gluu.agama.typekey": {} + } }, "name": "agama-typekey" -} \ No newline at end of file +}