Skip to content

Commit 80adfdc

Browse files
authored
Merge pull request #2 from SafinWasi/agama-lab-branch
fix: project json
2 parents b3d7304 + 53da747 commit 80adfdc

File tree

3 files changed

+35
-29
lines changed

3 files changed

+35
-29
lines changed

code/org.gluu.agama.typekey.flow

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Flow org.gluu.agama.typekey
22
Basepath ""
3+
Configs conf
34
Log "@info " Starting typekey authentication
45
idp = Call org.gluu.agama.typekey.IdentityProcessor#new
56
tk = Call org.gluu.agama.typekey.Typekey#new conf
67
user = RRF "typekey/username.ftlh"
78
userData = Call idp accountFromUsername user.username
89
When userData.empty is true
9-
it_aixno = {success:false, error: "User not found"}
10-
Finish it_aixno
10+
it_wxvhn = {success:false, error: "User not found"}
11+
Finish it_wxvhn
1112
enrolled = Call idp enrolled user.username
1213
When enrolled is false
1314
random_usecase = Call tk getRandomUseCase
@@ -27,18 +28,18 @@ When typekey_result.status is "Enrollment"
2728
authenticated = Call idp authenticate user.username password.pwd
2829
When authenticated is true
2930
Call tk notifyKeystrokes user.username typekey_result.track_id
30-
it_ouffo = {success:true, data: { userId: user.username}}
31-
Finish it_ouffo
32-
it_wqexb = {success:false, error: "Authentication failed"}
33-
Finish it_wqexb
31+
it_jnjqh = {success:true, data: { userId: user.username}}
32+
Finish it_jnjqh
33+
it_ywtwp = {success:false, error: "Authentication failed"}
34+
Finish it_ywtwp
3435
When typekey_result.status is "Approved"
35-
it_vgryb = {success:true, data: { userId: user.username}}
36-
Finish it_vgryb
36+
it_aisfp = {success:true, data: { userId: user.username}}
37+
Finish it_aisfp
3738
password = RRF "typekey/password.ftlh"
3839
authenticated = Call idp authenticate user.username password.pwd
3940
When authenticated is true
4041
Call tk notifyKeystrokes user.username typekey_result.track_id
41-
it_txptw = {success:true, data: { userId: user.username}}
42-
Finish it_txptw
43-
it_zqjxb = {success:false, error: "Password and typekey failed"}
44-
Finish it_zqjxb
42+
it_xwyyw = {success:true, data: { userId: user.username}}
43+
Finish it_xwyyw
44+
it_szlqs = {success:false, error: "Password and typekey failed"}
45+
Finish it_szlqs

code/org.gluu.agama.typekey.json

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
"finishMode": "withFailure",
3838
"nodeIcon": "material-symbols:line-end-square-rounded",
3939
"displayName": "Password and typekey failed"
40-
}
40+
},
41+
"skake": false
4142
},
42-
"selected": true,
43+
"selected": false,
4344
"dragging": false,
4445
"positionAbsolute": {
4546
"x": 3907.0191156813116,
@@ -80,7 +81,8 @@
8081
"finishMode": "withSuccess",
8182
"nodeIcon": "material-symbols:line-end-square-rounded",
8283
"displayName": "Failed Typekey, passed password"
83-
}
84+
},
85+
"skake": false
8486
},
8587
"selected": false,
8688
"dragging": false,
@@ -129,7 +131,8 @@
129131
"typekey_result.track_id"
130132
],
131133
"nodeIcon": "material-symbols:code"
132-
}
134+
},
135+
"skake": false
133136
},
134137
"selected": false,
135138
"dragging": false,
@@ -177,7 +180,8 @@
177180
"handles": [
178181
"Agama-when-Node-06dd00af-3f72-4101-a947-cbe0f662bf27.FAILURE",
179182
"Agama-when-Node-06dd00af-3f72-4101-a947-cbe0f662bf27.SUCCESS"
180-
]
183+
],
184+
"skake": false
181185
},
182186
"selected": false,
183187
"positionAbsolute": {
@@ -227,7 +231,8 @@
227231
],
228232
"nodeIcon": "material-symbols:code",
229233
"asssignedVariableName": "authenticated"
230-
}
234+
},
235+
"skake": false
231236
},
232237
"selected": false,
233238
"positionAbsolute": {
@@ -270,7 +275,8 @@
270275
"nodeIcon": "ph:globe-simple",
271276
"templatePath": "typekey/password.ftlh",
272277
"asssignedVariableName": "password"
273-
}
278+
},
279+
"skake": false
274280
},
275281
"selected": false,
276282
"positionAbsolute": {
@@ -1657,11 +1663,11 @@
16571663
"comment": "",
16581664
"isTopLevelFlow": true,
16591665
"basepath": "",
1660-
"configParams": "{}",
1666+
"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}",
16611667
"nodeIcon": "material-symbols:line-start-square",
16621668
"timeout": "",
16631669
"inputs": "",
1664-
"configs": "",
1670+
"configs": "conf",
16651671
"hasSuccess": "",
16661672
"hasFailure": "",
16671673
"hasNoRepeat": false,
@@ -1674,7 +1680,7 @@
16741680
"x": 30,
16751681
"y": 30
16761682
},
1677-
"selected": false,
1683+
"selected": true,
16781684
"dragging": false,
16791685
"positionAbsolute": {
16801686
"x": 30,
@@ -2277,8 +2283,8 @@
22772283
}
22782284
],
22792285
"viewport": {
2280-
"x": -2157.4406145777793,
2281-
"y": 429.9547777739752,
2282-
"zoom": 0.6579272625145041
2286+
"x": 10,
2287+
"y": 15,
2288+
"zoom": 1
22832289
}
22842290
}

project.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"noDirectLaunch": [],
1515
"configs": {
16-
"": {
16+
"org.gluu.agama.typekey": {
1717
"keystoreName": "",
1818
"keystorePassword": "",
1919
"orgId": "",
@@ -25,8 +25,7 @@
2525
"1": "Lorem Ipsum",
2626
"2": "Dolor Si Amet"
2727
}
28-
},
29-
"org.gluu.agama.typekey": {}
28+
}
3029
},
3130
"name": "agama-typekey"
32-
}
31+
}

0 commit comments

Comments
 (0)