Skip to content

Commit 35aa0cd

Browse files
committed
feat: publish second project
1 parent 29a93a6 commit 35aa0cd

File tree

7 files changed

+1160
-2
lines changed

7 files changed

+1160
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
### first
2-
first
1+
### second
2+
second

code/co.basic.flow

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Flow co.basic
2+
Basepath ""
3+
Log "@info init objects"
4+
// initialize auth server
5+
authService = Call io.jans.as.server.service.AuthenticationService#class
6+
// Initialize CdiUtils
7+
cdiUtil = Call io.jans.service.cdi.util.CdiUtil#bean authService
8+
// Declare authResult
9+
authResult = {}
10+
// retry login 3 times
11+
Repeat 3 times max
12+
// Load login page and get username & pasword
13+
creds = RRF "login.ftlh" authResult
14+
// check username password auth
15+
authResult.success = Call cdiUtil authenticate creds.username creds.password
16+
// assign creds.username to authResult.uid
17+
authResult.uid = creds.username
18+
// authResult.success is true
19+
When authResult.success is true
20+
it_omqac = { success: true, data:{userId: authResult.uid}}
21+
Finish it_omqac
22+
Finish false

0 commit comments

Comments
 (0)