Skip to content

Commit

Permalink
Merge pull request #2 from SafinWasi/agama-lab-branch
Browse files Browse the repository at this point in the history
fix: project json
  • Loading branch information
SafinWasi authored Feb 21, 2024
2 parents b3d7304 + 53da747 commit 80adfdc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
25 changes: 13 additions & 12 deletions code/org.gluu.agama.typekey.flow
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
it_xwyyw = {success:true, data: { userId: user.username}}
Finish it_xwyyw
it_szlqs = {success:false, error: "Password and typekey failed"}
Finish it_szlqs
32 changes: 19 additions & 13 deletions code/org.gluu.agama.typekey.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -80,7 +81,8 @@
"finishMode": "withSuccess",
"nodeIcon": "material-symbols:line-end-square-rounded",
"displayName": "Failed Typekey, passed password"
}
},
"skake": false
},
"selected": false,
"dragging": false,
Expand Down Expand Up @@ -129,7 +131,8 @@
"typekey_result.track_id"
],
"nodeIcon": "material-symbols:code"
}
},
"skake": false
},
"selected": false,
"dragging": false,
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -227,7 +231,8 @@
],
"nodeIcon": "material-symbols:code",
"asssignedVariableName": "authenticated"
}
},
"skake": false
},
"selected": false,
"positionAbsolute": {
Expand Down Expand Up @@ -270,7 +275,8 @@
"nodeIcon": "ph:globe-simple",
"templatePath": "typekey/password.ftlh",
"asssignedVariableName": "password"
}
},
"skake": false
},
"selected": false,
"positionAbsolute": {
Expand Down Expand Up @@ -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,
Expand All @@ -1674,7 +1680,7 @@
"x": 30,
"y": 30
},
"selected": false,
"selected": true,
"dragging": false,
"positionAbsolute": {
"x": 30,
Expand Down Expand Up @@ -2277,8 +2283,8 @@
}
],
"viewport": {
"x": -2157.4406145777793,
"y": 429.9547777739752,
"zoom": 0.6579272625145041
"x": 10,
"y": 15,
"zoom": 1
}
}
7 changes: 3 additions & 4 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"noDirectLaunch": [],
"configs": {
"": {
"org.gluu.agama.typekey": {
"keystoreName": "",
"keystorePassword": "",
"orgId": "",
Expand All @@ -25,8 +25,7 @@
"1": "Lorem Ipsum",
"2": "Dolor Si Amet"
}
},
"org.gluu.agama.typekey": {}
}
},
"name": "agama-typekey"
}
}

0 comments on commit 80adfdc

Please sign in to comment.