Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Finish block in the main flow has errors #7

Open
wants to merge 68 commits into
base: agama-lab-flow-designer
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
0c5e050
feat: update project.json
Milton-Ch Mar 13, 2024
ea82368
Merge pull request #4 from GluuFederation/agama-lab-branch
Milton-Ch Mar 13, 2024
3d8ce1f
feat: update project.json
Milton-Ch Mar 13, 2024
1be097e
feat: update main.ftlh
madhu1310 Apr 26, 2024
0c56c2f
feat: update main.ftlh
madhu1310 Apr 26, 2024
31a571f
feat: update fido-authn.ftlh
madhu1310 Apr 26, 2024
8a084ff
feat: update main.ftlh
madhu1310 Apr 30, 2024
3e251e7
feat: update fido-authn.ftlh
madhu1310 Apr 30, 2024
18e5429
feat: update fido-authn.ftlh
madhu1310 Apr 30, 2024
0ebb0f6
feat: update project.json
madhu1310 Apr 30, 2024
9093cec
feat: update org.gluu.agama.securitykey.main.json
madhu1310 Apr 30, 2024
ee187ee
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 Apr 30, 2024
c6d3fb5
feat: update project.json
madhu1310 May 1, 2024
3842336
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
2a9c7cd
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
23a876a
feat: update project.json
madhu1310 May 1, 2024
e595f7c
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
4b6f6ef
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
3bc6c26
feat: update project.json
madhu1310 May 1, 2024
7043adb
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
15867ba
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
f93db7c
feat: update project.json
madhu1310 May 1, 2024
9ca91d0
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
4ca4577
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
775ae0b
feat: update project.json
madhu1310 May 1, 2024
4f9a4f8
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
1398a2c
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
485bc92
feat: update project.json
madhu1310 May 1, 2024
be95c76
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
e31868e
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
e04e579
feat: update project.json
madhu1310 May 1, 2024
9fa6b33
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
112d2f6
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
6f33233
feat: update project.json
madhu1310 May 1, 2024
d52a168
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
2b1f9e5
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
a6435ef
feat: update project.json
madhu1310 May 1, 2024
cde8463
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
d8bb026
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
4fd47fb
feat: update project.json
madhu1310 May 1, 2024
65abeeb
feat: update project.json
madhu1310 May 1, 2024
2081b2f
feat: update project.json
madhu1310 May 1, 2024
11de9a6
feat: update project.json
madhu1310 May 1, 2024
d97c551
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
cbc0a64
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
a3298e1
feat: update project.json
madhu1310 May 1, 2024
549c284
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
0f1a026
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
4c6c22c
feat: update project.json
madhu1310 May 1, 2024
2c016b9
feat: update project.json
madhu1310 May 1, 2024
b06c9fc
feat: update project.json
madhu1310 May 1, 2024
6d67561
feat: update project.json
madhu1310 May 1, 2024
8e5a19e
feat: update project.json
madhu1310 May 1, 2024
1cef4be
feat: update project.json
madhu1310 May 1, 2024
9a3a5ae
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
d03e8fb
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
217e5ae
feat: update project.json
madhu1310 May 1, 2024
d777789
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
a9dd56e
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
304e677
feat: update project.json
madhu1310 May 1, 2024
00177a2
feat: update project.json
madhu1310 May 1, 2024
60065ef
feat: update project.json
madhu1310 May 1, 2024
6fabfcd
feat: update org.gluu.agama.securitykey.main.json
madhu1310 May 1, 2024
9ee6a9d
feat: update org.gluu.agama.securitykey.main.flow
madhu1310 May 1, 2024
09ae5df
feat: update main.ftlh
madhu1310 May 7, 2024
12c2baf
feat: update fido-authn.ftlh
madhu1310 May 7, 2024
01b7509
feat: update project.json
madhu1310 May 7, 2024
c55e0cc
Merge branch 'agama-lab-branch' into agama-lab-branch
madhu1310 May 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions code/org.gluu.agama.securitykey.main.flow
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,25 @@ Repeat 3 times max
// Initialization of inum and uid
inum = userData.inum
uid = userData.uid
mfaInfo = Call casaApi getMFAUserInfoByFido2 inum
Log "@debug MfaInfo response: %" mfaInfo
count = mfaInfo.count
Log "@debug User % has % credentials enrolled" inum count
When count is 0
it_yhkbt = {success:false, error: "Your account has no security key configured."}
Finish it_yhkbt
withEscape = true

fidoAuthn = Trigger org.gluu.agama.securitykey.fidoAuthn userData withEscape
Log "@debug Response FidoAuthn % % " fidoAuthn fidoAuthn.success
When fidoAuthn.success is not true
it_ugrry = {success:false, error: "Finished with error"}
Finish it_ugrry
Otherwise
it_ssvhe = {success:true, data: { userId: uid, message: "Authentication sucess! "}}
Finish it_ssvhe
// Set the loginForm success field to false
loginForm.success = false
// When the maximum number of attempts has been made, the flow will end.
it_erzmc = {success:false, error: "Login attempt exceeded."}
Finish it_erzmc
it_talkb = {success:false, error: "Login attempt exceeded."}
Finish it_talkb
Loading