Skip to content

Commit

Permalink
feat: publish agama-typekey project
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Jan 24, 2024
1 parent 843df5c commit ed0cb0d
Show file tree
Hide file tree
Showing 24 changed files with 1,287 additions and 1 deletion.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# agama-typekey
Agama Project to authenticate people using typing keyboard dynamics
An Agama flow designed to authenticate against the Typekey API to test behavioral metrics

## Setup

Modify the configuration with the following values:

```json
...
"configs": {
"io.jans.typekey": {
"keystoreName": "", // name of keystore file
"keystorePassword": "", // password of keystore file
"orgId": "", // org_id of the SCAN account to use
"clientId": "", // Client ID obtained from DCR
"clientSecret": "", // Client secret obtained from DCR
"authHost": "https://account-dev.gluu.cloud", // Authorization server
"scanHost": "https://cloud-dev.gluu.cloud" // SCAN host
}
}
```
1 change: 1 addition & 0 deletions code/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### Web folder
21 changes: 21 additions & 0 deletions code/org.gluu.agama.typekey.flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Flow org.gluu.agama.typekey
Basepath ""
Configs conf
Log "@info " Starting Typekey Authentication
user = {}
password = {}
typekey = {}
user = RRF "typekey/username.ftlh" user
idp = Call org.gluu.agama.typekey.IdentityProcessor#new
userData = Call idp accountFromUsername user.username
When userData.empty is true
it_mqfld = {success:false, error: "Account not found"}
Finish it_mqfld
tk = Call org.gluu.agama.typekey.Typekey#new conf
enrolled = Call idp enrolled user.username
When enrolled is false
random_usecase = Call tk getRandomUseCase
phrase_map = Call tk getPhraseMap random_usecase
res = Call idp enroll user.username phrase_map
it_dhkcc = {success:true, data: { userId: user.username}}
Finish it_dhkcc
Loading

0 comments on commit ed0cb0d

Please sign in to comment.