Skip to content

Commit 494e7a5

Browse files
committed
feat: update org.gluu.agama.typekey.flow
1 parent 8cff4c3 commit 494e7a5

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
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

0 commit comments

Comments
 (0)